---
title: "MIDIPacketNext(_:)"
framework: coremidi
role: symbol
role_heading: Function
path: "coremidi/midipacketnext(_:)"
---

# MIDIPacketNext(_:)

Advances a MIDI packet pointer to the next packet in a package list.

## Declaration

```swift
func MIDIPacketNext(_ pkt: UnsafePointer<MIDIPacket>) -> UnsafeMutablePointer<MIDIPacket>
```

## Parameters

- `pkt`: A pointer to a MIDI packet in a MIDI packet list.

## Return Value

Return Value The subsequent packet in the MIDIPacketList.

## See Also

### Packet list management

- [MIDIPacket](coremidi/midipacket.md)
- [MIDIPacketList](coremidi/midipacketlist.md)
- [MIDITimeStamp](coremidi/miditimestamp.md)
- [UnsafeMutableMIDIPacketListPointer](coremidi/unsafemutablemidipacketlistpointer.md)
- [UnsafeMutableMIDIPacketPointer](coremidi/unsafemutablemidipacketpointer.md)
