mctrl
Return the midi control change value for the controller number
Syntax
Usage
mctrl returns the midi cc value for the controller number (ictrlnum).
The midi channel will be taken from the midi channel assigned to the enclosing instrument (see midiroute),
unless specified in the optional argument imchannel.
Pitchbend
A special global string gsmidi_pb_channel captures midi pitch bend for each channel.
Sustain
CC# 64 is assumed to be a sustain pedal (note-off messages for midi generated events on the channel are ignored when the pedal is 'on').
Arguments
i/kval -- The output value of the controller. The range is scaled between 0 - 1.
ictrlnum -- The controller number.
icinit (optional, default=last known value) -- set an initial value.
imchannel (optional, default=mapped p1) -- listen on this midi channel