Forums > MaxMSP

dynamical size for this patch (num + multislider)


FP
February 21, 2008 | 5:09 pm

hi,

i can’t figure out how to do this patch dynamically.
for some reason (linked to my preset patch for individual interpolation), i need to have several clients (pattr) for the multislider.
i found this and it works well.
now, to improve it, i would like have a dynamical version. i tried but i can’t.
any help ?

here’s the poly~ named "MasterFader":

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 229 289 48 196617 pack 0 1;
#P newex 229 309 37 196617 zl rev;
#N out 3;
#P newobj 229 350 33 196617 out 3;
#N out 2;
#P newobj 195 350 33 196617 out 2;
#N out 1;
#P newobj 31 348 33 196617 out 1;
#N in 1;
#P newobj 40 127 25 196617 in 1;
#N in 2;
#P newobj 31 64 25 196617 in 2;
#P newex 283 233 48 196617 loadbang;
#P newex 283 252 52 196617 thispoly~;
#P number 110 209 35 9 0 127 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 146 209 68 196617 range: 0-127;
#N vpatcher 418 326 700 598;
#P toggle 17 194 15 0;
#P window setfont "Sans Serif" 9.;
#P comment 138 31 122 196617 changed and stored value;
#P newex 37 165 49 196617 change 1;
#P newex 122 54 27 196617 t i 0;
#P newex 37 115 95 196617 if $i1 == $i2 then 1;
#P newex 37 193 49 196617 gate 1 1;
#P newex 20 54 27 196617 t i i;
#P newex 12 86 27 196617 + 1;
#P newex 46 86 27 196617 – 1;
#N comlet midi control value;
#P inlet 20 31 15 0;
#N comlet Value Out;
#P outlet 37 213 15 0;
#N comlet stored value;
#P inlet 122 31 15 0;
#P comment 35 31 76 196617 midi ctrl value;
#P comment 52 213 22 196617 out;
#P fasten 7 1 6 0 42 78 17 78;
#P connect 11 0 13 0;
#P connect 4 0 7 0;
#P connect 7 1 9 0;
#P fasten 6 0 9 0 17 108 42 108;
#P fasten 5 0 9 0 51 108 42 108;
#P connect 9 0 11 0;
#P fasten 10 1 11 0 144 138 42 138;
#P connect 11 0 8 0;
#P connect 8 0 3 0;
#P fasten 7 1 5 0 42 78 51 78;
#P fasten 7 0 8 1 25 78 81 78;
#P connect 2 0 10 0;
#P connect 10 0 9 1;
#P pop;
#P newobj 110 169 57 196617 p antijump;
#P newex 110 327 62 196617 prepend set;
#P newex 110 289 48 196617 pack 0 1;
#P newex 110 308 37 196617 zl rev;
#P comment 263 352 34 196617 Value;
#P comment 129 350 73 196617 To Multislider;
#P comment 39 333 56 196617 Reset Fine;
#P comment 34 46 54 196617 Slider Val;
#P newex 31 83 262 196617 t b i i i b;
#P message 31 316 55 196617 set 1 0;
#P newex 110 150 27 196617 +;
#P comment 40 110 26 196617 Fine;
#P connect 15 0 14 0;
#P connect 3 4 15 0;
#P fasten 14 0 9 1 288 279 153 279;
#P fasten 14 0 22 1 288 286 272 286;
#P connect 21 0 20 0;
#P connect 22 0 21 0;
#P connect 13 0 9 0;
#P fasten 13 0 22 0 115 225 234 225;
#P fasten 3 3 22 0 225 225 234 225;
#P fasten 10 0 19 0 115 347 200 347;
#P connect 3 2 11 1;
#P fasten 3 1 1 1 99 140 132 140;
#P connect 8 0 10 0;
#P connect 9 0 8 0;
#P connect 11 0 13 0;
#P connect 1 0 11 0;
#P fasten 17 0 1 0 45 147 115 147;
#P connect 2 0 18 0;
#P connect 3 0 2 0;
#P connect 16 0 3 0;
#P window clipboard copycount 23;

here’s the patch:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 625 243 62 196617 prepend set;
#P newex 625 322 58 196617 unpack 0 1;
#P newex 625 303 37 196617 zl rev;
#P newex 704 172 53 196617 pvar F[8];
#B color 6;
#P objectname P[8];
#P newex 677 153 53 196617 pvar F[7];
#B color 6;
#P objectname P[7];
#P newex 650 134 53 196617 pvar F[6];
#B color 6;
#P objectname P[6];
#P newex 623 115 53 196617 pvar F[5];
#B color 6;
#P objectname P[5];
#P newex 596 96 53 196617 pvar F[4];
#B color 6;
#P objectname P[4];
#P newex 569 77 53 196617 pvar F[3];
#B color 6;
#P objectname P[3];
#P newex 542 58 53 196617 pvar F[2];
#B color 6;
#P objectname P[2];
#P number 197 10 27 9 0 127 8227 3 0 0 0 221 221 221 125 125 125 0 0 0;
#P objectname F[8];
#P number 170 10 27 9 0 127 8227 3 0 0 0 221 221 221 125 125 125 0 0 0;
#P objectname F[7];
#P number 143 10 27 9 0 127 8227 3 0 0 0 221 221 221 125 125 125 0 0 0;
#P objectname F[6];
#P number 116 10 27 9 0 127 8227 3 0 0 0 221 221 221 125 125 125 0 0 0;
#P objectname F[5];
#P number 89 10 27 9 0 127 8227 3 0 0 0 221 221 221 125 125 125 0 0 0;
#P objectname F[4];
#P number 62 10 27 9 0 127 8227 3 0 0 0 221 221 221 125 125 125 0 0 0;
#P objectname F[3];
#P number 35 10 27 9 0 127 8227 3 0 0 0 221 221 221 125 125 125 0 0 0;
#P objectname F[2];
#P number 8 10 27 9 0 127 8227 3 0 0 0 221 221 221 125 125 125 0 0 0;
#P objectname F[1];
#P newex 515 39 53 196617 pvar F[1];
#B color 6;
#P objectname P[1];
#P newex 625 283 61 196617 listfunnel 1;
#P message 404 347 39 196617 set $1;
#P message 417 329 39 196617 set $1;
#P message 391 365 39 196617 set $1;
#P message 378 383 39 196617 set $1;
#P newex 285 283 51 196617 zl ecils 2;
#P message 365 329 39 196617 set $1;
#P message 352 347 39 196617 set $1;
#P message 339 365 39 196617 set $1;
#P message 326 383 39 196617 set $1;
#P newex 326 303 118 196617 route 1 2 3 4 5 6 7 8;
#P newex 515 199 203 196617 pak 0 0 0 0 0 0 0 0;
#P newex 245 7 53 196617 autopattr;
#B color 12;
#X prestore F[1] 1 0 10;
#X prestore F[2] 1 0 25;
#X prestore F[3] 1 0 37;
#X prestore F[4] 1 0 48;
#X prestore F[5] 1 0 67;
#X prestore F[6] 1 0 86;
#X prestore F[7] 1 0 101;
#X prestore F[8] 1 0 116;
#P objectname u336000111;
#P newex 531 246 59 196617 print value;
#P outlet 515 246 15 0;
#P message 705 244 43 196617 size $1;
#P newex 460 369 54 196617 pvar P[x];
#B color 6;
#P message 460 345 39 196617 set $1;
#P newex 460 323 58 196617 unpack 0 1;
#P newex 508 345 115 196617 sprintf setname P[%ld];
#P newex 625 264 95 196617 pvar $1-multipara;
#B color 6;
#P objectname $0-TrLvlPlayM;
#P newex 460 287 37 196617 zl rev;
#N vpatcher 168 590 505 840;
#P window setfont "Sans Serif" 9.;
#P newex 216 108 37 196617 zl rev;
#P newex 216 89 61 196617 listfunnel 1;
#P newex 96 72 93 196617 route masterfader;
#P newex 96 32 48 196617 loadbang;
#B color 4;
#P newex 96 52 64 196617 patcherargs;
#P newex 61 127 27 196617 t i b;
#P message 78 146 47 196617 target 0;
#P number 122 111 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 216 127 58 196617 unpack 0 1;
#P number 13 110 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 13 129 45 196617 open $1;
#P message 122 129 54 196617 voices $1;
#P message 264 146 51 196617 target $1;
#P newex 122 173 104 196617 poly~ MasterFader 1;
#B color 5;
#N comlet from multislider;
#P inlet 216 72 15 0;
#N comlet number of fader(s);
#P inlet 122 91 15 0;
#N comlet master fader;
#P inlet 61 107 15 0;
#N comlet value(s) out;
#P outlet 216 192 15 0;
#N comlet set faders;
#P outlet 169 192 15 0;
#N comlet to master fader;
#P outlet 122 192 15 0;
#P connect 10 0 9 0;
#P connect 3 0 14 0;
#P connect 14 1 13 0;
#P connect 16 0 15 0;
#P connect 15 0 17 0;
#P fasten 17 0 12 0 101 108 127 108;
#P connect 4 0 12 0;
#P connect 12 0 8 0;
#P fasten 7 0 6 0 269 164 127 164;
#P connect 8 0 6 0;
#P fasten 9 0 6 0 18 164 127 164;
#P fasten 13 0 6 0 83 164 127 164;
#P fasten 14 0 6 0 66 164 127 164;
#P connect 6 0 0 0;
#P connect 6 1 1 0;
#P connect 5 0 18 0;
#P connect 18 0 19 0;
#P connect 19 0 11 0;
#P connect 11 0 6 1;
#P connect 6 2 2 0;
#P connect 11 1 7 0;
#P pop;
#P newobj 405 219 120 196617 p masterfader 8;
#B color 5;
#P newex 405 200 85 196617 pvar $1-MFader;
#B color 6;
#P user multiSlider 8 155 217 9 -127. 127. 1 2664 47 0 1 2 0 0 0;
#M frgb 0 0 0;
#M brgb 240 240 240;
#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 $1-MFader;
#P number 705 227 27 9 1 128 8291 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 730 229 69 196617 -> Control(s);
#P user multiSlider 8 25 216 128 0. 127. 8 2665 47 0 1 1 0 30 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 $1-multipara;
#P connect 2 0 12 0;
#P fasten 25 0 16 7 422 408 281 408 281 191 709 191;
#P connect 43 0 16 7;
#P fasten 26 0 16 6 409 408 281 408 281 191 682 191;
#P connect 42 0 16 6;
#P fasten 24 0 16 5 396 408 281 408 281 191 655 191;
#P connect 41 0 16 5;
#P connect 44 0 45 0;
#P connect 27 0 44 0;
#P connect 7 0 27 0;
#P fasten 12 0 7 0 710 262 630 262;
#P fasten 46 0 7 0 630 262 630 262;
#P connect 5 2 13 0;
#P fasten 5 2 46 0 520 241 630 241;
#P fasten 23 0 16 4 383 408 281 408 281 191 628 191;
#P connect 40 0 16 4;
#P fasten 21 0 16 3 370 408 281 408 281 191 601 191;
#P connect 39 0 16 3;
#P fasten 20 0 16 2 357 408 281 408 281 191 574 191;
#P connect 38 0 16 2;
#P fasten 19 0 16 1 344 408 281 408 281 191 547 191;
#P connect 37 0 16 1;
#P connect 16 0 5 2;
#P fasten 18 0 16 0 331 408 281 408 281 191 520 191;
#P connect 28 0 16 0;
#P fasten 45 1 8 0 678 342 513 342;
#P connect 9 1 8 0;
#P fasten 45 0 11 0 630 365 465 365;
#P connect 10 0 11 0;
#P fasten 8 0 11 0 513 365 465 365;
#P connect 9 0 10 0;
#P connect 6 0 9 0;
#P fasten 5 1 22 0 465 279 290 279;
#P connect 5 1 6 0;
#P connect 17 7 25 0;
#P connect 4 0 5 0;
#P fasten 5 0 4 0 410 239 400 239 400 197 410 197;
#P connect 17 6 26 0;
#P connect 17 5 24 0;
#P connect 17 4 23 0;
#P connect 17 3 21 0;
#P connect 17 2 20 0;
#P connect 17 1 19 0;
#P connect 17 0 18 0;
#P connect 22 1 17 0;
#P hidden connect 15 1 3 0;
#P hidden connect 15 1 0 0;
#P window clipboard copycount 47;


Viewing 1 post (of 1 total)