<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVMIDIMetaEvent",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:objc(cs)AVMIDIMetaEvent"
  },
  "title" : "AVMIDIMetaEvent"
}
-->

# AVMIDIMetaEvent

An object that represents MIDI meta event messages.

```
class AVMIDIMetaEvent
```

## Overview

You can’t modify the size and contents of this event once you create it. This doesn’t verify that the content matches the MIDI specification.

You can only add [`AVMIDIMetaEvent.EventType.tempo`](/documentation/AVFAudio/AVMIDIMetaEvent/EventType/tempo), [`AVMIDIMetaEvent.EventType.smpteOffset`](/documentation/AVFAudio/AVMIDIMetaEvent/EventType/smpteOffset), or [`AVMIDIMetaEvent.EventType.timeSignature`](/documentation/AVFAudio/AVMIDIMetaEvent/EventType/timeSignature) to a sequence’s tempo track.

## Topics

### Creating a Meta Event

[`init(type:data:)`](/documentation/AVFAudio/AVMIDIMetaEvent/init(type:data:))

Creates an event with a MIDI meta event type and data.

### Getting the Meta Event Type

[`type`](/documentation/AVFAudio/AVMIDIMetaEvent/type)

The type of meta event.

[`AVMIDIMetaEvent.EventType`](/documentation/AVFAudio/AVMIDIMetaEvent/EventType)

Constants that represent the types of meta events.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)