MIKMIDIMetaEvent

Objective-C

@interface MIKMIDIMetaEvent : MIKMIDIEvent

Swift

class MIKMIDIMetaEvent : MIKMIDIEvent

A MIDI meta event.

  • Can be used to get the high-level MIKMIDIEventType for an MIKMIDIMetaEventType. Most users of MIKMIDI should not need to use this.

    Declaration

    Objective-C

    + (MIKMIDIEventType)eventTypeForMetaSubtype:(MIKMIDIMetaEventType)subtype;

    Swift

    class func eventType(forMetaSubtype subtype: MIKMIDIMetaEventType) -> MIKMIDIEventType

    Parameters

    subtype

    An MIKMIDIMetaEventType value.

    Return Value

    The corresponding MIKMIDIEventType value. MIKMIDIEventTypeNULL if subtype is invalid or unknown.

  • Can be used to get the meta event subtype MIKMIDIMetaEventType for an MIKMIDIEventType. Most users of MIKMIDI should not need to use this.

    Declaration

    Objective-C

    + (MIKMIDIMetaEventType)metaSubtypeForEventType:(MIKMIDIEventType)eventType;

    Swift

    class func metaSubtype(for eventType: MIKMIDIEventType) -> MIKMIDIMetaEventType

    Parameters

    eventType

    An MIKMIDIEventType value.

    Return Value

    The corresponding MIKMIDIMetaEventType value. MIKMIDIMetaEventTypeInvalid if eventType is invalid or unknown.

  • Initializes a new MIKMIDIMetaEvent subclass with the specified data and metadataType.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithMetaData:(nonnull NSData *)metaData
                                metadataType:(MIKMIDIMetaEventType)type
                                   timeStamp:(MusicTimeStamp)timeStamp;

    Swift

    init(metaData: Data, metadataType type: MIKMIDIMetaEventType, timeStamp: MusicTimeStamp)

    Parameters

    metaData

    An NSData containing the metadata for the event.

    type

    The type of metadata. The appropriate subclass of MIKMIDIMetaEvent will be returned depending on this value. If this value is invalid or unknown, a plain MIKMIDIMetaEvent instance will be returned.

    timeStamp

    The MusicTimeStamp timestamp for the event.

    Return Value

    An initialized instance of MIKMIDIMetaEvent or one of its subclasses.

  • The type of metadata. See MIDIMetaEvent for more information.

    Declaration

    Objective-C

    @property (nonatomic, readonly) MIKMIDIMetaEventType metadataType;

    Swift

    var metadataType: MIKMIDIMetaEventType { get }
  • The length of the metadata. See MIDIMetaEvent for more information.

    Declaration

    Objective-C

    @property (nonatomic, readonly) UInt32 metadataLength;

    Swift

    var metadataLength: UInt32 { get }
  • The metadata for the event.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) NSData *_Nonnull metaData;

    Swift

    var metaData: Data { get }