AKMIDICallbackInstrument

open class AKMIDICallbackInstrument : AKMIDIInstrument

MIDI Instrument that triggers functions on MIDI note on/off commands This is used mostly with the AppleSequencer sending to a MIDIEndpointRef Another callback instrument, AKCallbackInstrument You will need to enable Background Modes - Audio in your project for this to work.

  • All callbacks that will get triggered by MIDI events

    Declaration

    Swift

    open var callback: AKMIDICallback?
  • Initialize the callback instrument

    Declaration

    Swift

    public init(midiInputName: String = "AudioKit Callback Instrument", callback: AKMIDICallback? = nil)

    Parameters

    midiInputName

    Name of the instrument’s MIDI input

    callback

    Initial callback