PortMidi.GetDeviceInfo
----------------------

Return device information.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [PortMidi](component_PortMidi.md) | [4.2](newinversion42.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "PortMidi.GetDeviceInfo"; Index; Selector ) 

**MBS**( **"PortMidi.GetDeviceInfo";** /\* Return device information. \*/  
**$Index**; /\* The device ID to query. From 0 to [PortMidi.DeviceCount](PortMidiDeviceCount.md)-1.e.g. 0 \*/   
**$Selector**) /\* Which detail to query. Can be Name, Interface, Input, Output or Opened.e.g. "name" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Index | The device ID to query. From 0 to [PortMidi.DeviceCount](PortMidiDeviceCount.md)-1. | 0 |
| Selector | Which detail to query. Can be Name, Interface, Input, Output or Opened. | "name" |

### Result

Returns value or error.

### Description

Return device information.  
Information to query are the name of the device, the name of the interface, whether it's an input or output device and the open status.  
### Examples

Query if first device is open:

 MBS ( "PortMidi.GetDeviceInfo"; 0; "opened" )  
Query name of third device

 MBS ( "PortMidi.GetDeviceInfo"; 2; "Name" )  
### See also

- [PortMidi.DeviceCount](PortMidiDeviceCount.md)
- [PortMidi.GetDeviceID](PortMidiGetDeviceID.md)
- [PortMidi.GetDeviceName](PortMidiGetDeviceName.md)

### Example Databases

- [Midi/Midi List Devices](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Midi/Midi%20List%20Devices.shtml#1ScriptAnchor_)
- [Midi/Midi Receive](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Midi/Midi%20Receive.shtml#1ScriptAnchor_)
- [Midi/Midi Send](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Midi/Midi%20Send.shtml#1ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 6.3pr5](https://www.mbsplugins.de/archive/2016-07-04/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[PortMidi.GetDeviceID](PortMidiGetDeviceID.md) - [PortMidi.GetDeviceName](PortMidiGetDeviceName.md)

[HTML Version](PortMidiGetDeviceInfo.shtml)