DirectX SDK

Tutorial 1: Playing a MIDI File

[C++]

This section pertains only to DirectX for Visual Basic. A similar tutorial is available for C/C++; see Tutorial 1: Playing a MIDI File.

[Visual Basic]

This tutorial is a guide to setting up the simplest possible DirectMusic application, one that just plays a primary segment. In this example, the segment represents a MIDI file, but the process of loading and playing the data would be exactly the same if the source were a segment authored in a tool such as DirectMusic Producer.

The tutorial is divided into the following steps: