[PD] routeOSC: how to distinguish messages addressed to a node from messages addressed to any descendant

cyrille henry ch at chnry.net
Sat May 21 22:39:26 CEST 2011


what about [routeOSC /foo/* /foo]  ?

Le 21/05/2011 21:40, Matteo Sisti Sette a écrit :
> On 05/21/2011 08:46 PM, Martin Peach wrote:
>
>> Try
>> [routeOSC /foo]
>> |
>> [routeOSC /*]
>>
>
> Hi,
>
> I didn't know about the wildcard.
>
> However, this still can't handle messages other than mere floats addressed to /foo.
>
> For example:
>
> /foo 1 2 3
>
> You get only "1" out of the right outlet of your second routeOSC.
>
> Also, messages like this:
>
> /foo somesymbol 1 2 3
>
> (which btw are valid osc messages, or aren't they? this is dubt, not sarchasm)
>
> although they produce the desired output ("somesymbol 1 2 3") from the right outlet of your second routeOSC, will cause an error to be printed to the console:
>
> error: * routeOSC: invalid message pattern somesymbol does not begin with /
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>



More information about the Pd-list mailing list