Page tree
Skip to end of metadata
Go to start of metadata

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

event

Fields

.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

1 Comment