Microsoft DirectX 8.1 (C++)

IDirectMusicStyle8

The IDirectMusicStyle8 interface provides access to a style object. The style object provides the performance with the information that it needs to play patterns. For an overview, see Using Styles.

Because styles usually include bands and motifs, the IDirectMusicStyle8 interface provides methods for accessing these objects.

The DirectMusicStyle object also supports the IDirectMusicObject8 and IPersistStream interfaces for loading its data.

IDirectMusicStyle8 supersedes the IDirectMusicStyle interface and provides a new method, EnumPattern.

In addition to the methods inherited from IUnknown, the IDirectMusicStyle8 interface exposes the following methods.

Data retrieval

Method Description
GetBand Retrieves the named band.
GetChordMap Retrieves a named chordmap.
GetDefaultBand Retrieves the style's default band.
GetDefaultChordMap Retrieves the style's default chordmap.
GetEmbellishmentLength Finds the shortest and longest lengths for patterns of the specified embellishment type and groove level.
GetMotif Creates a segment containing the named motif.
GetTempo Retrieves the recommended tempo of the style.
GetTimeSignature Retrieves the style's time signature.

Enumeration

Method Description
EnumBand Retrieves the name of the band with a given index value.
EnumChordMap Retrieves the name of the chordmap with the given index value.
EnumMotif Retrieves the name of a motif with a given index value.
EnumPattern Retrieves the name of a pattern with a given index value and type.

Requirements

  Header: Declared in dmusici.h.