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

onTriggerPad(number)

Description

This callback function is called when the script module receives a trigger event from a trigger pad. The Trigger Pads module must be placed before the script module. Trigger events are produced when the pad is pressed with the mouse, when a trigger note is played via MIDI or by calling playTriggerPad from another script module.

To be able to alter the trigger events, the function onPad does not pass on the trigger events automatically. To pass on the trigger events to subsequent modules, playTriggerPad must be called. See example below.

Available in: Processor.

Arguments

numberThe number of the trigger pad in the range from 1 to 8.number

Example

See Also: playTriggerPad 

1 Comment