[PD] local arrays

leo {depart} oel at depart.at
Wed Feb 12 12:39:17 CET 2003


hi everyone!

i have a question concerning local variables in pd:

i wrote an abstraction which contains a data array. this array is only
relevant inside
the abstraction, but i need flexible amount of instances (of the
abstraction)...
therefore i can't give the array a fixed name (-->warning: arr: multiply
defined)
neither can i use the usual way of using a $1 placeholder and which gets
replaced on
initialisation (because in that case i'd need to get track of the number of
instances already used, etc)

so, is there either a way of using an auto-generic variable-name or a way to
keep an array local, so that
the multiples won't interfere.

thanks a lot

leo





More information about the Pd-list mailing list