Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Example

Code Block
-- 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

...