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