AKMIDIEvent

public struct AKMIDIEvent

A container for the values that define a MIDI event

  • Internal data

    Declaration

    Swift

    public var internalData = [MIDIByte](zeros: 128)
  • Status

    Declaration

    Swift

    public var status: AKMIDIStatus?
  • System Command

    Declaration

    Swift

    public var command: AKMIDISystemCommand?
  • MIDI Channel

    Declaration

    Swift

    public var channel: MIDIChannel?
  • 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

    public init(noteOn noteNumber: MIDINoteNumber,
                    velocity: MIDIVelocity,
                    channel: MIDIChannel)

    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

    public init(noteOff noteNumber: MIDINoteNumber,
                  velocity: MIDIVelocity,
                  channel: MIDIChannel)

    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

    public init(programChange data: MIDIByte,
                    channel: MIDIChannel)

    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

    public init(controllerChange controller: MIDIByte,
                    value: MIDIByte,
                    channel: MIDIChannel)

    Parameters

    controller

    Controller number

    value

    Value of the controller

    channel

    Channel on which the controller value has changed

  • Undocumented

    Declaration

    Swift

    public struct AKMIDIEvent