controlChange(controller, value)
Description
Function to generate controller events.
Available in: Processor.
Arguments
controller | The controller number. See onController for a list of valid controller numbers. |
---|---|
value | The controller value in the range of 0 to 127. |
Example
--invert values of all MIDI controllers function onController(event) if event.controller < 128 then controlChange(event.controller, 127 - event.value) else postEvent(event) --other controllers are just passed through end end
See Also: onController, postEvent