Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »

controlChange(controller, value)

Description

Function to generate controller events.

Available in: Processor.

Arguments

controllerThe controller number. See Controllers for valid controller numbers.
valueThe 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
  • No labels