Forums > MaxMSP

filtergraph~ question

April 2, 2006 | 1:17 am

HI:
I’m trying to achieve a filter control where I can edit parameters directly from filtergraph~ while keeping this parameters available from floats controls that also have control over params.
The point is avoid jumping when changing from one adjusting way to the other but skeeping overflow sending filtergraph~ params back to floats.
You got me.?

many many thx!!!

thomas

example follows:

max v2;
#N vpatcher 1039 30 1760 698;
#P window setfont "Sans Serif" 9.;
#P comment 517 220 100 9109513 it’s something like one way updates the other.;
#P comment 371 255 100 9109513 or using filtergraph~;
#P newex 325 369 68 9109513 pack b 1. 1. 1.;
#P flonum 384 136 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 338 137 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 291 138 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 296 338 15 0;
#P newex 312 78 70 9109513 unpack 1. 1. 1.;
#P user filtergraph~ 246 229 115 57 139 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 1;
#X setfilter 0 4 1 0 0 597. 4. 400. 0. 0. 0. 0. 0. 0.;
#X done;
#P user umenu 186 98 70 9109543 1 64 114 0;
#X add display;
#X add lowpass;
#X add highpass;
#X add bandpass;
#X add bandstop;
#X add peaknotch;
#X add lowshelf;
#X add highshelf;
#X add resonant;
#X add allpass;
#P comment 434 137 100 9109513 adjust using flots;
#P connect 1 1 2 0;
#P connect 3 0 5 0;
#P fasten 8 0 3 0 330 432 480 432 480 47 317 47;
#P connect 5 0 2 5;
#P connect 4 0 8 0;
#P connect 6 0 2 6;
#P connect 3 1 6 0;
#P connect 2 1 8 1;
#P connect 7 0 2 7;
#P connect 2 2 8 2;
#P connect 2 3 8 3;
#P connect 3 2 7 0;
#P pop;



jln
April 2, 2006 | 10:21 am

hi,

something like this ?

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 263 356 39 196617 set $1;
#P message 280 320 39 196617 set $1;
#P message 297 293 39 196617 set $1;
#P window linecount 3;
#P comment 517 220 100 196617 it’s something like one way updates the
other.;
#P window linecount 1;
#P comment 371 255 100 196617 or using filtergraph~;
#P flonum 385 169 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 339 170 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 292 171 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user filtergraph~ 246 229 115 57 3 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 1;
#X setfilter 0 2 1 0 0 197. 1.22 2.52 0. 0. 0. 0. 0. 0.;
#X done;
#P user umenu 186 98 70 196647 1 64 114 0;
#X add display;
#X add lowpass;
#X add highpass;
#X add bandpass;
#X add bandstop;
#X add peaknotch;
#X add lowshelf;
#X add highshelf;
#X add resonant;
#X add allpass;
#P comment 434 137 100 196617 adjust using flots;
#P fasten 8 0 5 0 302 314 453 314 453 163 390 163;
#P connect 2 3 8 0;
#P fasten 9 0 4 0 285 346 463 346 463 158 344 158;
#P connect 2 2 9 0;
#P fasten 10 0 3 0 268 379 483 379 483 152 297 152;
#P connect 2 1 10 0;
#P connect 5 0 2 7;
#P connect 4 0 2 6;
#P connect 3 0 2 5;
#P connect 1 1 2 0;
#P window clipboard copycount 11;

hth,

Julien.


April 2, 2006 | 6:46 pm

ummm…
I can’t open it.
it opens like text.
Something missing?
thx U very much.

th.



jln
April 2, 2006 | 7:07 pm

Which Max version do you have ? Last one ? I don’t remember when this
feature has been introduced, but "New from Clipboard" should work. At
least, it works here.

In case you have an old Max version, here is the patch saved as text :

max v2;
#N vpatcher 100 100 700 500;
#P window setfont "Sans Serif" 9.;
#P message 263 356 39 196617 set $1;
#P message 280 320 39 196617 set $1;
#P message 297 293 39 196617 set $1;
#P window linecount 3;
#P comment 517 220 100 196617 it’s something like one way updates the
other.;
#P window linecount 1;
#P comment 371 255 100 196617 or using filtergraph~;
#P flonum 385 169 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 339 170 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 292 171 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user filtergraph~ 246 229 115 57 3 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 1;
#X setfilter 0 2 1 0 0 197. 1.22 2.52 0. 0. 0. 0. 0. 0.;
#X done;
#P user umenu 186 98 70 196647 1 64 114 0;
#X add display;
#X add lowpass;
#X add highpass;
#X add bandpass;
#X add bandstop;
#X add peaknotch;
#X add lowshelf;
#X add highshelf;
#X add resonant;
#X add allpass;
#P comment 434 137 100 196617 adjust using flots;
#P connect 1 1 2 0;
#P connect 2 1 10 0;
#P connect 2 2 9 0;
#P fasten 10 0 3 0 268 379 483 379 483 152 297 152;
#P connect 2 3 8 0;
#P connect 3 0 2 5;
#P connect 4 0 2 6;
#P fasten 9 0 4 0 285 346 463 346 463 158 344 158;
#P connect 5 0 2 7;
#P fasten 8 0 5 0 302 314 453 314 453 163 390 163;
#P pop;

Tell me if it works fine.
Julien.


April 2, 2006 | 8:57 pm

THX!
I’ve got no "new from clipboard"
I’ll chek it out.

th


April 2, 2006 | 9:02 pm

Oh !!
what a dumb…
I feel ashame.
just "set"…
I’m on those kind of weeks when the tree doesn’t let you to see the forest.!!!
I think I should watch some movie, read some book and stop boiling my brains with this. but… :))
ThkU very much..

th


April 2, 2006 | 9:51 pm

Quote: thomas_omaley wrote on Sat, 01 April 2006 18:17
—————————————————-
> HI:
> I’m trying to achieve a filter control where I can edit parameters directly from filtergraph~ while keeping this parameters available from floats controls that also have control over params.
> The point is avoid jumping when changing from one adjusting way to the other but skeeping overflow sending filtergraph~ params back to floats.
> You got me.?

(havent looked at the patch)

sounds simple … connect both control obejcts to
the filter, and let them (set $1) each other in addition


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