[PD] variable arguments to route

Frank Barknecht fbar at footils.org
Thu Jul 6 22:04:30 CEST 2006


Hallo,
David Merrill hat gesagt: // David Merrill wrote:

> Frank, I'm puzzled.. Your attached version works given the inputs you've 
> set up as an example, but mine doesn't - and I'm not sure what the 
> difference is. I suspect that there is a difference in how the messages 
> emerge from netreceive..  Here is my setup:
> 
> [netreceive 4955 1]
> |
> [route $1-id]
> |                 |
> 
> and everything goes to the rightmost outlet, when strings come in like: 
> 0-id blah blah blah
> ..I even tried putting a [list trim] in as you suggest:
> 
> [netreceive 4955 1]
> |
> [list trim]
> |
> [route $1-id]
> |                 |
> 
> And it all *still* goes to the right.. Is it a subtle message-type-problem?

I remember strange things happen with floats in exponential notation
(1.2e10) being interpreted as symbols by netsend/receive, but trying
to reproduce your phenomenon I only came up with attached patch, which
still hits correctly...

Could you maybe strip down your patch to the core "bug" and attach it? 

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__
-------------- next part --------------
#N canvas 0 0 450 300 10;
#X obj 84 126 route \$1-id;
#X obj 84 101 inlet;
#X obj 84 155 outlet;
#X obj 156 156 outlet;
#X connect 0 0 2 0;
#X connect 0 1 3 0;
#X connect 1 0 0 0;
-------------- next part --------------
#N canvas 0 0 1003 479 10;
#X msg 564 83 list 0-id 123;
#X obj 179 265 print HIT;
#X msg 563 106 list 0-id 123;
#X obj 264 161 list trim;
#X text 164 307 Hint: Move [list trim] into the abstraction directly
in frot of the[route];
#X obj 209 236 print MISS;
#X obj 472 156 list prepend send;
#X obj 472 179 list trim;
#X obj 340 163 print NT;
#X obj 264 118 netreceive 3333 1;
#X obj 472 203 netsend 1;
#X msg 642 153 disconnect \, connect localhost 3333;
#X msg 472 81 0-id 123;
#X obj 179 210 rid 0;
#X text 525 48 all hit now;
#X msg 396 237 1-id misses;
#X connect 0 0 6 0;
#X connect 2 0 6 0;
#X connect 3 0 13 0;
#X connect 6 0 7 0;
#X connect 7 0 10 0;
#X connect 9 0 3 0;
#X connect 9 0 8 0;
#X connect 11 0 10 0;
#X connect 12 0 6 0;
#X connect 13 0 1 0;
#X connect 13 1 5 0;
#X connect 15 0 6 0;


More information about the Pd-list mailing list