|Microsoft DirectX 9.0|
The ComposeTemplateFromShape method creates a new
HRESULT ComposeTemplateFromShape( WORD wNumMeasures, WORD wShape, BOOL fIntro, BOOL fEnd, WORD wEndLength, IDirectMusicSegment** ppTemplate );
Length, in measures, of the segment to be composed. This value must be greater than 0.
Shape of the segment to be composed. Possible values are of the DMUS_SHAPET_TYPES enumerated type.
TRUE if an introduction is to be composed for the segment.
TRUE if an ending is to be composed for the segment.
Length in measures of the ending, if one is to be composed. If fEnd is TRUE, this value must be greater than 0 and equal to or less than the number of measures available (that is, not used in the introduction). (See Remarks.)
Address of a variable that receives a pointer to the created template segment.
If the method succeeds, the return value is S_OK.
If it fails, the method can return one of the error values shown in the following table.
The value of wEndLength should not be greater than the length of the longest ending available in any
Header: Declared in dmusici.h.