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

# MIDIReceivedEventList(_:_:)

Distributes incoming MIDI events from a source to its connected client input ports.

```
func MIDIReceivedEventList(_ src: MIDIEndpointRef, _ evtlist: UnsafePointer<MIDIEventList>) -> OSStatus
```

## Parameters

`src`

The source that’s transmitting MIDI events.

`evtlist`

The MIDI events to transmit.

## Return Value

An `OSStatus` result code.

## Discussion

Drivers can call this function when receiving MIDI events from a source.

Clients that create virtual sources, using [`MIDISourceCreateWithProtocol(_:_:_:_:)`](/documentation/CoreMIDI/MIDISourceCreateWithProtocol(_:_:_:_:)), can call this function when the source is generating MIDI events.

---

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)