Second order filter design in max msp.

Vak Ath's icon

Hi, I'm currently working on creating a representation of an opamp gain circuit with built in lowpass filter.
I have a transfer function in continuous time for the actual circuit H(s):

H(s) = s^2 + g * s + v
_____s^2 + k * s + v

where g, k, v are variables I have declared.
I'm wondering if there is a way to represent this in max/msp.
I have looked at the biquad however it only has 5 inputs while I require 6.
I am also interested in the biquad standard naming for coefficients.
I am using the standard:

H(s) = b2s^2 + b1s + b0
_____a2s^2 + a1s + a0
However there is no b0 input for the biquad device so I'm wondering if this is the correct thing to use.

Any advice would be great.
I'm a complete beginner to max/msp so let me know if this is even possible.
I have created the circuit in MATLAB using these coefficients and it works as intended.
If you require any further info let me know as I'm not sure I have given all the relevant info.

Thanks,

JP

Vak Ath's icon

I have found an alternative way.
If anyone wants to answer this feel free.
I have simply obtained the cutoff frequency using matlab and then used it in the gain filter