/ HALion Developer Resource / HALion Script / Reference /
onAfterTouch
onAfterTouch(event)
Description
This callback function is called when the script module receives a channel aftertouch event.
❕ If the script doesn't implement onAfterTouch, all aftertouch events will be passed on to onController.
Available in: Processor.
Arguments
Fields
| Field | Description | Value Type |
|---|---|---|
| .type | The type of event (3 = controller). See Event Types for details. | number |
| .value | The aftertouch value in the range of 0 to 127. | number |
Example
-- Print the aftertouch value.
function onAfterTouch(event)
postEvent(event)
print("Aftertouch: "..event.value)
end
See also: afterTouch, onController, onPitchBend