The IDirectMusicComposer::ComposeTransition method composes a transition from a measure inside one segment to another.
HRESULT ComposeTransition(
  IDirectMusicSegment* pFromSeg, 
  IDirectMusicSegment* pToSeg, 
  MUSIC_TIME mtTime, 
  WORD wCommand, 
  DWORD dwFlags, 
  IDirectMusicChordMap* pChordMap, 
  IDirectMusicSegment** ppSectionSeg
);
 If the method succeeds, the return value is S_OK.
If it fails, the method may return one of the following error values:
| E_INVALIDARG | 
| E_OUTOFMEMORY | 
| E_POINTER | 
The value in pChordMap can be NULL. If so, an attempt is made to obtain a chordmap from a chordmap track, first from pToSeg, and then from pFromSeg. If neither of these segments contains a chordmap track, the chord occurring at mtTime in pFromSeg is used as the chord in the transition.
The composer looks for a tempo first in pFromSeg and then in pToSeg. If neither of those segments contains a tempo track, the tempo for the transition segment is taken from the style.
  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dmusici.h.