[PD] [route] weirdness ...

IOhannes m zmölnig zmoelnig at iem.at
Tue Sep 13 21:26:51 CEST 2022


On 9/13/22 16:11, oliver wrote:
> 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 ?

both intentional and documented:

 > 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).


> 
> I thought that route can differentiate between selectors (list, float, 
> bang etc.) and (if nothing else fits) the first element of any given 
> message. 

no, that would be weird.

[route foo bar] would then output on the 1st outlet for the messages 
[foo bar( (the message [bar() and [baz foo( (what... an empty 
message/bang?) but [bar foo( would be sent to the 2nd outlet?

gmsd
IOhannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20220913/ad9dc9f7/attachment.sig>


More information about the Pd-list mailing list