[PD] setting Messages

HENRY Damien damien_henry at libertysurf.fr
Thu Jul 19 05:31:14 CEST 2001


Thanks a lots.
Sorry if that discution has been here before.
I have study a litle your answer cos the diference between list, message and 
symbols was not so clear in my head...

your solution :

> =--------------
>
> |set $1 $2 $3 (
>
> =--------------
>
> =--
>
> | (
>
> =--
work well when you know the exact number of "atoms" in the mesage.

if you send "a b" you will have "a b 0"
and more strange if you send "l a b c" you'll have "a b c"
if the first symbol of the message is l or f (i guess for list and float ?)

this one :
>
> =---------------------
>
> |1 2 3 this is a list(
>
> =---------------------
>
> =---------------
>
> |t b l         |
>
> =--------------=
>
> =----------=   |
>
> |symbol set|   |
>
> =-----------   |
>
> =--------------=
>
> |glue          |
>
> =---------------
>
> =-----------
>
> |route list|
>
> =----------=
>
> =---
>
> |  (
>
> =---
>

=> is what exactly what i whant !!!!
i 'm now  discovering the symbol object that will change my life !!!!
i'll do some doc about it !!!


the last one :
>
>
> to get spaces into symbols (what do you mean, by spaces in "messages" ?)
> is more complicated:
> the straight forward (pure pd) use would be (as indicated some months
> ago), to use the makefilename object with something like :
>
> =---
>
> |32(
>
> =---
>
> =------------------------------
>
> |makefilename space%cseparated|
>
> =------------------------------
>
> =------
>
> |print|
>
> -------
>
> gets "symbol space separated"
>
> there you create a symbol that is containing the character 32 ("space"),
> but only 1 space can be inserted by this trick (and by the way, it is not
> very flexible)
>
> easier might be the "list2symbol" object (zexy), that converts a list (or
> anything) into one single symbol, seperating list atoms by spaces.
>
> so you can then set your message with a variable "message" containing
> spaces.
> unfortunately this message keeps its type (symbol), so that there is only
> one atom in the message (and not various, as it might look when you see
> it)
> hope this is clear (but i believe, this is *not* what you want)
> mfg.cdas.srzt
> IOhannes

was clear and interesting, but you were rigth : it was *not* what i was 
looking for.

many thanks.

Damien.



More information about the Pd-list mailing list