|Microsoft DirectX 9.0|
The ComposeSegmentFromShape method creates an original segment from a
HRESULT ComposeSegmentFromShape( IDirectMusicStyle* pStyle, WORD wNumMeasures, WORD wShape, WORD wActivity, BOOL fIntro, BOOL fEnd, IDirectMusicChordMap* pChordMap, IDirectMusicSegment** ppSegment );
Style from which to compose the segment.
Length, in measures, of the segment to be composed.
Shape of the segment to be composed. Possible values are of the DMUS_SHAPET_TYPES enumerated type.
Rate of harmonic motion. Valid values are from 0 through 3. Lower values mean more chord changes.
TRUE if an introduction is to be composed for the segment.
TRUE if an ending is to be composed for the segment.
Pointer to the IDirectMusicChordMap8 interface of the chordmap from which to create the segment.
Address of a variable that receives a pointer to the created 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.
Header: Declared in dmusici.h.