mg()

mg(input, cutoff, resonance)

Category

Filter

Description

Alias of the Moog-style resonant low-pass filter. Prefer moog() in new presets, but mg() is documented for old formulas.

Arguments

Typical Values

Cutoff is normalized; start around 0.02 to 0.35 for musical results. Resonance/Q is typically 0.0 to 0.9. Keep extreme feedback/resonance values under control.

Example

mg(pwm(X, 0.28+0.14*exp(-pos()/5000)), 0.55*exp(-pos()/3200), 0.22)

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.