Platform SDK: DirectX

DirectMusicComposer.ChangeChordMap

The DirectMusicComposer.ChangeChordMap method modifies the chords and scale pattern of an existing segment to reflect a new chord map.

object.ChangeChordMap(segment As DirectMusicSegment, _
    trackScale As Boolean, _
    chordmap As DirectMusicChordMap)

Parameters

object
Object expression that resolves to a DirectMusicComposer object.
segment
Segment in which to change the chord map.
trackScale
If True, the method transposes all the chords to be relative to the root of the new chord map's scale, rather than leaving their roots as they were.
chordmap
New chord map for the segment.

Error Codes

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

Remarks

The method can be called while the segment is playing.