/ HALion Developer Resource / HALion Script / Reference /

getCC

getCC(controller)

Description

Function to read the current value of a continuous controller.

Available in: Processor.

Arguments

ArgumentDescriptionValue Type
controllerThe controller number. See Controller Numbers for a description of the different controllers.number

Return Values

Returns the current value of the continuous controller specified by the argument.

Example

-- Replace the note-on velocity with the value of the modulation wheel.

function onNote(event)
    playNote(event.note, getCC(1))
end

See also: onController, controlChange