getCC(controller)

Description

Function to read the current value of a continuous controller.

Available in: Processor.

Arguments

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