/ HALion Developer Resource / HALion Script / Reference /

afterTouch

afterTouch(value)

Description

Function to generate channel aftertouch events.

Available in: Processor.

Arguments

ArgumentDescriptionValue Type
valueThe aftertouch value in the range of 0 to 127.number

Example

-- Invert aftertouch values.
function onAfterTouch(event)
    local invAT =  127 - event.value
    afterTouch(invAT)
    print("Inverse AT:", invAT)
end

See also: onAfterTouch, controlChange, pitchBend