AKMIDINode

open class AKMIDINode : AKNode, 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 node

    Declaration

    Swift

    @objc
    public init(node: AKPolyphonicNode, midiOutputName: String? = nil)

    Parameters

    node

    A polyphonic node that will be triggered via MIDI

    midiOutputName

    Name of the node’s MIDI output

  • Enable MIDI input from a given MIDI client

    Declaration

    Swift

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

    Parameters

    midiClient

    A reference to the midi client

    name

    Name to connect with