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

controlChange(controller, value)

Description

Function to generate controller events.

Available in: Processor.

Arguments

controllerThe controller number. See Controller Numbers for a description of the different controllers.number
valueThe controller value in the range of 0 to 127.number

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

1 Comment