Forums > MaxMSP

Line/interpol problems

December 10, 2006 | 9:28 pm

Hi I am a newbie,so bare with me on this.
I am trying to get this work, but it only interpolates the values if any of the object are initialized every time
i.e writing the last letter in any object again.. hope someone can help me with this, im desperate!

#P window setfont "Sans Serif" 9.;
#P window linecount 2;
#P message 111 261 180 196617 ; sine-volums 0.4 0.4 0.2 0.5 4000 ;;
#P window linecount 1;
#P newex 301 67 51 196617 r sinuser;
#B color 1;
#P user multiSlider 186 125 79 66 0. 1. 4 2681 32 0 2 2 0 60 0;
#M frgb 102 120 130;
#M brgb 169 195 211;
#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 sine-volums;
#P newex 369 26 73 196617 r sine-volums;
#B color 1;
#P newex 392 316 51 196617 s sinuser;
#B color 1;
#P newex 487 143 49 196617 pak 0. 0.;
#P newex 433 145 49 196617 pak 0. 0.;
#P newex 383 145 49 196617 pak 0. 0.;
#P newex 325 146 49 196617 pak 0. 0.;
#P newex 534 207 40 196617 line 0.;
#P newex 476 207 40 196617 line 0.;
#P newex 419 207 40 196617 line 0.;
#P newex 403 255 78 196617 pack 0. 0. 0. 0.;
#P newex 362 206 40 196617 line 0.;
#P newex 367 83 100 196617 unpack 0. 0. 0. 0. 0.;
#P connect 0 4 6 1;
#P connect 0 4 7 1;
#P connect 0 4 8 1;
#P connect 0 4 9 1;
#P connect 13 0 12 0;
#P connect 3 0 2 1;
#P connect 7 0 3 0;
#P connect 1 0 2 0;
#P connect 6 0 1 0;
#P connect 9 0 5 0;
#P connect 0 3 9 0;
#P connect 8 0 4 0;
#P connect 0 2 8 0;
#P connect 0 1 7 0;
#P connect 0 0 6 0;
#P connect 2 0 10 0;
#P connect 11 0 0 0;
#P connect 5 0 2 3;
#P connect 4 0 2 2;
#P window clipboard copycount 15;


December 11, 2006 | 1:29 am

Quote: Gradient wrote on Sun, 10 December 2006 13:28
—————————————————-
> Hi I am a newbie,so bare with me on this.
> I am trying to get this work, but it only interpolates the values if any of the object are initialized every time
> i.e writing the last letter in any object again.. hope someone can help me with this, im desperate!
>

you have to create a list with te values you wish to use and send that list.

here are two ways of doing that :
1- using [sprintf] in order to directly use the max ( ; ) message as you did already.
2- create a list using [zl join] or [pack] and send it …
here is a patch. although i am not entirely clear if that is what you are looking for…..
good luck.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 696 343 51 196617 method 2;
#P newex 716 452 20 196617 t b;
#P button 930 374 36 0;
#P window linecount 2;
#P message 737 503 137 196617 0.590909 0.575758 0.272727 0.575758 2727;
#P window linecount 1;
#P newex 737 474 62 196617 prepend set;
#P user multiSlider 824 374 18 66 0. 5000. 1 2665 32 0 2 2 0 60 0;
#M frgb 111 87 100;
#M brgb 184 147 200;
#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 sine-volums[3];
#P newex 737 451 38 196617 zl join;
#P user multiSlider 737 373 79 66 0. 1. 4 2681 32 0 2 2 0 60 0;
#M frgb 102 120 130;
#M brgb 169 195 211;
#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 sine-volums[4];
#P newex 737 541 73 196617 s sine-volums;
#B color 1;
#P comment 737 357 38 196617 values;
#P comment 825 355 79 196617 time for [line];
#P comment 926 358 100 196617 bang;
#P newex 41 332 20 196617 t b;
#P button 279 283 35 0;
#P number 221 292 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 180 292 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 142 292 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 103 292 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 63 292 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 3;
#P message 63 407 156 196617 ; sine-volums 0.35 0.33 0.54 0.4 372 ;;
#P window linecount 1;
#P newex 63 378 62 196617 prepend set;
#P window linecount 3;
#P newex 63 332 159 196617 sprintf \; sine-volums %f %f %f %f %ld\;;
#P window linecount 1;
#P newex 193 103 51 196617 r sinuser;
#B color 1;
#P user multiSlider 193 132 79 66 0. 1. 4 2681 32 0 2 2 0 60 0;
#M frgb 102 120 130;
#M brgb 169 195 211;
#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 sine-volums;
#P newex 429 59 73 196617 r sine-volums;
#B color 1;
#P newex 453 407 51 196617 s sinuser;
#B color 1;
#P newex 548 234 49 196617 pak 0. 0.;
#P newex 494 236 49 196617 pak 0. 0.;
#P newex 444 236 49 196617 pak 0. 0.;
#P newex 386 237 49 196617 pak 0. 0.;
#P newex 595 298 40 196617 line 0.;
#P newex 537 298 40 196617 line 0.;
#P newex 480 298 40 196617 line 0.;
#P newex 464 346 78 196617 pack 0. 0. 0. 0.;
#P newex 433 299 40 196617 line 0.;
#P newex 428 174 100 196617 unpack 0. 0. 0. 0. 0.;
#P comment 61 272 154 196617 choose your values and bang;
#P comment 30 256 100 196617 method 1;
#P connect 2 4 8 1;
#P connect 2 4 9 1;
#P connect 2 4 10 1;
#P connect 2 4 11 1;
#P connect 34 0 29 0;
#P fasten 32 0 36 0 829 447 721 447;
#P fasten 32 0 31 1 829 448 770 448;
#P connect 30 0 31 0;
#P connect 33 0 34 0;
#P connect 31 0 33 0;
#P fasten 35 0 34 0 935 479 814 479 814 495 742 495;
#P connect 36 0 31 0;
#P connect 23 0 25 0;
#P connect 23 0 16 4;
#P connect 22 0 25 0;
#P connect 22 0 16 3;
#P connect 21 0 25 0;
#P connect 21 0 16 2;
#P connect 20 0 25 0;
#P connect 20 0 16 1;
#P connect 25 0 16 0;
#P fasten 24 0 18 0 284 399 68 399;
#P connect 19 0 16 0;
#P connect 16 0 17 0;
#P connect 17 0 18 0;
#P connect 6 0 4 2;
#P connect 7 0 4 3;
#P connect 13 0 2 0;
#P connect 4 0 12 0;
#P connect 2 0 8 0;
#P connect 2 1 9 0;
#P connect 2 2 10 0;
#P connect 10 0 6 0;
#P connect 2 3 11 0;
#P connect 11 0 7 0;
#P connect 8 0 3 0;
#P connect 3 0 4 0;
#P connect 9 0 5 0;
#P connect 5 0 4 1;
#P connect 15 0 14 0;
#P window clipboard copycount 38;


December 11, 2006 | 4:32 am

THank you!
I got it now


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