AKMIDIEvent

public struct AKMIDIEvent : AKMIDIMessage

A container for the values that define a MIDI event

  • Internal data

    Declaration

    Swift

    public var data: [MIDIByte]
  • Position data - used for events parsed from a MIDI file

    Declaration

    Swift

    public var positionInBeats: Double?
  • Declaration

    Swift

    public var offset: MIDITimeStamp
  • Description

    Declaration

    Swift

    public var description: String { get }
  • Internal MIDIByte-sized packets - in development / not used yet

    Declaration

    Swift

    public var internalPackets: [[MIDIByte]] { get }
  • The length in bytes for this MIDI message (1 to 3 bytes)

    Declaration

    Swift

    public var length: Int { get }
  • Status

    Declaration

    Swift

    public var status: AKMIDIStatus? { get }
  • System Command

    Declaration

    Swift

    public var command: AKMIDISystemCommand? { get }
  • MIDI Channel

    Declaration

    Swift

    public var channel: MIDIChannel? { get }
  • MIDI Note Number

    Declaration

    Swift

    public var noteNumber: MIDINoteNumber? { get }
  • Representation of the pitchBend data as a MIDI word 0-16383

    Declaration

    Swift

    public var pitchbendAmount: MIDIWord? { get }
  • Initialize the MIDI Event from a MIDI Packet

    Declaration

    Swift

    public init(packet: MIDIPacket)

    Parameters

    packet

    MIDIPacket that is potentially a known event type

  • Initialize the MIDI Event from a raw MIDIByte packet (ie. from Bluetooth)

    Declaration

    Swift

    public init(data: [MIDIByte], offset: MIDITimeStamp = 0)

    Parameters

    data

    [MIDIByte] bluetooth packet