DirectMusic lets you control many aspects of track behavior by changing parameters on the fly, using one of the following SetParam methods:
In addition, the IDirectMusicPerformance::SetGlobalParam method lets you set values that apply across the entire performance.
The equivalent GetParam and GetGlobalParam methods retrieve current values for a track or the performance.
In order to have the music respond immediately to a changed parameter, an application can flush messages from the queue by using the IDirectMusicPerformance::Invalidate method. This method causes all tracks to resend messages from the specified point forward.
More information about parameters is contained in the following topics: