Audio Toolkit - midiread
- :
val =
midiread(midicontrolsObj)
Read current values of midi controls
Inputs
midicontrolObj - control object created using midicontrols
Outputs
val single value or array of current values from the midi device.
Examples
Read current value of midicontrols with a ctrlid 2001 on the default midi device.
ctrl = midicontrols(2001) val = midiread(ctrl);
Read current value of midicontrols with a ctrlid 2001 on a non default midi device.
ctrl = midicontrols(2001, 'mididevice', 1) val = midiread(ctrl);
See also: midicontrols, midisync.