[PD] $ vars again
oliver
oliver at klingt.org
Mon Jun 3 11:57:14 CEST 2002
best usage would be makesymbol from the ZEXY library.
you have to create a "pack s 0", containg "foo" and "3" and send it to the
object
"makesymbol %s-%s.wav" then into the message
"read $1"
this should do your job
oliver
03.06.02 04:53:26, eli+ at gs211.sp.cs.cmu.edu wrote:
>This time I've got a symbol, say "foo", and some numbers, say 3, and
>I'm trying to construct "read foo-3.wav".
>
>Tried "makefilename $1-%d.wav", aiming to plug in the 3 and get
>"$1-3.wav", run that through a "set $1" to a message box -- but
>makefilename sends "\$1-3.wav", and I haven't figured out how to strip
>the backslash off. If makefilename took "set", or handled lists, or
>didn't add the backslash; or if there were an "add3" that didn't
>inject spaces... but how do people prefer to do this kind of thing?
>
>--
> Eli Brandt | eli+ at cs.cmu.edu | http://www.cs.cmu.edu/~eli/
>
>
More information about the Pd-list
mailing list