IDirectMusicPerformance::RhythmToTime

The IDirectMusicPerformance::RhythmToTime method converts rhythm time to music time.

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
DMUS_TIMESIGNATURE structure containing information about the time signature.
pmtTime
Address of a variable to receive the music time.

Return Values

If the method succeeds, the return value is S_OK.

QuickInfo

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dmusici.h.

See Also

IDirectMusicPerformance::TimeToRhythm