Filtergraph~ problems

woyteg's icon

Hi.
This is something i stumbled upon many times, never reqally cared but maybe one of you has an answer.
I'd like to setup filtergraph to have, say, 3 filters(for cascade~). One lowpass, one highpass and one peaknotch.
How to do this using a message? I can do that using the inspector and it seems that using a message like the following should do it:nfilters 3, edit_filter 0, mode 2, edit_filter 1, mode 5, edit_filter 2, mode 1
But it doesn't work! Any ideas?
Cheers!

SID's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Here is how I would do it. However, it doesn't use message boxes exclusively. If you loadbang the message going to 'Preset', your patch should open with the above filter arrangement.

woyteg's icon

Well yes, because the filtergraphs state is saved in the preset object, my dear.
:)
Thanks anyway!
Anybody else? pretty please! This really should be possible..and I really don't get it. Nobody setting up EQs dynamically?

woyteg's icon

please, there must be something I'm overlooking..I really tried

joeman's icon

Hi Woyteg,

Works for me..

Try SID's suggestions but using a message box.

{nfilters 3, mode 0 2, mode 1 5, mode 2 1}

Joe

joeman's icon

Woyteg, the syntax you used results in a lowpass and two peaknotch filters (instead of the highpass). Don't know why..

woyteg's icon

thanks!! I guess it was too late already back then..(as it's now)

Woyteg, the syntax you used results in a lowpass and two peaknotch filters (instead of the highpass). Don’t know why..

yes because I assumed i should choose the filter to edit via 'edit filter' then set the mode. But mode with only one integer argument results in configuring the first filter..that's what i didn't get. I think I tried two ints but it didn't work(i messed up i guess).
thanks both of you!