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

    open static var tuningTable = AKTuningTable()
  • Declaration

    Swift

    @objc open class AKPolyphonicNode: AKNode, AKPolyphonic
  • Play a sound corresponding to a MIDI note with frequency

    Declaration

    Swift

    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

    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