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
data1First data packet value.
data2Second data packet value.
-
Initilize only first data packet with UInt8 value between 0 - 127.
Declaration
Swift
public init(data1: UInt8)Parameters
data1First data packet value.
-
Initilize both packets with a UInt16 value between 0 - 16383.
Declaration
Swift
public init(data: UInt16)Parameters
dataBoth 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
onOn/off value of the first data packet.
View on GitHub
MIDIEventData Structure Reference