AKPolyphonic

public protocol AKPolyphonic

Protocol for responding to play and stop of MIDI notes

  • Play a sound corresponding to a MIDI note

    • Parameters:
      • noteNumber: MIDI Note Number
      • velocity: MIDI Velocity
      • frequency: Play this frequency

    Declaration

    Swift

    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

    func play(noteNumber: MIDINoteNumber, velocity: MIDIVelocity)

    Parameters

    noteNumber

    MIDI Note Number

    velocity

    MIDI Velocity

  • Stop a sound corresponding to a MIDI note

    Declaration

    Swift

    func stop(noteNumber: MIDINoteNumber)

    Parameters

    noteNumber

    MIDI Note Number