MIDIEvent
public struct MIDIEvent: Equatable
Create MIDI event messages with MIDIStatusEvent enums for sending or create them from MIDIPacket’s for parsing received MIDI message.
-
Event type of the MIDI message.
Declaration
Swift
public var event: MIDIStatusEvent -
Timestamp of the MIDI message.
Declaration
Swift
public var timestamp: MIDIEventTimeStamp -
Initilize midi event with
MIDIStatusEventenums and a timestamp.Declaration
Swift
public init(event: MIDIStatusEvent, timestamp: MIDIEventTimeStamp)Parameters
eventEvent type of the message.
timestampTimestamp of the message.
-
Initilize midi event by parsing received midi packet.
Declaration
Swift
public init?(midiPacket: MIDIPacket)Parameters
midiPacketReceived midi packet for parsing into
MIDIEventstruct. -
MIDI Packet representation for sending event message.
Declaration
Swift
public var midiPacket: MIDIPacket -
Returns a MIDIPacketList packed with itself.
Declaration
Swift
public var midiPacketList: MIDIPacketList
View on GitHub
MIDIEvent Structure Reference