Timer Node

The Timer Node is a triggerable Node that outputs the time elapsed, in seconds, since it was triggered. The trigger must remain on for the timer to keep increasing, or it resets to 0 otherwise.


Inputs

Trigger Input

An audio or control signal input, which, when increases above the Threshold setting, will start the Timer Node. The Timer Node keeps ticking while the signal remains above the Threshold.

This input is only used in Signal threshold trigger mode.

Melody Trigger Input

A melody input which starts the Timer Node when receiving a note. The Timer Node keeps ticking until the note is released.

This input is only used in Signal threshold trigger mode.

Rate-Control Input

A control signal input to control the Rate setting.


Settings

Rate

Time progression rate, as a multiplier. A value of 1.0 means the Timer Node’s output will increase by 1 every second. A value above 1.0 means the output will increase faster, while a value below 0 means it will increase slower. A value of 0 will freeze the current output value, and a negative value will cause the output to progress backwards (or decrease).

Signal threshold

Threshold value above which the Trigger Input should be for the Timer Node. Slider only appears when the trigger mode is set to signal threshold, see the details below.

Trigger mode

Melody trigger or Signal threshold trigger.

The Melody trigger mode starts the ADSR envelope sequence when a note from a melody connection triggers it from the Melody Trigger Input.

The Signal threshold trigger mode starts the ADSR envelope sequence when the value of a control signal connection, from the Trigger Input, reaches the Signal Threshold value.

Identical to the same setting in the ADSR Node.

Max Value

If set to a non-0 value, the Timer Node will automatically reset when it reaches this value.


Outputs

Elapsed Time Output

Elapsed time, in seconds, since the Node was last triggered if the Trigger Input is above the Threshold setting, or 0 otherwise.


Technical Details

The Timer Node’s output is sample accurate, and because it outputs a 32-bit floating point value for each sample, it can technically run for decades and still keep going.

However, as the output value increases, it also starts losing precision. This loss of precision is insignificant by itself, but, if you use it for something like a phasor for a Sine Node to produce a sine wave, is still enough to manifest audio artifacts after about 10 minutes. If this is an issue, consider using the Max Value setting to keep the output samples low enough to maintain precision.