[PD] spaces in messages to symbol object?
Frank Barknecht
barknech at ph-cip.uni-koeln.de
Fri Apr 12 19:41:28 CEST 2002
Hi,
nullpointer hat gesagt: // nullpointer wrote:
> the symbol object doesn't seem to like any spaces in a message that it is
> sent.. It just symbolised the text up until the first space.
That's the way it is right now ;(
> This is a problem because when using $1 to create a dyamic message you HAVE
> to have a space in the message!
>
> i.e.
>
> [12](numberbox)->[mynewcolor= $1](message) -> [symbol]
Excuse me, but I'm not sure, that I understand your message flow here.
You can do for example a
[nbx] -> [mycolor $1( -> [send mycolor]
or
[nbx] -> [symbol] -> [this is my $1 favourite color( -> [print]
or
[nbx] -> [this is my $1 favourite color( -> [print]
where [] are [objects] and [( are [messages(
But a symbol can only hold one symbol.
> does anyone know how to get around this? (and in a way that is kind of user
> friendly?)
> is it possible to have a message using $1 without a space? i.e. mynewcolor$1
$-variable in messages get only replaced, if the $-variable is at the start
of the variable: $1-mycolor will work, mycolor-$1 will not. For that you
need the makefilename object or makesymbol from (?) zexy.
Ciao,
--
__ __
Frank Barknecht ____ ______ ____ __ trip\ \ / /wire ______
/ __// __ /__/ __// // __ \ \/ / __ \\ ___\
/ / / ____/ / / / // ____// /\ \\ ___\\____ \
/_/ /_____/ /_/ /_//_____// / \ \\_____\\_____\
/_/ \_\
More information about the Pd-list
mailing list