bp()

bp(input, cutoff, resonance)

Category

Filter

Description

Band-pass filter. It emphasizes a band around the cutoff frequency; useful for vowels, wind, percussion resonances, and narrow sweeps.

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

bp(white(), 0.18+0.05*exp(-pos()/1200), 0.65)

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.