hp()

hp(input, cutoff, resonance)

Category

Filter

Description

High-pass filter. It removes low frequencies below the cutoff; typical cutoff values are around 0.01 to 0.35 with resonance around 0.0 to 0.8.

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

hp(white(), 0.03+0.05*exp(-pos()/8000), 0.09)

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.