Platform SDK: DirectX

DirectMusicStyle.GetMotif

The DirectMusicStyle.GetMotif method creates a segment containing the named motif.

object.GetMotif(name As String) As DirectMusicSegment

Parameters

object
Object expression that resolves to a DirectMusicStyle object.
name
Name assigned to the motif by the author of the style

Return Values

If the method succeeds, it returns a DirectMusicSegment object representing the motif.

Error Codes

If the method fails, it raises an error, and Err.Number is set.

See Also

DirectMusicStyle.GetMotifCount, DirectMusicStyle.GetMotifName