Platform SDK: DirectX |
The DirectMusicComposer.ComposeTemplateFromShape method creates a new template segment, based on a predefined shape.
object.ComposeTemplateFromShape(numMeasures As Integer, _ shape As Integer, _ bIntro As Boolean, _ bEnd As Boolean, _ endLength As Integer) As DirectMusicSegment
If the method succeeds, it returns a DirectMusicSegment object.
If the method fails, it raises an error, and Err.Number can be set to one of the following values:
DMUS_E_INVALIDARG |
DMUS_E_OUTOFMEMORY |
The value of endLength should not be greater than the length of the longest ending available in any style likely to be associated with this template through the DirectMusicComposer.ComposeSegmentFromTemplate method. The ending starts playing at endLength measures before the end of the segment. If the ending is less than endLength measures long, the music then reverts to the regular groove.
DirectMusicComposer.ComposeSegmentFromShape, DirectMusicComposer.ComposeSegmentFromTemplate