Type Alias


A block to schedule MIDI events.


typedef void (^AUScheduleMIDIEventBlock)(AUEventSampleTime eventSampleTime, uint8_t cable, NSInteger length, const uint8_t *midiBytes);


The block takes the following parameters:


The sample time at which the MIDI event is to occur. When scheduling parameters during the render cycle, this time can be set to the AUEventSampleTimeImmediate value plus an optional buffer offset, in which case the event is scheduled at that position in the current render cycle.


The virtual cable number.


The number of bytes of MIDI data in the provided event(s).


One or more valid MIDI 1.0 events, except sysex which must always be sent as the only event in the chunk. Running status is not allowed.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software