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 3 Next »

controlChange(controller, value)

Description

Use this function to generate MIDI controller events.

Available in: Processor.

Arguments

controllerThe MIDI controller number.
valueThe new value of the MIDI controller.

See onController for a list of valid controller numbers.

Example

--invert values of all MIDI controllers

function onController(event)
    if event.controller < 128 then
        controlChange(event.controller, 127 - event.value)
    else
        postEvent(event) --special controllers are just passed through
    end
end

See Also: onController, postEvent

  • No labels