<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMIDI",
  "identifier" : "/documentation/CoreMIDI/MIDIEventPacketSysexBytesForGroup(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core MIDI"
    ],
    "preciseIdentifier" : "c:@F@MIDIEventPacketSysexBytesForGroup"
  },
  "title" : "MIDIEventPacketSysexBytesForGroup(_:_:_:)"
}
-->

# MIDIEventPacketSysexBytesForGroup(_:_:_:)

Gets MIDI 1.0 system-exclusive (SysEx) bytes on the indicated group.

```
func MIDIEventPacketSysexBytesForGroup(_ pkt: UnsafePointer<MIDIEventPacket>, _ groupIndex: UInt8, _ outData: UnsafeMutablePointer<Unmanaged<CFData>?>) -> OSStatus
```

## Parameters

`pkt`

A [`MIDIEventPacket`](/documentation/CoreMIDI/MIDIEventPacket) that contains universal MIDI packet (UMP) SysEx data.

`groupIndex`

The target group index, from `0` to `15`.

`outData`

When successful, a reference byte stream of extracted SysEx data.

## Return Value

An `OSStatus` result code.

---

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)