afterTouch(value)

Description

Use this function to generate channel aftertouch MIDI events.

Available in: Processor.

Arguments

valueThe aftertouch value in the range (0 - 127).

Example

--invert aftertouch values

function onAfterTouch(event)
    afterTouch(127 - event.value)
end

See Also: onAfterTouch