IDirectMusicPerformance::RhythmToTime

This 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
    Address of a 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.

Requirements

OS Versions: Windows CE .NET 4.0 and Windows CE .NET 4.1.
Header: Dmusici.h.
Link Library: Dmusic.lib.

See Also

IDirectMusicPerformance::TimeToRhythm | DMUS_TIMESIGNATURE

 Last updated on Monday, April 12, 2004

© 1992-2002 Microsoft Corporation. All rights reserved.