---
title: "MIDIEventPacketSysexBytesForGroup(_:_:_:)"
framework: coremidi
role: symbol
role_heading: Function
path: "coremidi/midieventpacketsysexbytesforgroup(_:_:_:)"
---

# MIDIEventPacketSysexBytesForGroup(_:_:_:)

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

## Declaration

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

## Parameters

- `pkt`: A doc://com.apple.coremidi/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

Return Value An OSStatus result code.

## See Also

### Configuring and inspecting a request

- [destination](coremidi/midisysexsendrequestump/destination.md)
- [words](coremidi/midisysexsendrequestump/words.md)
- [wordsToSend](coremidi/midisysexsendrequestump/wordstosend.md)
- [complete](coremidi/midisysexsendrequestump/complete.md)
- [MIDICompletionProcUMP](coremidi/midicompletionprocump.md)
- [completionProc](coremidi/midisysexsendrequestump/completionproc.md)
- [completionRefCon](coremidi/midisysexsendrequestump/completionrefcon.md)
