Sample and hold
Name | Type | Opt | Description |
---|---|---|---|
initial-trigger-value | int or float | opt | Sets the initial trigger value. The default is 0. |
float | trigger-value [float] |
In left inlet: Sets the trigger value. |
signal | In left inlet: A signal to be sampled. When the control signal (in the right inlet) goes from being at or below the current trigger value to being above the trigger value, the signal in the left inlet is sampled and its value is sent out as a constant signal value. In right inlet: The control signal. In order to cause a change in the output of sah~, the control signal must go from being at or below the trigger value to above the trigger value. When this transition occurs, the signal in the left inlet is sampled and becomes the new output signal value. |