AKMIDIEvent

public struct AKMIDIEvent

A container for the values that define a MIDI event

  • Initialize the MIDI Event from a MIDI Packet

    Declaration

    Swift

    public init(packet: MIDIPacket)

    Parameters

    packet

    MIDIPacket that is potentially a known event type

  • Generate array of MIDI events from Bluetooth data

    Declaration

    Swift

    public static func generateFrom(bluetoothData: [MIDIByte]) -> [AKMIDIEvent]
  • Initialize the MIDI Event from a raw MIDIByte packet (ie. from Bluetooth)

    Declaration

    Swift

    public init(data: [MIDIByte])

    Parameters

    data

    [MIDIByte] bluetooth packet