[PD] [route] weirdness ...

oliver oliver at klingt.org
Tue Sep 13 16:11:15 CEST 2022


Hi, dear list !

After so many years i am still surprised by some idiosyncratic behaviour 
in PD. Or so it seems to me, please correct me if it's me who doesn't 
get things straight ...

It seems to me, that the [route] object can't handle a mix of float and 
symbol arguments correctly. Meaning, it can either route floats OR 
symbols as expected but not both.

Is this behaviour intentional ?

I thought that route can differentiate between selectors (list, float, 
bang etc.) and (if nothing else fits) the first element of any given 
message. But even if i prepend the message by the selector "list", a 
mixture of floats and symbols in a single route object doesn't work as i 
would expect it ...



I think the attached patch explains better than words, what i mean

Please have a look at it and if someone can explain this to me,
please do so !


best

oliver
-------------- next part --------------
#N canvas 350 99 853 728 10;
#X msg 59 83 1 \$1;
#X floatatom 59 63 5 0 0 0 - - - 0;
#X floatatom 102 63 5 0 0 0 - - - 0;
#X floatatom 145 63 5 0 0 0 - - - 0;
#X msg 102 83 2 \$1;
#X msg 145 83 3 \$1;
#X obj 102 112 route 1 2 3, f 19;
#X floatatom 102 133 5 0 0 0 - - - 0;
#X floatatom 139 133 5 0 0 0 - - - 0;
#X floatatom 176 133 5 0 0 0 - - - 0;
#X floatatom 50 171 5 0 0 0 - - - 0;
#X floatatom 103 171 5 0 0 0 - - - 0;
#X floatatom 146 171 5 0 0 0 - - - 0;
#X floatatom 103 241 5 0 0 0 - - - 0;
#X floatatom 140 241 5 0 0 0 - - - 0;
#X floatatom 177 241 5 0 0 0 - - - 0;
#X msg 50 191 bend \$1;
#X msg 103 191 mod \$1;
#X msg 146 191 var \$1;
#X obj 103 220 route bend mod var, f 19;
#X msg 286 92 1 \$1;
#X floatatom 286 72 5 0 0 0 - - - 0;
#X floatatom 329 72 5 0 0 0 - - - 0;
#X floatatom 372 72 5 0 0 0 - - - 0;
#X msg 329 92 2 \$1;
#X msg 372 92 3 \$1;
#X floatatom 329 142 5 0 0 0 - - - 0;
#X floatatom 366 142 5 0 0 0 - - - 0;
#X floatatom 403 142 5 0 0 0 - - - 0;
#X floatatom 412 72 5 0 0 0 - - - 0;
#X floatatom 465 72 5 0 0 0 - - - 0;
#X floatatom 508 72 5 0 0 0 - - - 0;
#X msg 412 92 bend \$1;
#X msg 465 92 mod \$1;
#X msg 508 92 var \$1;
#X obj 329 121 route 1 2 3 bend mod var, f 38;
#X floatatom 439 142 5 0 0 0 - - - 0;
#X floatatom 476 142 5 0 0 0 - - - 0;
#X floatatom 513 142 5 0 0 0 - - - 0;
#X text 101 31 WORKS:;
#X text 381 34 DOESN'T WORK:;
#X msg 317 421 1 \$1;
#X floatatom 317 401 5 0 0 0 - - - 0;
#X floatatom 360 401 5 0 0 0 - - - 0;
#X floatatom 403 401 5 0 0 0 - - - 0;
#X msg 360 421 2 \$1;
#X msg 403 421 3 \$1;
#X floatatom 360 471 5 0 0 0 - - - 0;
#X floatatom 397 471 5 0 0 0 - - - 0;
#X floatatom 434 471 5 0 0 0 - - - 0;
#X floatatom 443 401 5 0 0 0 - - - 0;
#X floatatom 496 401 5 0 0 0 - - - 0;
#X floatatom 539 401 5 0 0 0 - - - 0;
#X msg 443 421 bend \$1;
#X msg 496 421 mod \$1;
#X msg 539 421 var \$1;
#X floatatom 471 503 5 0 0 0 - - - 0;
#X floatatom 508 503 5 0 0 0 - - - 0;
#X floatatom 545 503 5 0 0 0 - - - 0;
#X obj 471 482 route bend mod var, f 19;
#X obj 360 450 route 1 2 3, f 19;
#X text 421 370 WORKAROUND:;
#X msg 306 601 1 \$1;
#X floatatom 306 581 5 0 0 0 - - - 0;
#X floatatom 349 581 5 0 0 0 - - - 0;
#X floatatom 392 581 5 0 0 0 - - - 0;
#X msg 349 601 2 \$1;
#X msg 392 601 3 \$1;
#X floatatom 432 581 5 0 0 0 - - - 0;
#X floatatom 485 581 5 0 0 0 - - - 0;
#X floatatom 528 581 5 0 0 0 - - - 0;
#X msg 432 601 bend \$1;
#X msg 485 601 mod \$1;
#X msg 528 601 var \$1;
#X obj 349 630 route list symbol float, f 38;
#X obj 349 651 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X obj 426 653 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X obj 497 653 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X obj 573 653 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X floatatom 254 322 5 0 0 0 - - - 0;
#X floatatom 291 322 5 0 0 0 - - - 0;
#X floatatom 328 322 5 0 0 0 - - - 0;
#X obj 254 301 route 1 2 3 bend mod var, f 38;
#X floatatom 364 322 5 0 0 0 - - - 0;
#X floatatom 401 322 5 0 0 0 - - - 0;
#X floatatom 438 322 5 0 0 0 - - - 0;
#X obj 254 280 list trim;
#X obj 340 233 list prepend 1;
#X floatatom 340 211 5 0 0 0 - - - 0;
#X floatatom 438 211 5 0 0 0 - - - 0;
#X obj 438 233 list prepend band;
#X text 490 210 SAME HERE;
#X floatatom 508 321 5 0 0 0 - - - 0;
#X floatatom 545 321 5 0 0 0 - - - 0;
#X floatatom 582 321 5 0 0 0 - - - 0;
#X obj 508 300 route 1 2 3 bend mod var, f 38;
#X floatatom 620 321 5 0 0 0 - - - 0;
#X floatatom 657 321 5 0 0 0 - - - 0;
#X floatatom 694 321 5 0 0 0 - - - 0;
#X obj 561 143 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X obj 476 322 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X obj 733 319 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc
#000000 #000000;
#X text 401 554 WHAT IS IT ANYWAY ? ...;
#X text 329 279 <--- doesn't help;
#X connect 0 0 6 0;
#X connect 1 0 0 0;
#X connect 2 0 4 0;
#X connect 3 0 5 0;
#X connect 4 0 6 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 6 1 8 0;
#X connect 6 2 9 0;
#X connect 10 0 16 0;
#X connect 11 0 17 0;
#X connect 12 0 18 0;
#X connect 16 0 19 0;
#X connect 17 0 19 0;
#X connect 18 0 19 0;
#X connect 19 0 13 0;
#X connect 19 1 14 0;
#X connect 19 2 15 0;
#X connect 20 0 35 0;
#X connect 21 0 20 0;
#X connect 22 0 24 0;
#X connect 23 0 25 0;
#X connect 24 0 35 0;
#X connect 25 0 35 0;
#X connect 29 0 32 0;
#X connect 30 0 33 0;
#X connect 31 0 34 0;
#X connect 32 0 35 0;
#X connect 33 0 35 0;
#X connect 34 0 35 0;
#X connect 35 0 26 0;
#X connect 35 1 27 0;
#X connect 35 2 28 0;
#X connect 35 3 36 0;
#X connect 35 4 37 0;
#X connect 35 5 38 0;
#X connect 35 6 99 0;
#X connect 41 0 60 0;
#X connect 42 0 41 0;
#X connect 43 0 45 0;
#X connect 44 0 46 0;
#X connect 45 0 60 0;
#X connect 46 0 60 0;
#X connect 50 0 53 0;
#X connect 51 0 54 0;
#X connect 52 0 55 0;
#X connect 53 0 60 0;
#X connect 54 0 60 0;
#X connect 55 0 60 0;
#X connect 59 0 56 0;
#X connect 59 1 57 0;
#X connect 59 2 58 0;
#X connect 60 0 47 0;
#X connect 60 1 48 0;
#X connect 60 2 49 0;
#X connect 60 3 59 0;
#X connect 62 0 74 0;
#X connect 63 0 62 0;
#X connect 64 0 66 0;
#X connect 65 0 67 0;
#X connect 66 0 74 0;
#X connect 67 0 74 0;
#X connect 68 0 71 0;
#X connect 69 0 72 0;
#X connect 70 0 73 0;
#X connect 71 0 74 0;
#X connect 72 0 74 0;
#X connect 73 0 74 0;
#X connect 74 0 75 0;
#X connect 74 1 76 0;
#X connect 74 2 77 0;
#X connect 74 3 78 0;
#X connect 82 0 79 0;
#X connect 82 1 80 0;
#X connect 82 2 81 0;
#X connect 82 3 83 0;
#X connect 82 4 84 0;
#X connect 82 5 85 0;
#X connect 82 6 100 0;
#X connect 86 0 82 0;
#X connect 87 0 86 0;
#X connect 87 0 95 0;
#X connect 88 0 87 0;
#X connect 89 0 90 0;
#X connect 90 0 86 0;
#X connect 90 0 95 0;
#X connect 95 0 92 0;
#X connect 95 1 93 0;
#X connect 95 2 94 0;
#X connect 95 3 96 0;
#X connect 95 4 97 0;
#X connect 95 5 98 0;
#X connect 95 6 101 0;


More information about the Pd-list mailing list