Function

MusicSequenceSetMIDIEndpoint

Associates a specified MIDI endpoint with all music tracks in a music sequence.

Declaration

OSStatus MusicSequenceSetMIDIEndpoint(MusicSequence inSequence, MIDIEndpointRef inEndpoint);

Parameters

inSequence

The music sequence that you want to associate with a MIDI endpoint.

inEndpoint

The MIDI endpoint to associate with the music sequence.

Return Value

A result code.

Discussion

This is a convenience function, equivalent to iterating through the music tracks in a music sequence and targeting each to the MIDI endpoint.