AKMIDIEvent

public struct AKMIDIEvent

A container for the values that define a MIDI event

  • Internal data

    Declaration

    Swift

    public var internalData = [UInt8](zeroes: 128)
  • Status

    Declaration

    Swift

    public var status: AKMIDIStatus
  • System Command

    Declaration

    Swift

    public var command: AKMIDISystemCommand
  • MIDI Channel

    Declaration

    Swift

    public var channel: UInt8?
  • Undocumented

    Declaration

    Swift

    public struct AKMIDIEvent
  • Undocumented

    Declaration

    Swift

    public struct AKMIDIEvent
  • Undocumented

    Declaration

    Swift

    public struct AKMIDIEvent
  • Create note on event

    • Parameters:
      • noteNumber: MIDI Note number
      • velocity: MIDI Note velocity (0-127)
      • channel: Channel on which the note appears

    Declaration

    Swift

    static public func noteOn(noteNumber: UInt8,
                                  velocity: UInt8,
                                  channel: UInt8 ) -> AKMIDIEvent

    Parameters

    noteNumber

    MIDI Note number

    velocity

    MIDI Note velocity (0-127)

    channel

    Channel on which the note appears

  • Create note off event

    • Parameters:
      • noteNumber: MIDI Note number
      • velocity: MIDI Note velocity (0-127)
      • channel: Channel on which the note appears

    Declaration

    Swift

    static public func noteOff(noteNumber: UInt8,
                                   velocity: UInt8,
                                   channel: UInt8) -> AKMIDIEvent

    Parameters

    noteNumber

    MIDI Note number

    velocity

    MIDI Note velocity (0-127)

    channel

    Channel on which the note appears

  • Create program change event

    • Parameters:
      • data: Program change byte
      • channel: Channel on which the program change appears

    Declaration

    Swift

    static public func programChange(data: UInt8,
                                         channel: UInt8) -> AKMIDIEvent

    Parameters

    data

    Program change byte

    channel

    Channel on which the program change appears

  • Create controller event

    • Parameters:
      • controller: Controller number
      • value: Value of the controller
      • channel: Channel on which the controller value has changed

    Declaration

    Swift

    static public func controllerChange(controller: UInt8,
                                            value: UInt8,
                                            channel: UInt8) -> AKMIDIEvent

    Parameters

    controller

    Controller number

    value

    Value of the controller

    channel

    Channel on which the controller value has changed

  • Undocumented

    Declaration

    Swift

    public struct AKMIDIEvent