RNBO Objects & Operators sah
Open Help

sah

Sample and hold operator (Schmitt trigger)

Description

Use sah to capture ("sample") and continually output ("hold") the value of an input number whenever another "control" value rises above a specified threshold. The sampled value is "held" until the control number value drops below and then rises above the threshold value once more at which point the input is sampled again.

Inlets

input [number]

The input value value that is sampled or held.

trig [number]

The trigger vale. When the trigger is above the threshold , the input is held and when it drops below the threshold, the input is sampled again.

thresh [number]

The threshold that the trigger must pass to switch between sample and hold behaviors.

Dynamic Attributes

These attributes can be modified in the code during execution using the set object

input [number]

The input value value that is sampled or held.

thresh [number]

The threshold that the trigger must pass to switch between sample and hold behaviors.

trig [number]

The trigger vale. When the trigger is above the threshold , the input is held and when it drops below the threshold, the input is sampled again.

See Also

Name Description
sah~
sah~ Sample and hold operator (Schmitt trigger)
gate Pass an input to one of several outlets.
gatetotrig A gate to trigger operator.
thresh Detect input above a certain level