IDirectMusicPerformance8::TimeToRhythm

DirectMusic

Microsoft DirectX 9.0 SDK Update (Summer 2004)

IDirectMusicPerformance8::TimeToRhythm

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: Declared in dmusici.h.

See Also


© 2004 Microsoft Corporation. All rights reserved.