---
title: AVMIDIMetaEvent
framework: avfaudio
role: symbol
role_heading: Class
path: avfaudio/avmidimetaevent
---

# AVMIDIMetaEvent

An object that represents MIDI meta event messages.

## Declaration

```swift
class AVMIDIMetaEvent
```

## Overview

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, AVMIDIMetaEvent.EventType.smpteOffset, or AVMIDIMetaEvent.EventType.timeSignature to a sequence’s tempo track.

## Topics

### Creating a Meta Event

- [init(type:data:)](avfaudio/avmidimetaevent/init(type:data:).md)

### Getting the Meta Event Type

- [type](avfaudio/avmidimetaevent/type.md)
- [AVMIDIMetaEvent.EventType](avfaudio/avmidimetaevent/eventtype.md)

## Relationships

### Inherits From

- [AVMusicEvent](avfaudio/avmusicevent.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Handling MIDI Events

- [AVMIDINoteEvent](avfaudio/avmidinoteevent.md)
- [AVMIDISysexEvent](avfaudio/avmidisysexevent.md)
