<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMIDI",
  "identifier" : "/documentation/CoreMIDI/MIDIPacket",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core MIDI"
    ],
    "preciseIdentifier" : "c:@S@MIDIPacket"
  },
  "title" : "MIDIPacket"
}
-->

# MIDIPacket

A collection of simultaneous MIDI events.

```
struct MIDIPacket
```

## Topics

### Configuring a Packet

[`timeStamp`](/documentation/CoreMIDI/MIDIPacket/timeStamp)

The MIDI packet timestamp.

[`length`](/documentation/CoreMIDI/MIDIPacket/length)

The number of valid MIDI data bytes in this packet.

[`data`](/documentation/CoreMIDI/MIDIPacket/data)

A variable-length stream of MIDI messages.



---

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)