Platform SDK: DirectX

Tutorial 3: Using Compositions

[Visual Basic]

This tutorial pertains only to applications written in C++. See DirectMusic Visual Basic Tutorials.

[C++]

This tutorial shows how to set up a music performance that is based on elements authored in DirectMusic Producer, and how to have the music performed interactively—that is, in such as way that it responds to program events.

The code samples are based on the DMDonuts sample in the DirectX SDK. Because DMDonuts is a large and complex application, only the main points will be covered here. For the complete DirectMusic implementation, see the Donuts.cpp source file and its included headers, where all the relevant code is delimited by DMUSIC BEGIN and DMUSIC END comments.

The tutorial is broken down into the following steps: