Hey all -- I haven't been on the list for terribly long yet, so
apologies if we already know about this one... there seems to be a
bug with [route bang] ... reproducible with the following patch.
I'm using Pd-0.38-3 on Mac OS X 10.4.1. Incoming bangs just
disappear if there is a number argument before the bang argument. I
get no output on the left side of the patch and the expected "d:
bang" on the right side.
Where should I look for already-submitted bugs in the future?
Cheers, Zac
#N canvas 0 22 310 133 10; #X obj 14 10 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 14 80 print a; #X obj 53 62 print b; #X obj 93 44 print c; #X obj 157 80 print d; #X obj 196 62 print e; #X obj 236 44 print f; #X obj 157 10 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 157 26 route bang 5; #X obj 14 26 route 5 bang; #X connect 0 0 9 0; #X connect 7 0 8 0; #X connect 8 0 4 0; #X connect 8 1 5 0; #X connect 8 2 6 0; #X connect 9 0 1 0; #X connect 9 1 2 0; #X connect 9 2 3 0;
Hallo!
Where should I look for already-submitted bugs in the future?
http://sourceforge.net/tracker/?atid=478070&group_id=55736&func=brow...
LG Georg
Zachary Crockett wrote:
Hey all -- I haven't been on the list for terribly long yet, so apologies if we already know about this one... there seems to be a bug with [route bang] ... reproducible with the following patch. I'm using Pd-0.38-3 on Mac OS X 10.4.1. Incoming bangs just disappear if there is a number argument before the bang argument. I get no output on the left side of the patch and the expected "d: bang" on the right side.
hmm, while you discovered clearly a bug, your patch is buggy too.
quoting the pd documentation of [route]: "Route checks the first element of a message against each of its arguments, which may be numbers or symbols (but not a mixture of the two.)"
this means that both [route 5 bang] and [route bang 5] are illegal!
however, i believe that pd should complain about illegal creation arguments for route and it must not swallow the bang in the [route 5 bang] example, but rather send it to the reject outlet.
i have attached a patch (against pd-0.38-4) that will give refuse to create [route] with illegal arguments and that rejects "bang" (zero-lengthed lists) when in float-mode.
mfg.a.sdr IOhannes
IOhannes m zmoelnig wrote:
i have attached a patch (against pd-0.38-4) that will give refuse to create [route] with illegal arguments and that rejects "bang" (zero-lengthed lists) when in float-mode.
i have cleaned up the patch and split it into 2 separate patches, one for fixing the bang-bug, the other for rejecting mixed arguments.
use these patches rather than the last one i sent.
mfg.a.sdr IOhannes