Forums > MaxMSP

Print not in the right order

December 16, 2007 | 11:40 pm

I am using coll object to make get a list of values. I see that they are not in the same order as in the message where i give the instruction to send the numbers. So i printed the numbers in the max window to see if maybe it was starting on a different value insyead of the 1st one but apparently the numbers appear rondomly. How can I put them in the right order?


December 16, 2007 | 11:50 pm

please post the problematic part of the patch


December 16, 2007 | 11:59 pm

here you go

max v2;
#N vpatcher 10 59 1680 873;
#P window setfont "Andale Mono" 9.;
#P window linecount 2;
#P message 1026 100 235 465436681 quotes ALEX AMR BNI CHRW CNW CAL CSX EXPD FDX GMT JBHT JBLU LSTR NSC OSG R LUV UNP UPS YCRW;
#P message 1026 69 300 465436681 quotes MMM AA MO AXP AIG T BA CAT C KO DD XOM GE GM HPQ HD HON INTC IBM JNJ JPM MCD MRK MSFT PFE PG UTX VZ WMT DIS;
#P window linecount 1;
#P comment 1277 101 100 465436681 DJ transport;
#P newex 368 289 35 465436681 print;
#P message 362 81 70 465436681 addQuote CMA;
#P message 341 60 75 465436681 addQuote GOOG;
#P window setfont "Sans Serif" 9.;
#P newex 494 347 31 196617 print;
#P message 552 205 61 196617 viewsource;
#P number 738 256 35 9 1 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 738 277 60 196617 interval $1;
#P number 688 257 35 9 1 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 688 278 42 196617 size $1;
#P comment 598 120 175 196617 dump current interval to info outlet;
#P window linecount 2;
#P comment 687 196 135 196617 refresh interval in seconds (be considerate);
#P window linecount 1;
#P comment 699 103 95 196617 remove a symbol;
#P comment 593 84 176 196617 add a single symbol.;
#P hidden newex 456 256 30 196617 t 0 s;
#P hidden newex 448 232 30 196617 t 1 b;
#P newex 450 339 30 196617 spell;
#P newex 205 276 82 196617 route BEGIN END;
#P newex 494 274 62 196617 prepend add;
#P message 631 274 32 196617 clear;
#P hidden newex 463 388 45 196617 loadbang;
#P hidden message 463 419 201 196617 brgb 0 0 0 , frgb 64 255 0 , font Courier 25;
#P newex 572 328 20 196617 t b;
#P newex 572 350 58 196617 onebang;
#P user lcd 7 11 1002 43 1 1 0 0 0;
#P newex 404 361 68 196617 prepend ascii;
#P message 572 377 95 196617 clear , moveto 0 25;
#P hidden toggle 463 280 15 0;
#P newex 531 308 320 196617 mxj StringScroller @loop 2 @charmode 1 @size 1024 @interval 150;
#P message 541 136 52 196617 getquotes;
#P message 530 119 59 196617 getinterval;
#P newex 798 258 31 196617 print;
#P number 690 152 35 9 1 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 690 175 60 196617 interval $1;
#P message 517 102 178 196617 removeQuote AAPL EBAY GTRC INTC;
#P message 489 68 95 196617 quotes T IBM MSFT;
#P message 506 85 78 196617 addQuote AAPL;
#P message 552 153 32 196617 clear;
#P message 464 210 27 196617 stop;
#P button 448 210 15 0;
#P newex 315 221 319 196617 mxj StockWatch @quotes SUNW AAPL INTC GTRC EBAY @interval 30;
#P comment 592 68 176 196617 set the symbols you wish to look up.;
#P comment 585 154 100 196617 remove all quotes;
#P comment 601 136 153 196617 dump current list to info outlet;
#P comment 448 195 100 196617 bang to start;
#P fasten 18 0 20 0 577 392 12 392;
#P hidden fasten 23 0 20 0 468 462 12 462;
#P fasten 19 0 20 0 409 392 12 392;
#P connect 4 0 27 0;
#P hidden connect 29 1 4 0;
#P hidden connect 30 1 4 0;
#P connect 9 0 4 0;
#P fasten 8 0 4 0 511 103 320 103;
#P fasten 10 0 4 0 522 120 320 120;
#P fasten 14 0 4 0 535 138 320 138;
#P fasten 15 0 4 0 546 154 320 154;
#P fasten 7 0 4 0 557 171 320 171;
#P fasten 11 0 4 0 695 196 320 196;
#P fasten 39 0 4 0 557 224 320 224;
#P connect 41 0 4 0;
#P connect 42 0 4 0;
#P connect 45 0 4 0;
#P connect 46 0 4 0;
#P connect 4 0 43 0;
#P connect 28 0 19 0;
#P hidden connect 5 0 29 0;
#P connect 16 0 28 0;
#P hidden connect 6 0 30 0;
#P hidden connect 29 0 17 0;
#P hidden connect 30 0 17 0;
#P hidden connect 24 0 23 0;
#P fasten 27 2 26 0 282 269 499 269;
#P connect 27 2 40 0;
#P connect 26 0 16 0;
#P hidden connect 17 0 16 0;
#P fasten 25 0 16 0 636 295 536 295;
#P fasten 35 0 16 0 693 296 536 296;
#P fasten 37 0 16 0 743 296;
#P fasten 16 0 22 0 536 323 577 323;
#P connect 22 0 21 0;
#P connect 21 0 18 0;
#P fasten 16 1 21 1 691 328 625 328;
#P fasten 27 0 25 0 210 268 636 268;
#P connect 36 0 35 0;
#P connect 12 0 11 0;
#P connect 38 0 37 0;
#P pop;


