Platform SDK: DirectX |
The DirectMusicPerformance.ClockToMusicTime method converts clock time to music time. Clock time is an absolute time. Music time is relative to the tempo of the performance.
object.ClockToMusicTime(ctTime As Long) As Long
If the method succeeds, it returns the equivalent music time.
If the method fails, it raises an error, and Err.Number can be set to DMUS_E_NO_MASTER_CLOCK.
If a master tempo has been set for the performance, it is taken into account when converting to music time.
Because music time is less precise than clock time, rounding off occurs.
DirectMusicPerformance.MusicToClockTime, Clock Time vs. Music Time