/ 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

ArgumentDescriptionValue Type
eventEvent object of the type controller.Event

Fields

FieldDescriptionValue Type
.typeThe type of event (3 = controller). See Event Types for details.number
.valueThe 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