# Smooth

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

Source: https://docs.tune.toys/nodes/ctl.smooth/

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](https://docs.tune.toys/nodes/ctl.follow/).

## Ports

<!-- ports:start -->

| Port      | Direction | Signal  | Lanes                   |
| --------- | --------- | ------- | ----------------------- |
| `control` | Input     | Control | Inferred from the cable |
| `control` | Output    | Control | Inferred from the cable |

<!-- ports:end -->

## Parameters

<!-- parameters:start -->

| Parameter | Label | Range      | Default | Unit | Scale  | Notes                                        |
| --------- | ----- | ---------- | ------- | ---- | ------ | -------------------------------------------- |
| `rise_ms` | Rise  | 0 to 10000 | 50      | ms   | linear | Time constant while the value is increasing. |
| `fall_ms` | Fall  | 0 to 10000 | 200     | ms   | linear | Time constant while the value is decreasing. |

<!-- parameters:end -->

### 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](https://docs.tune.toys/nodes/ctl.lfo/), [Scale](https://docs.tune.toys/nodes/ctl.scale/), [Envelope follower](https://docs.tune.toys/nodes/ctl.follow/), [Cables](https://docs.tune.toys/concepts/cables/).
