Microsoft DirectX 8.0 (Visual Basic) |
Composes a transition from a measure inside one segment to another.
object.ComposeTransition(fromSeg As DirectMusicSegment8, _ toSeg As DirectMusicSegment8, _ mtTime As Long, _ lCommand As Long, _ lFlags As Long, _ 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 |
DMUS_E_OUTOFMEMORY |
The value in chordmap can be Nothing. If so, an attempt is made to obtain a chordmap from a chordmap track, first from toSeg and then from fromSeg. If neither of these segments contains a chordmap track, the chord occurring at mtTime in fromSeg is used as the chord in the transition.
The composer looks for a tempo, first in fromSeg, and then in toSeg. If neither of those segments contains a tempo track, the tempo for the transition segment is taken from the style.