Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The TimeToRhythm method converts music time to rhythm time.
Syntax
HRESULT TimeToRhythm(
MUSIC_TIME mtTime,
DMUS_TIMESIGNATURE *pTimeSig,
WORD *pwMeasure,
BYTE *pbBeat,
BYTE *pbGrid,
short *pnOffset
);
Parameters
mtTime
Time to convert.
pTimeSig
Address of a DMUS_TIMESIGNATURE structure that contains information about the time signature.
pwMeasure
Address of a variable that receives the measure in which the time falls.
pbBeat
Address of a variable that receives the beat at which the time falls.
pbGrid
Address of a variable that receives the grid at which the time falls.
pnOffset
Address of a variable that receives the offset from the grid (in music-time ticks) at which the time falls.
Return Values
If the method succeeds, the return value is S_OK.
If it fails, the method can return E_POINTER.
Requirements
** Header:** Dmusici.h
Library: Dmime.dll, Dmimed.dll
See Also