---
title: MIDISetupRef
framework: Core MIDI
role: symbol
role_heading: Type Alias
path: coremidi/midisetupref
---

# MIDISetupRef

A type that represents the global state of the MIDI system, that contains lists of the devices and serial port owners.

## Declaration

```swift
typealias MIDISetupRef = MIDIObjectRef
```

## Discussion

Discussion Derives from MIDIObjectRef, does not have an owner object. Generally, only MIDI drivers and specialized configuration editors will need to manipulate MIDISetup objects, not the average MIDI client application. As of CoreMIDI 1.1, the MIDIServer maintains a single global MIDISetupRef, stored persistently in a preference file.

## See Also

### Data Types

- [MIDICIDeviceID](coremidi/midicideviceid.md)
- [MIDICIDeviceManager.DictionaryKey](coremidi/midicidevicemanager/dictionarykey.md)
- [MIDICIMUID](coremidi/midicimuid.md)
- [MIDICIPropertyExchangeRequestID](coremidi/midicipropertyexchangerequestid.md)
- [MIDIEventVisitor](coremidi/midieventvisitor.md)
- [MIDIUInteger14](coremidi/midiuinteger14.md)
- [MIDIUInteger2](coremidi/midiuinteger2.md)
- [MIDIUInteger28](coremidi/midiuinteger28.md)
- [MIDIUInteger4](coremidi/midiuinteger4.md)
- [MIDIUInteger7](coremidi/midiuinteger7.md)
- [MIDIUMPEndpointManager.DictionaryKey](coremidi/midiumpendpointmanager/dictionarykey.md)
- [MIDIUMPFunctionBlockID](coremidi/midiumpfunctionblockid.md)
- [MIDIUMPGroupNumber](coremidi/midiumpgroupnumber.md)
- [MIDICIDiscoveryResponseBlock](coremidi/midicidiscoveryresponseblock.md)
- [MIDICISessionDisconnectBlock](coremidi/midicisessiondisconnectblock.md)
