[PD] dynamic array names

Chuckk Hubbard badmuthahubbard at gmail.com
Tue Nov 15 23:10:04 CET 2005


 I thought the point was that you could use this in numerous places and each
one would be unique... so how could $0 alone refer to a specific one?

Hallo,
> Pall Thayer hat gesagt: // Pall Thayer wrote:
>
> > OK, I've figured out that I can use something like [table $0-a 259]
> > to create a dynamically named array/table. But how do I retrieve that
> > name for use elsewhere?
>
> [symbol $0-a] ?
>
> Or do you mean in another patch, where you don't know the content of
> $0? You can send $0 to that patch, it's just a number. Or directly
> send "$0-a".
>
> You can also pass "$0-a" as an abstraction argument. Assuming you
> have an abstraction, which wants to [tabread] your table. Then just
> create a [tabread $1] object and call that abstraction with "$0-a" as
> argument. If you want to pass lots of names like this, it's better to
> only pass "$0" and construct the names inside:
>
> [tabread $1-freq]
> [tabread $1-vol]
> [tabread $1-pan]
>
> etc.
>
> Ciao
> --
> Frank Barknecht _ ______footils.org_ __goto10.org__
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20051115/40aa2a5a/attachment.htm>


More information about the Pd-list mailing list