4-pole Low-Pass Filter

Mark D.'s icon

I've been struggling to understand how to make a four-pole low-pass filter in gen for awhile. I've been looking at all the documentation and tutorials and everything I find seems to be playing the "draw the turtle" game. I can make a one pole filter easy enough, and I tried learning from the "like lores~" gen example but it doesn't work like lores~ does. Its options for resonance is a Q nearing feedback and feedback.

Anyone have some documentation I could use or an example patch with some comments?

mzed's icon

gen~.biquad is pretty clear, although it's an IIR filter. Implementing a four-pole low pass FIR isn't so different. Are you stuck on specifying the filter coefficients, given a desired frequency response?

Mark D.'s icon

I just looked at the biquad example and I must be pretty dumb because it's not very clear to me at all. It certainly seems more advanced than chaining four 1-poles together like I was doing. I'm not sure what an IIR or a FIR is, so I'll look that up.

It uses a codebox inside of a gen~ inside of a gen~ and I tried replicating it all in one gen instance but it doesn't work, so I must be missing a thing or five.

Max Patch
Copy patch and select New From Clipboard in Max.