<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: 10.0.0 - 10.6.0",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMIDI",
  "identifier" : "/documentation/CoreMIDI/MIDISetupGetCurrent",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core MIDI"
    ],
    "preciseIdentifier" : "c:@F@MIDISetupGetCurrent"
  },
  "title" : "MIDISetupGetCurrent"
}
-->

# MIDISetupGetCurrent

Returns the system’s current MIDISetup.

```
extern OSStatus MIDISetupGetCurrent(MIDISetupRef *outSetup);
```

## Parameters

`outSetup`

On successful return, points to the system’s most recently installed MIDISetup. The system retains ownership of the object; the client must *not* dispose of this MIDISetup.

## Return Value

An OSStatus result code.

## Discussion

As of CoreMIDI 1.1, it is usually not necessary to call this function, as CoreMIDI manages a single persistent MIDISetup itself.

---

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)