midiid

Interactively identify MIDI control

Syntax

Description

example

[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.

Examples

expand all

Retrieve Control Number and Device Name

Call midiid.

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

Output Arguments

expand all

ctl — Number associated with control being movedinteger values

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 — Name of devicecharacter string

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

Example: 'nanoKontrol'

Data Types: char

Was this topic helpful?