Function

MusicSequenceGetTempoTrack

Gets the tempo track for a music sequence.

Declaration

OSStatus MusicSequenceGetTempoTrack(MusicSequence inSequence, MusicTrack  _Nullable *outTrack);

Parameters

inSequence

The music sequence whose tempo track you want to obtain.

outTrack

On output, the tempo track.

Return Value

A result code.

Discussion

Each music sequence has a single tempo track. All tempo events are placed into this track, as well as some other events—such as the time signature from a MIDI file. The tempo track, once retrieved, can be edited and iterated over as can a music track. Most non-tempo events in a tempo track are ignored.