Sample and Hold

Copies its input to its output when triggered and holds it until the next trigger.

Parameters

NameTypeDescription
ValueoutputFloatThe value taken at the last trigger.
InputFloatThe value to take when triggered.
SampleTriggerTakes the current input.

The Sample and Hold operator freezes a value. Each trigger copies the current input to the output, which keeps it until the next trigger however much the input changes in between. Before the first trigger the output is 0. Connect a Beat to the sample trigger to turn a moving value into steps that change on the beat.

See also Random, Beat.

Keywords: freeze, latch, snapshot