AKPolyphonicNode

@objc
open class AKPolyphonicNode : AKNode, AKPolyphonic

Bare bones implementation of AKPolyphonic protocol

  • Global tuning table used by AKPolyphonicNode (AKNode classes adopting AKPolyphonic protocol)

    Declaration

    Swift

    @objc
    open static var tuningTable: AKTuningTable
  • Declaration

    Swift

    open var midiInstrument: AVAudioUnitMIDIInstrument?
  • Play a sound corresponding to a MIDI note with frequency

    Declaration

    Swift

    @objc
    open func play(noteNumber: MIDINoteNumber, velocity: MIDIVelocity, frequency: Double)

    Parameters

    noteNumber

    MIDI Note Number

    velocity

    MIDI Velocity

    frequency

    Play this frequency

  • Play a sound corresponding to a MIDI note

    Declaration

    Swift

    @objc
    open func play(noteNumber: MIDINoteNumber, velocity: MIDIVelocity)

    Parameters

    noteNumber

    MIDI Note Number

    velocity

    MIDI Velocity

  • Stop a sound corresponding to a MIDI note

    Declaration

    Swift

    @objc
    open func stop(noteNumber: MIDINoteNumber)

    Parameters

    noteNumber

    MIDI Note Number