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.

Sample and Hold freezes a value. Each trigger copies the current input to the output, and the output then keeps that value until the next trigger. The input can change as much as it likes in between, but the output does not move. Before the first trigger the output is 0.

Combine it with Beat to take a new value once per beat. Combine it with Random to hold a random value until the next trigger.

Keywords: freeze, latch, snapshot