Function

MusicTrackNewMIDIChannelEvent

Adds an event of type MIDIChannelMessage to a music track.

Declaration

OSStatus MusicTrackNewMIDIChannelEvent(MusicTrack inTrack, MusicTimeStamp inTimeStamp, const MIDIChannelMessage *inMessage);

Parameters

inTrack

The music track to add the event to.

inTimeStamp

The timestamp, in beats, at which to add the event. Must be greater than or equal to 0.

inMessage

The event to add to the music track.

Return Value

A result code.