DirectX SDK

DirectMusicPerformance.SetMasterTempo

The DirectMusicPerformance.SetMasterTempo method sets a scaling factor that is applied to the tempo.

object.SetMasterTempo(tempo As Single)

Parameters

object
Object expression that resolves to a DirectMusicPerformance object.
tempo
Desired master tempo, in the range from 0.25 through 2.0.

Error Codes

If the method fails, it raises an error, and Err.Number is set.

Remarks

By default, the master tempo is 1. A value of 0.5 would halve the tempo, and a value of 2.0 would double it.

See Also

DirectMusicPerformance.GetMasterTempo