DirectX SDK

Instrument Classes

[C++]

The information in this topic pertains only to applications written in Visual Basic. For C++ applications, see Overview of DirectMusic Objects and Interfaces.

[Visual Basic]

The DirectMusicBand class represents a set of instruments (with their volume, pan, and transposition) mapped to the parts in a piece of music. Band changes determined in a style take place automatically when a segment based on that style is played, but you can also obtain a DirectMusicBand object from a style or from a separate file or resource and create a DirectMusicSegment from it. This segment can then be played to effect program changes.

The DirectMusicCollection class represents a DLS collection. Most applications do not need to work directly with collections because the instrument data is downloaded to the port when a segment is played or when a band is downloaded.

The key differences between a collection and a band are as follows: