Microsoft DirectX 8.1 (Visual Basic) |
The DirectMusic style object represents a collection of musical patterns, usually including embellishments and
For a conceptual overview, see Styles.
A style by itself does not contain enough information to create a segment of music at run time. For this you need two other components: a chordmap, which is a scheme of chord progressions, and a command track to set the
To create a segment with a command track based on a template, call the DirectMusicComposer8.ComposeSegmentFromTemplate method. (See Using Templates.)
To create a segment based on a shape, call the DirectMusicComposer8.ComposeSegmentFromShape method. You supply pointers to a style and a chordmap. You also supply a rate of harmonic motion, which controls the frequency of chord changes, and a shape constant, which determines the progression of groove levels and embellishments.