Smooth

Slow a control lane down with separate rise and fall times so jumpy sensors and buttons stop clicking.

  • Control
  • Since 0.2.0
  • smooth
  • slew
  • filter
  • control

Open in TuneToys

Smooth as the Patch draws it, at default values: inlets on the left, outlets on the right.

Smooth slows a control lane down with separate rise and fall times, so jumpy sensors and buttons stop clicking.

What it does#

The output chases the input. Rise is the time constant while the value is increasing and Fall is the time constant while it is decreasing, each from 0 to 10000 ms. At 0 ms that direction follows the input immediately. Setting Fall longer than Rise gives a quick attack with a slow release. The same smoothing applies to every lane of the input.

When to use it#

Use it after sources that jump, such as a counter, a square LFO or a button, and ahead of anything that would click if the value stepped. For deliberate envelope-like motion on audio level, see Envelope follower.

Ports#

PortDirectionSignalLanes
controlInputControlInferred from the cable
controlOutputControlInferred from the cable

Parameters#

ParameterLabelRangeDefaultUnitScaleNotes
rise_msRise0 to 1000050mslinearTime constant while the value is increasing.
fall_msFall0 to 10000200mslinearTime constant while the value is decreasing.

Rise (rise_ms)#

The time constant, in milliseconds, while the value is going up. 0 to 10000.

Fall (fall_ms)#

The time constant, in milliseconds, while the value is going down. 0 to 10000.

Tips#

  • Use a short Rise and a long Fall for a lingering release.
  • Set both to 0 to pass the signal straight through.

See also#

Control LFO, Scale, Envelope follower, Cables.

Help patches

Each help patch is an ordinary Toy that teaches one idea. The diagram shows the Patch; the preview shows its Frame. Open it in TuneToys to play and edit it.

1. Soften a square wave

beginner Teaches: rise_ms, fall_ms

A square control wave is smoothed with separate rise and fall times.

Patch: Oscillator audio output connected to Patch outputs audio input. Control LFO control output connected to Smooth control input.
Connections as text
  • Oscillator audio output connected to Patch outputs audio input
  • Control LFO control output connected to Smooth control input
  • A square LFO jumps between two values.
  • Rise and Fall round off the up and down edges separately.
Frame preview: Soften a square waveFrame “Soften a square wave” with 3 elements: knob Fall, text heading, knob Rise.200 msFallSOFTEN A SQUARE WAVE50 msRise
Frame preview (static). Controls show their default values.

Open in TuneToys

  • Scale Map a control range onto another with a curve, clamp and inversion. Depth and offset for any modulation.
  • Control LFO A free-running or tempo-synced low-frequency oscillator on a control lane, 0 to 1, with depth, offset, phase, skew, random shapes and a reset input.
  • Envelope follower Track the level of an audio bundle as one control lane per channel, with attack and release.

Edit this page on GitHub

esc

↑ ↓ move↩ open⌘↩ new tabesc close