Audio Toolkit - midiid
- :
[ctrlid, dev] =
midiid()
Scan for control messages from midi devices to get the id of the device
Function will display a prompt for the user to move the midi control and return when a control messages is detected or ctrl-C is pressed.
Inputs
None
Outputs
ctrlid - control id made from the controller channel * 1000 + controller number.
dev = name of the midi device the controller was detected on.Examples
Monitor midi devices for first moving controller
[ctrlid, devname] = midiid()
See also: mididevinfo, midicontrols.