Microsoft DirectX 8.1 (Visual Basic)

DMDrums

Description

The DMDrums sample application shows how an application can vary music by changing the band, volume, master groove level, and tempo. It also shows how to play motifs in response to user input.

Path

Source: (SDK root)\Samples\Multimedia\VBSamples\DirectMusic\DMDrums

Executable: (SDK root)\Samples\Multimedia\VBSamples\DirectMusic\Bin

User's Guide

Start the music by clicking the Play button. Select different types of music from the Groove list and different bands from the Drum Sets list. Adjust tempo and volume with the UpDown controls. Play drum motifs by clicking on any of the drum buttons.

Programming Notes

The selection in the Groove list determines 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.