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

# MIDISend(_:_:_:)

Sends MIDI to a destination.

```
func MIDISend(_ port: MIDIPortRef, _ dest: MIDIEndpointRef, _ pktlist: UnsafePointer<MIDIPacketList>) -> OSStatus
```

## Parameters

`port`

The output port through which the MIDI is to be sent.

`dest`

The destination to receive the events.

`pktlist`

The MIDI events to be sent.

## Return Value

An OSStatus result code.

## Discussion

Events with future timestamps are scheduled for future delivery. CoreMIDI performs any needed MIDI merging.

---

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)