AKMIDIInstrument

open class AKMIDIInstrument : AKPolyphonicNode, AKMIDIListener

A version of AKInstrument specifically targeted to instruments that should be triggerable via MIDI or sequenced with the sequencer.

  • MIDI Input

    Declaration

    Swift

    open var midiIn: MIDIEndpointRef
  • Name of the instrument

    Declaration

    Swift

    open var name: String
  • Initialize the MIDI Instrument

    Declaration

    Swift

    public init(midiInputName: String? = nil)

    Parameters

    midiInputName

    Name of the instrument’s MIDI input

  • Enable MIDI input from a given MIDI client

    Declaration

    Swift

    open func enableMIDI(_ midiClient: MIDIClientRef = AudioKit.midi.client,
                         name: String = "AudioKit MIDI Instrument")

    Parameters

    midiClient

    A reference to the midi client

    name

    Name to connect with