Microsoft DirectX 9.0 |
The RhythmToTime method converts rhythm time to music time.
Syntax
HRESULT RhythmToTime(
WORD wMeasure,
BYTE bBeat,
BYTE bGrid,
short nOffset,
DMUS_TIMESIGNATURE *pTimeSig,
MUSIC_TIME *pmtTime
);
Parameters
wMeasure
Measure of the time to convert.
bBeat
Beat of the time to convert.
bGrid
Grid of the time to convert.
nOffset
Offset from the grid, in music-time ticks, of the time to convert.
pTimeSig
Address of a DMUS_TIMESIGNATURE structure containing information about the time signature.
pmtTime
Address of a variable that receives the music time.
Return Values
If the method succeeds, the return value is S_OK.
If it fails, the method can return E_POINTER.
Remarks
The method calculates a duration from the supplied measure, beat, grid, and offset, and adds the value in the mtTime member of the DMUS_TIMESIGNATURE structure.
Requirements
Header: Declared in dmusici.h.
See Also