Microsoft DirectX 8.1 (Visual Basic)

DirectMusicStyle8

The DirectMusicStyle8 class represents a style, which is a collection of musical data including patterns and instruments.

The object is generally obtained by using the DirectMusicLoader8.LoadStyle or the DirectMusicLoader8.LoadStyleFromResource method. It can also be obtained from the performance by using the DirectMusicPerformance8.GetStyle method, provided the current control segment is based on a style.

The DirectMusicStyle8 class has the following methods.

Bands

Method Description
GetBand Retrieves a band object by name.
GetBandCount Retrieves the number of bands available in the style.
GetBandName Retrieves the name of a band in the style.
GetDefaultBand Retrieves the default band for the style.

Motifs

Method Description
GetMotif Creates a segment containing the named motif.
GetMotifCount Retrieves the number of motifs available in the style.
GetMotifName retrieves the name of a motif in the style.

Time

Method Description
GetTempo Retrieves the recommended tempo of the style.
GetTimeSignature Retrieves the style's time signature.