MIDIEventData

public struct MIDIEventData: Equatable

Holds two UInt8 MIDI data packets for the event messages.

  • First midi data packet.

    Declaration

    Swift

    public var data1: UInt8
  • Second midi data packet.

    Declaration

    Swift

    public var data2: UInt8
  • Both data packets are empty.

    Declaration

    Swift

    public init()
  • Initilze both data packets with a UInt8 value between 0 - 127.

    Declaration

    Swift

    public init(data1: UInt8, data2: UInt8)

    Parameters

    data1

    First data packet value.

    data2

    Second data packet value.

  • Initilize only first data packet with UInt8 value between 0 - 127.

    Declaration

    Swift

    public init(data1: UInt8)

    Parameters

    data1

    First data packet value.

  • Initilize both packets with a UInt16 value between 0 - 16383.

    Declaration

    Swift

    public init(data: UInt16)

    Parameters

    data

    Both data packets will be created by spliting into two UInt8 data packets by this UInt16 value.

  • Initilize only first packet with a toggle on/off value.

    Declaration

    Swift

    public init(on: Bool)

    Parameters

    on

    On/off value of the first data packet.

  • Declaration

    Swift

    public static func ==(lhs: MIDIEventData, rhs: MIDIEventData) -> Bool