/ HALion Developer Resource / HALion Script / Reference /

controlChange

controlChange(controller, value)

Description

Function to generate controller events.

Available in: Processor.

Arguments

ArgumentDescriptionValue Type
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 the values of all MIDI controllers. function onController(event) if event.controller < 120 then controlChange(event.controller, 127 - event.value) else postEvent(event) -- Other controllers are just passed through. end end

See also: onController, getCC, afterTouch, pitchBend