DirectX SDK |
This topic pertains only to application development in Visual Basic. See DirectMusic C/C++ Samples.
The DMDrums sample application shows how an application can vary music by changing the master groove level, band, volume, and tempo. It also shows how to play motifs in response to user input.
Source: (SDK root)\Samples\Multimedia\VBSamples\Dmusic\Src\DMDrums
Executable: (SDK root)\Samples\Multimedia\VBSamples\DMusic\Bin\Dmdrums.exe
Start and stop the music by clicking the green and red buttons. Select different types of music from the top list box and different bands from the bottom one. Adjust tempo and volume with the up and down controls. Play drum motifs by clicking on any of the drum buttons.
The "style" of music is actually determined by the master groove level, which causes different patterns to be selected from the style object associated with the segment.
Every drum button plays a different motif. The instrument associated with the button is assigned in the motif.