Patches

Smooth Value

Smooth Value

Smooth a value over time. Useful for smoothing out noisy values, such as the output of a [Microphone].

Smooth Value

  • Value
  • Rising Hysteresis
  • Falling Hysteresis
  • Reset
  • Progress

Value

A number to smooth.

Rising Hysteresis

A number from 0-1 that represents the rate at which to smooth the value when rising, where the value in the next frame = (previous frame * risingHysteresis) + (current frame * (1 - risingHysteresis).

Falling Hysteresis

A number from 0-1 that represents the rate at which to smooth the value when falling. The default value of -1 is used for symmetrical smoothing. When falling, the value in the next frame = (previous frame * fallingHysteresis) + (current frame * (1 - fallingHysteresis).

Reset

A pulse that resets the value to the input value.

Progress

Smoothed value