December 17, 2007 | 12:06 am

At 4:40 PM -0700 12/16/07, Samuel Van Ransbeeck wrote:
>I am using coll object to make get a list of values. I see that they are not in the same order as in the message where i give the instruction to send the numbers. So i printed the numbers in the max window to see if maybe it was starting on a different value insyead of the 1st one but apparently the numbers appear rondomly. How can I put them in the right order?

Post the section of the patch in question.

-C


Chris Muir | "There are many futures and only one status quo.
cbm@well.com | This is why conservatives mostly agree,
http://www.xfade.com | and radicals always argue." – Brian Eno


December 19, 2007 | 4:32 pm

Samuel Van Ransbeeck schrieb:
> here you go

Seems to be an interesting patch, but how is it related to your
question? There is not a single coll in it…

Stefan


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


December 19, 2007 | 4:53 pm

Here you go,i forgot i think, anyway in the print message you would see the same

max v2;
#N vpatcher 10 59 610 459;
#P window setfont "Andale Mono" 9.;
#P window linecount 1;
#P newex 382 315 35 465436681 print;
#P newex 304 350 85 465436681 route BEGIN END;
#N vpatcher 10 59 610 459;
#N comlet route;
#P inlet 300 60 15 0;
#N comlet start scroller;
#P inlet 128 111 15 0;
#N comlet route begin end 3;
#P inlet 153 50 15 0;
#N comlet clear;
#P outlet 248 248 15 0;
#N comlet prepend ascii;
#P outlet 86 243 15 0;
#N comlet color;
#P outlet 202 351 15 0;
#P window setfont "Sans Serif" 9.;
#P hidden newex 200 280 45 196617 loadbang;
#P hidden message 200 311 201 196617 brgb 0 0 0 , frgb 64 255 0 , font Courier 25;
#P number 421 94 35 9 1 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 421 115 60 196617 interval $1;
#P number 371 95 35 9 1 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 371 116 42 196617 size $1;
#P newex 133 177 30 196617 spell;
#P newex 177 112 62 196617 prepend add;
#P message 314 112 32 196617 clear;
#P newex 255 166 20 196617 t b;
#P newex 255 188 58 196617 onebang;
#P newex 87 199 68 196617 prepend ascii;
#P message 255 215 95 196617 clear , moveto 0 25;
#P newex 214 146 320 196617 mxj StringScroller @loop 2 @charmode 1 @size 1024 @interval 150;
#P window setfont "Andale Mono" 9.;
#P comment 110 244 100 465436681 prepend;
#P comment 266 249 100 465436681 clear;
#P connect 4 0 17 0;
#P connect 9 0 4 0;
#P connect 2 0 9 0;
#P connect 19 0 8 0;
#P hidden connect 15 0 14 0;
#P connect 14 0 16 0;
#P fasten 12 0 2 0 426 134;
#P fasten 10 0 2 0 376 134 219 134;
#P fasten 7 0 2 0 319 133 219 133;
#P connect 8 0 2 0;
#P connect 20 0 2 0;
#P connect 3 0 18 0;
#P fasten 2 0 6 0 219 161 260 161;
#P connect 6 0 5 0;
#P connect 5 0 3 0;
#P fasten 2 1 5 1 374 166 308 166;
#P connect 21 0 7 0;
#P connect 11 0 10 0;
#P connect 13 0 12 0;
#P pop;
#P newobj 709 416 50 465436681 p screen;
#N vpatcher 150 62 750 462;
#P outlet 238 135 15 0;
#P outlet 21 106 15 0;
#P inlet 60 33 15 0;
#P window setfont "Andale Mono" 9.;
#P window linecount 1;
#P newex 284 63 35 465436681 float;
#P newex 75 118 35 465436681 * 0.5;
#P number 75 138 35 9 0 0 0 7102 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 60 64 185 465436681 if $f1 > 127 then $f1 else out2 $f1;
#P window linecount 3;
#P comment 318 60 100 465436681 makes the values fal between midi limits;
#P connect 1 0 6 0;
#P connect 5 0 1 0;
#P connect 4 0 1 0;
#P connect 1 0 3 0;
#P connect 3 0 2 0;
#P connect 1 1 7 0;
#P connect 2 0 4 0;
#P pop;
#P newobj 149 496 80 465436681 p make smaller;
#P window linecount 3;
#P comment 239 495 100 465436681 makes the values fal between midi limits;
#P window linecount 4;
#P message 304 163 345 465436681 quotes MMM AES AA ALEX MO AEP AIG AXP AMR T BA BNI CAT CNP CHRW C CNW KO ED CAL CSX D DUK EIX DD EXC EXPD XOM FDX FE GMT GE GM HPQ HD HON INTC IBM JBHT JBLU JPM JNJ LSTR MCD MRK MFT NI NSC OSG PFE PCG PG PEG R SO LUV TXU UNP UPS UTX VZ WMT DIS WMB YRCW;
#P window linecount 2;
#P message 304 136 235 465436681 quotes ALEX AMR BNI CHRW CNW CAL CSX EXPD FDX GMT JBHT JBLU LSTR NSC OSG R LUV UNP UPS YCRW;
#P message 304 109 300 465436681 quotes MMM AA MO AXP AIG T BA CAT C KO DD XOM GE GM HPQ HD HON INTC IBM JNJ JPM MCD MRK MSFT PFE PG UTX VZ WMT DIS;
#P window linecount 1;
#P comment 610 110 100 465436681 DJ industrial (30);
#P comment 555 141 100 465436681 DJ transport (20);
#P window setfont "Sans Serif" 9.;
#P message 395 463 84 196617 -1.27;
#P newex 395 444 61 196617 prepend set;
#P window setfont "Andale Mono" 9.;
#P newex 395 425 50 465436681 zl nth 5;
#N coll quotes;
#P newobj 40 606 65 465436681 coll quotes;
#P newex 40 555 55 465436681 pack 0 0.;
#N counter 0 1 65;
#X flags 0 0;
#P newobj 40 517 80 465436681 counter 0 1 65;
#P newex 40 499 35 465436681 t b f;
#P newex 218 443 60 465436681 fromsymbol;
#P window setfont "Andale Mono" 10.;
#P flonum 218 461 66 10 0 0 0 7102 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Sans Serif" 9.;
#P message 298 462 85 196617 12/17/2007;
#P newex 298 443 61 196617 prepend set;
#P window setfont "Andale Mono" 9.;
#P newex 298 425 50 465436681 zl nth 3;
#P newex 218 425 50 465436681 zl nth 2;
#P window setfont "Sans Serif" 9.;
#P message 516 254 61 196617 viewsource;
#P window linecount 2;
#P comment 737 219 135 196617 refresh interval in seconds (be considerate);
#P window linecount 1;
#P newex 221 273 30 196617 t 0 s;
#P newex 213 249 30 196617 t 1 b;
#P user lcd 9 35 1002 43 1 1 0 0 0;
#P toggle 228 297 15 0;
#P number 671 212 35 9 1 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 671 229 60 196617 interval $1;
#P message 439 217 32 196617 clear;
#P message 210 205 27 196617 stop;
#P button 194 205 15 0;
#P newex 296 275 319 196617 mxj StockWatch @quotes SUNW AAPL INTC GTRC EBAY @interval 30;
#P window setfont "Gill Sans" 14.;
#P window linecount 2;
#P comment 663 125 176 278003726 set the symbols you wish to look up.;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 472 218 100 196617 remove all quotes;
#P comment 194 190 100 196617 bang to start;
#P window setfont "Andale Mono" 9.;
#P window linecount 2;
#P comment 654 166 100 465436681 Dow Jones Composite Average (65);
#P connect 36 2 11 0;
#P connect 36 1 11 0;
#P connect 36 0 11 0;
#P connect 20 0 22 0;
#P connect 22 0 23 0;
#P connect 23 0 24 0;
#P connect 7 0 25 0;
#P connect 24 0 25 0;
#P connect 35 1 24 1;
#P connect 20 0 35 0;
#P connect 5 0 12 0;
#P connect 37 2 16 0;
#P connect 16 0 21 0;
#P connect 21 0 20 0;
#P connect 6 0 13 0;
#P connect 12 0 10 0;
#P hidden connect 13 0 10 0;
#P connect 7 0 4 0;
#P hidden connect 12 1 4 0;
#P hidden connect 13 1 4 0;
#P fasten 8 0 4 0 676 250 301 250;
#P connect 31 0 4 0;
#P connect 32 0 4 0;
#P connect 33 0 4 0;
#P connect 15 0 4 0;
#P connect 37 2 17 0;
#P connect 17 0 18 0;
#P connect 18 0 19 0;
#P connect 4 0 37 0;
#P connect 4 0 38 0;
#P connect 37 2 26 0;
#P connect 26 0 27 0;
#P connect 27 0 28 0;
#P connect 9 0 8 0;
#P connect 10 0 36 0;
#P connect 37 2 36 1;
#P connect 37 0 36 2;
#P pop;


December 20, 2007 | 6:14 pm

Samuel Van Ransbeeck schrieb:
> Here you go,i forgot i think, anyway in the print message you would see the same

The print message shows something different than the coll, but anyway,
still don’t know what its about and what you want it to look like instead…

Did you look into the sort messages to coll?

Stefan


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


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