Microsoft DirectX 8.1 (C++) |
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.
Requirements
Header: Declared in dmusici.h.
See Also