AKPolyphonicNode

@objc open class AKPolyphonicNode: AKNode, AKPolyphonic

Bare bones implementation of AKPolyphonic protocol

  • Undocumented

    Declaration

    Swift

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

    • Parameters:
      • noteNumber: MIDI Note Number
      • velocity: MIDI Velocity
      • frequency: Play this 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

    • Parameters:
      • noteNumber: MIDI Note Number
      • velocity: MIDI Velocity

    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

    open func stop(noteNumber: MIDINoteNumber)

    Parameters

    noteNumber

    MIDI Note Number