---
title: "MIDIExternalDeviceCreate(_:_:_:_:)"
framework: coremidi
role: symbol
role_heading: Function
path: "coremidi/midiexternaldevicecreate(_:_:_:_:)"
---

# MIDIExternalDeviceCreate(_:_:_:_:)

Creates an external MIDI device.

## Declaration

```swift
func MIDIExternalDeviceCreate(_ name: CFString, _ manufacturer: CFString, _ model: CFString, _ outDevice: UnsafeMutablePointer<MIDIDeviceRef>) -> OSStatus
```

## Parameters

- `name`: The name of the device to create.
- `manufacturer`: The name of the device’s manufacturer.
- `model`: The model name of the device.
- `outDevice`: On successful return, this points to the newly created device.

## Return Value

Return Value An OSStatus result code.

## Discussion

Discussion Non-drivers may call this function to create external devices.

## See Also

### Managing External Devices

- [MIDISetupAddExternalDevice(_:)](coremidi/midisetupaddexternaldevice(_:).md)
- [MIDISetupRemoveExternalDevice(_:)](coremidi/midisetupremoveexternaldevice(_:).md)
