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

Matteo Sisti Sette matteosistisette at gmail.com
Sat May 21 19:58:40 CEST 2011


Suppose that in an OSC tree I have a node called "foo" (child of the / 
root node) which has a few child nodes.

So I place a [routeOSC /foo] object to get all messages that are 
addressed to /foo or to its child nodes.

This will catch all of the following messages:

/foo 123
/foo/bar 123
/foo/etc 123

Now, how can I discriminate messages like the first one from messages 
like the others? I.e., messages directed to the /foo node and not to any 

I don't think I can accomplish this with [routeOSC], or can I?

Indeed I think that [routeOSC /] should match any message that doesn't 
start with an address, or alternatively, matching messages output by the 
first outlet of a [routeOSC /something] should start with "/ " if the 
pattern address matches the whole input address. However I understand 
this would break existing patches.

Or is there another way to discriminate the above?


More information about the Pd-list mailing list