AKMIDISampler

open class AKMIDISampler : AKAppleSampler

MIDI receiving Sampler

Be sure to enableMIDI if you want to receive messages

  • MIDI Input

    Declaration

    Swift

    open var midiIn: MIDIEndpointRef
  • Name of the instrument

    Declaration

    Swift

    open var name: String
  • Initialize the MIDI Sampler

    Declaration

    Swift

    public init(midiOutputName: String? = nil)

    Parameters

    midiOutputName

    Name of the instrument’s MIDI output

  • Enable MIDI input from a given MIDI client This is not in the init function because it must be called AFTER you start AudioKit

    Declaration

    Swift

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

    Parameters

    midiClient

    A reference to the MIDI client

    name

    Name to connect with