lmt()

lmt(input, threshold)

Category

Envelope / Control

Description

Envelope-style limiter/window helper. It is useful for limiting a signal or modulation by a threshold-like value.

Transfer curve

lmt transfer curve

Example: lmt(saw(x*2*pi()*440/44100),0.75)

Arguments

Typical Values

Use moderate values first, then increase modulation depth while listening for clipping, aliasing, or excessive filter resonance.

Example

lmt(sin(X), 0.7)

Notes

For pitched oscillator functions, X already contains the current MIDI note pitch and transpose information. Prefer saw(X), sin(X), or pwm(X, 0.4) unless you intentionally want an octave or ratio shift such as 0.5*X or 2*X.