Main Content

midiid

Interactively identify MIDI control

Description

example

[controlNumber,deviceName] = midiid returns the control number and device name of the MIDI control you move. Call the function and then move the control you want to identify. The function detects which control you move and returns the control number and device name that specify that control.

Examples

collapse all

Call midiid and then move the control you want to identify on the MIDI device you want to identify.

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

ctl =
1002
dev =
nanoKONTROL

Output Arguments

collapse all

MIDI device control number, specified as an integer. The device manufacturer assigns the value to the control for identification purposes.

MIDI device name assigned by the device manufacturer or host operating system, specified as a string.

Version History

Introduced in R2016a