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 MIDIStatusEvent enums and a timestamp.

    Declaration

    Swift

    public init(event: MIDIStatusEvent, timestamp: MIDIEventTimeStamp)

    Parameters

    event

    Event type of the message.

    timestamp

    Timestamp of the message.

  • Initilize midi event by parsing received midi packet.

    Declaration

    Swift

    public init?(midiPacket: MIDIPacket)

    Parameters

    midiPacket

    Received midi packet for parsing into MIDIEvent struct.

  • 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
  • Declaration

    Swift

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