Forums > MaxMSP

presetbox and loadbang in every subpatch to init?

October 20, 2007 | 12:04 pm

Helu

Do i need a presetbox and loadbang in every subpatch for my patches
to load with desired values?

Whats the best way to solve this?

Thanks


October 21, 2007 | 6:36 pm

pattrstorage ;)

and the rest of the pattr family ;)


October 22, 2007 | 3:48 pm

Thank you!

Can i just drop an autopattr in my patch?

(my brain is slow today)


October 23, 2007 | 12:13 pm

yes,- but then you must name all objects you want it to remember…

or give the autopattr an "@autoname 1" attribute…

I think naming your objects manually is the most safe way…

Like this ;)

#P window setfont "Sans Serif" 9.;
#P number 237 315 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number[7];
#P number 223 297 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number[6];
#P number 209 279 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number[5];
#P number 195 261 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number[4];
#P number 181 243 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number[3];
#P number 167 225 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number[2];
#P number 153 207 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number[1];
#P number 139 189 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number;
#P window linecount 1;
#P newex 104 166 114 196617 autopattr @autoname 1;
#X prestore number 1 0 0;
#X prestore number[1] 1 0 0;
#X prestore number[2] 1 0 0;
#X prestore number[3] 1 0 0;
#X prestore number[4] 1 0 0;
#X prestore number[5] 1 0 0;
#X prestore number[6] 1 0 0;
#X prestore number[7] 1 0 0;
#P objectname u881000004;
#P window clipboard copycount 9;


November 2, 2007 | 11:33 am

Thanks alot ,spliff

but i dont understand your patch…

If you (or anyone) could also explain the pattrstorage module i will be very happy!! (superhappy)

Im going to use it in an additive synthesis patch for "morphing" between loads of cycle~ pitch and amplitube values.

Have a nice weekend!!


November 3, 2007 | 4:29 pm

Hi Petter

Here is a small interpolation demo… I cannot explain better than the helpfile does,- i find it to be very informative…

#P user uslider 461 147 19 95 128 1 0 0;
#P objectname uslider[1];
#P user uslider 440 147 19 95 128 1 0 0;
#P objectname uslider;
#P user multiSlider 248 148 190 110 -1. 1. 32 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P objectname multiSlider[1];
#P user multiSlider 293 78 71 15 1. 2. 1 2680 47 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 366 78 43 196617 store 2;
#P message 248 78 43 196617 store 1;
#P newex 248 105 67 196617 pattrstorage;
#X client_rect 14 59 654 299;
#X storage_rect 0 0 640 240;
#P objectname u716000007;
#P newex 248 125 67 196617 autopattr;
#X prestore multiSlider[1] 32 0 -0.407407 -1. -1. -0.990741 -0.981481 -0.87037 -0.288782 -0.297638 -0.349436 -0.540794 -0.604402 -0.665996 -0.673913 -0.627214 -0.564949 -0.526033 -0.487118 -0.420021 -0.391841 -0.363661 -0.327697 -0.280998 -0.249866 0.318035 0.438003 0.944444 0.777778 0.703704 0.518519 0.296296 0.055556 -1.;
#X prestore uslider 1 0 96;
#X prestore uslider[1] 1 0 127;
#P objectname u620000008;
#P comment 301 64 58 196617 Interpolate;
#P connect 3 0 2 0;
#P fasten 5 0 2 0 298 97 253 97;
#P fasten 4 0 2 0 371 99 253 99;
#P window clipboard copycount 9;


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