midictrlReal-time MIDI:Inputmidictrlmidictrl
Get the current value (0-127) of a specified MIDI controller.
Description
Get the current value (0-127) of a specified MIDI controller.
Syntaxival midictrl inum [, imin] [, imax]kval midictrl inum [, imin] [, imax]Initializationinum -- MIDI controller number (0-127)
imin, imax -- set minimum and maximum limits on values obtained.
Performance
Get the current value (0-127) of a specified MIDI controller.
Warningmidictrl should only be used in notes that were triggered from MIDI, so that an associated channel number is available. For notes activated from the score, line events, or orchestra, the ctrl7 opcode that takes an explicit channel number should be used instead.
Examples
Here is an example of the midictrl opcode. It uses the file midictrl.csdExample of the midictrl opcode.See alsoMIDI input and InitializationCreditsAuthor: &namebarry; - &namemike;MIT - MillsMay 1997Thanks goes to &namerasmus; for pointing out the correct controller number range.