[PD] $ vars again

eli+ at gs211.sp.cs.cmu.edu eli+ at gs211.sp.cs.cmu.edu
Mon Jun 3 04:53:26 CEST 2002


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