IDirectMusicPerformance::TimeToRhythm

This method converts music time to rhythm time.

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 to receive the measure in which the time falls.
  • pbBeat
    Address of a variable to receive the beat at which the time falls.
  • pbGrid
    Address of a variable to receive the grid at which the time falls.
  • pnOffset
    Address of a variable to receive 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.

Requirements

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

See Also

IDirectMusicPerformance::RhythmToTime | DMUS_TIMESIGNATURE

 Last updated on Monday, April 12, 2004

© 1992-2002 Microsoft Corporation. All rights reserved.