[PD] Finding "$0" and dealing with it in messages

Jonathan Wilkes jancsika at yahoo.com
Mon Nov 16 20:43:34 CET 2009



--- On Mon, 11/16/09, Mathieu Bouchard <matju at artengine.ca> wrote:

> From: Mathieu Bouchard <matju at artengine.ca>
> Subject: Re: [PD] Finding "$0" and dealing with it in messages
> To: "Jonathan Wilkes" <jancsika at yahoo.com>
> Cc: "Roman Haefeli" <reduzierer at yahoo.de>, "Phil Stone" <pkstone at ucdavis.edu>, pd-list at iem.at
> Date: Monday, November 16, 2009, 8:23 PM
> On Mon, 16 Nov 2009, Jonathan Wilkes
> wrote:
> 
> > You can already use [symbol] to get the selector of an
> incoming message.
> 
> It doesn't work for those selectors:
> 
>   bang
>   symbol
>   list

Why do you say it doesn't work for list?

> 
> To handle these cases, you need to also have [route bang
> symbol list], three messageboxes that say «symbol bang»
> «symbol symbol» and «symbol list», and three [b] to
> protect those messageboxes from whatever comes out of
> [route]. then the else-case of [route] goes to [symbol].

As far as I can tell you just need [route bang symbol], two message 
boxes, and a [symbol] object.  There's no need to protect the message 
boxes because whatever is coming out of inlet 0 and 1 of [route] is either 
a bang or a symbol, both of which will trigger the msg box's output 
without changing its content.

-Jonathan

> 
>  _ _ __ ___ _____ ________ _____________
> _____________________ ...
> | Mathieu Bouchard, Montréal, Québec. téléphone:
> +1.514.383.3801


      




More information about the Pd-list mailing list