[PD] string concat in PD

IOhannes m zmoelnig zmoelnig at iem.at
Sun Aug 28 09:21:12 CEST 2005


thewade wrote:
> Hello list! I am fine, thanks for asking! How are you?
> 
> I am trying to open two files using one symbol. For example:
> [0]
> [symbol poop]
> [t a a]
> [append .dur][append .vel]
> [;                    >
> [array read $1>
> ...to read both poop.dur and poop.vel. (but not get "poop .vel" with the
> space)
> Is there a way to do this?
> 

$-expansion in message-boxes is most likely exactly what you want

[bang(
|
[symbol poop]
|
[;                  (
[array1 read $1.vel (
[array2 read $1.dur (

it will work only if the atom-to-be-replaced is on the beginning of your
symbol: "$1.vel" works, but not "vel-$1.txt"

mfga.ds.r
IOhannes


> Thanks!
> -thewade
> 
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list





More information about the Pd-list mailing list