Microsoft DirectX 8.1 (C++)

Styles

A style is a collection of musical patterns that can be used to create a dynamic score. It also contains a time signature and a tempo, and can contain one or more bands.

A pattern is a musical figure, one or more measures long, consisting of a basic sequence of notes for each instrument, or part. These notes are not fixed but are ultimately mapped to particular pitches according to the current key, chord, and play mode. Patterns also include variations.

A motif is a special type of pattern designed to be played dynamically over the basic score. Motifs are often used in interactive applications to mark an event.

In DirectMusic Producer, patterns are created by the author on a grid analogous to a piano roll. Each part has its own row, corresponding to a performance channel, on which notes are represented by bars of varying length (duration), thickness (velocity), position on a vertical scale (pitch), and position on a horizontal scale (time).

The author can create many variations for each pattern. Typically, this is done by copying the pattern and then making small changes to one or more parts. At run time, variations are chosen by the style playback mechanism. However, the author can disable any variation for any chord—that is, specify that the variation must never be chosen when a certain chord is being played.

The author also assigns a groove range to the pattern, specifying the groove levels at which the pattern can be played.

The pattern can also be designated as an embellishment. Embellishments are of five types—intro, fill, break, end, and custom—and a pattern can be assigned to one or more of these categories. When the music is played and a certain type of embellishment is called for, only patterns of that type are candidates for playback.