Forums > MaxMSP

multiple inputs in filtergraph~

March 20, 2007 | 11:13 am

Hi all,

I’m building a 3band compressor and I want to use filtergraph~ only for display purposes. That means that filtergraph~ will have 3 active filters and depending on the freq adjustments for each band of the compressor, it’ll will be displayed in filtergraph~. By doing this the user will be able to see the bandwidth for each band.
Is there any way to input the 3 different frequency ranges into one filtergraph~ object? Casade doesn’t seem to work in this case.

I hope all these make sense to you. Unfortunately I’m not at home now so I can’t post my patch.

thanks
Mike


March 20, 2007 | 1:29 pm

On 20 Mar 2007, at 12:13, Michael Gounelas wrote:

>
> Hi all,
>
> I’m building a 3band compressor and I want to use filtergraph~ only
> for display purposes. That means that filtergraph~ will have 3
> active filters and depending on the freq adjustments for each band
> of the compressor, it’ll will be displayed in filtergraph~. By
> doing this the user will be able to see the bandwidth for each band.
> Is there any way to input the 3 different frequency ranges into one
> filtergraph~ object? Casade doesn’t seem to work in this case.

not quite sure what you mean. something like this?

#P window setfont "Sans Serif" 9.;
#P flonum 480 42 39 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 440 42 39 9 0. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 399 42 39 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 392 92 94 196617 pak 2 2500. 0.3 1.;
#P flonum 341 41 39 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 301 41 39 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 260 41 39 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 253 91 88 196617 pak 1 500. 0.3 1.;
#P flonum 212 40 39 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 172 40 39 9 0. 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 131 40 39 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 124 90 82 196617 pak 0 88. 0.3 1.;
#P newex 174 140 81 196617 prepend params;
#P window setfont Helvetica 9.;
#P user filtergraph~ 174 162 348 182 21 9 20. 20000. 0.0625 16. 0 1 1
0 0 1 1;
#X frgb 170 170 170;
#X brgb 209 209 209;
#X rgb2 0 0 0;
#X rgb3 130 130 130;
#X rgb4 0 0 0;
#X rgb5 76 108 172;
#X rgb6 210 74 54;
#X rgb7 255 22 22;
#X linmarkers 5512.5 11025. 16537.5;
#X logmarkers 10. 100. 1000. 10000.;
#X nfilters 3;
#X setfilter 2 5 1 0 0 2981. 0.3 1. 0. 0. 0. 0. 0. 0.;
#X setfilter 1 5 1 0 0 425. 0.3 1. 0. 0. 0. 0. 0. 0.;
#X setfilter 0 5 1 0 0 88. 0.49 1. 0. 0. 0. 0. 0. 0.;
#X done;
#P connect 10 0 1 0;
#P connect 11 0 10 1;
#P connect 12 0 10 2;
#P connect 13 0 10 3;
#P connect 2 0 1 0;
#P connect 3 0 2 1;
#P connect 5 0 2 3;
#P connect 4 0 2 2;
#P connect 7 0 6 1;
#P connect 8 0 6 2;
#P connect 9 0 6 3;
#P connect 6 0 1 0;
#P connect 1 0 0 0;
#P window clipboard copycount 14;


March 20, 2007 | 3:54 pm

hi volker and thanks for your help.

Yes, that’s pretty much what i’m trying to do. However, what I really need is to adjust the bandwidth without the need of Q. For example I would like the first band to be from 0 (always) to whatever frequency (defined by the user). The same for the last band (the 3rd). I would like to have the upper limit stuck on 22500Hz and only adjust the lower limit. Finally the middle band should have the lower limit same as the max limit of the 1st band, and the upper limit same as the lower limit of the 3rd band.

thank you again for your interest
Mike


March 20, 2007 | 7:34 pm

On 20 Mar 2007, at 16:54, Michael Gounelas wrote:

>
> hi volker and thanks for your help.
>
> Yes, that’s pretty much what i’m trying to do. However, what I
> really need is to adjust the bandwidth without the need of Q. For
> example I would like the first band to be from 0 (always) to
> whatever frequency (defined by the user). The same for the last
> band (the 3rd). I would like to have the upper limit stuck on
> 22500Hz and only adjust the lower limit. Finally the middle band
> should have the lower limit same as the max limit of the 1st band,
> and the upper limit same as the lower limit of the 3rd band.

don’t think you’ll get this with filtergraph.
what you are doing for your compression is probably 3 filters _in
parallel_.
but filtergraph displays the spectral envelope of some number of
filters _in series_.

i would suggest to make a custom display of your filter bands with
lcd or jsui.

hth
volker.


March 21, 2007 | 9:52 am

oh i see. ok volker. I’ll have a go with lcd and jsui.

thanks,
Mike


March 21, 2007 | 7:40 pm

Michael Gounelas schrieb:
> Yes, that’s pretty much what i’m trying to do. However, what I really
> need is to adjust the bandwidth without the need of Q. For example I
> would like the first band to be from 0 (always) to whatever frequency
> (defined by the user). The same for the last band (the 3rd). I would
> like to have the upper limit stuck on 22500Hz and only adjust the
> lower limit. Finally the middle band should have the lower limit same
> as the max limit of the 1st band, and the upper limit same as the
> lower limit of the 3rd band.

That means you don’t want cascaded filters, you want them in parallel…
Which would not be supported by a single filtergraph…
Just beg for a filtergraph feature for parallel filters for Max 5… ;-)

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


Viewing 6 posts - 1 through 6 (of 6 total)