packages feed

hsc3-0.2: Help/UGen/Filter/bpf.help.lhs

bpf in freq rq

Second order Butterworth bandpass filter

in    - input signal to be processed
freq  - cutoff frequency in Hertz
rq    - the reciprocal of Q, ie. bandwidth / cutoffFreq

> let f = fSinOsc KR (xLine KR 0.7 300 20 RemoveSynth) 0 * 3600 + 4000
> in audition (out 0 (bpf (saw AR 200 * 0.5) f 0.3 ))

> do { n <- whiteNoise AR
>    ; let { x = mouseX KR 220 440 Exponential 0.1
>          ; y = mouseY KR 0.01 0.2 Linear 0.1 }
>      in audition (out 0 (bpf n (mce [x, 550 - x]) y)) }