MIDICtlNum
Returns the corresponding controller number for a controller name (ie, "Vol H").
Synopsis
number = MIDICtlNum(name)
Args
name is the controller name for which the corresponding number is to be returned.
Returns
The controller number, or an empty string if an error.
Notes
See MIDICtlName() for a list of defined controller numbers and their names.
name can be a substring of the Controller name. For example, if the string is simply "Mod", then MIDI Rexx considers this to match the first Controller whose name begins with "Mod", which would be "Mod H". The substring match must be at the head of the string. For example, "+" does not match "Data +", but "Dat" does. Furthermore, leading/trailing blanks and case are ignored.
If you set the MidiErr variable to raise a condition, then that condition is raised if the name you pass is not a known controller name.
Examples
/* Get the number corresponding to a controller name of 'Vol H' */ num = MIDICtlNum('Vol H') IF num \== "" THEN SAY 'Vol H is controller #'|| num