Function

NewMusicSequence

Creates a new empty music sequence.

Declaration

OSStatus NewMusicSequence(MusicSequence  _Nullable *outSequence);

Parameters

outSequence

On output, the new, empty music sequence.

Return Value

A result code.

Discussion

A new music sequence has only a tempo track, with a default tempo of 120 beats-per-minute. The default sequence type is beat-based. For the various sequence types, see MusicSequenceType.

To direct the output of a music sequence to an audio processing graph, use the MusicSequenceSetAUGraph function. To direct the output instead to a MIDI endpoint, use the MusicSequenceSetMIDIEndpoint function.

To direct the output of a specific music track, use the MusicTrackSetDestNode and MusicTrackSetDestMIDIEndpoint functions, described in MusicTrack.

See Also