Microsoft DirectX 8.0 (Visual Basic) |
Creates an original segment from a style, a chordmap, and a template.
object.ComposeSegmentFromTemplate( _ style As DirectMusicStyle8, _ templateSeg As DirectMusicSegment8, _ activity As Integer, _ chordmap As DirectMusicChordMap8 _ ) As DirectMusicSegment8
Returns a DirectMusicSegment8 object.
If the method fails, it raises an error, and Err.Number can be set to one of the following values:
DMUS_E_INVALIDARG |
If style is not Nothing, it is used in composing the segment; if it is Nothing, a style is retrieved from the template specified in templateSeg. Similarly, if chordmap is not Nothing, it is used in composing the segment; if it is Nothing, a chordmap is retrieved from the template.
If style is Nothing and there is no style track in the template, or chordmap is Nothing and there is no chordmap track, the method returns DMUS_E_INVALIDARG.
The length of the segment is equal to the length of the template passed in.
DirectMusicComposer8.ComposeSegmentFromShape, DirectMusicComposer8.ComposeTemplateFromShape