This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Interactively identify MIDI control

The midiid function will be removed from DSP System Toolbox™ in a future release. Existing instances of the function continue to run. For new code, use the midiid function from Audio System Toolbox™ instead.


[ctl device] = midiid



[ctl device] = midiid returns the control number and device name of the MIDI control moved by the user. Call the function at the MATLAB command prompt and then move the control you want to identify on the MIDI control surface. The function detects which control you move and returns the corresponding control number and device name that specify that control.


collapse all

Call midiid.

[ctl,dev] = midiid;
Move the control you wish to identify; type ^C to abort.
Waiting for control message...
ctl =
dev =

Output Arguments

collapse all

ctl is an integer-valued double-precision number. Each control on the MIDI device has a specific integer assigned to it by the device manufacturer.

Example: 1003

Data Types: double

device is a character string assigned by the device manufacturer or the host operating system.

Example: 'nanoKontrol'

Data Types: char

Introduced in R2013b

Was this topic helpful?