table is just a handy object for making an array appear in a subpatch, rather than cluttering up your main window.
if you want to store anything other than a float in an array, you need to use templates. making an array of arrays definitely falls into this category. but, apparently miller is making some big changes to this part of pd (constantly?).
but even then, i'm not sure if you would be able to easily write to a template-like array (which is i think is a very different animal to a "normal" array).
how many different arrays do you need? if it's a manageable upper limit, you might be able to just build the arrays statically (because without the template stuff, this is really the way that pd has to work - atleast without selfmod hacks). switching between them could be tricky tho (i'm not sure if tabread4~ can take a "set" argument to change the source table).
On Sat, 22 Dec 2001 22:46:16 -0600 Joseph Zitt jzitt@metatronpress.com wrote:
Another newbie question... I'm trying to figure out how to make an array of arrays, or at least I think I am. What I'd like to do is to sample sounds from adc~ into a table or array (and I remain a bit confiused over whether they're the same thing, and the necessary relation of the visual array diagram to them), and them append each of them into an array of those, from which I can pick them out and play them as needed or randomly.
Part of this seems to require creating templates, but from going through all the docs that I can find and playing around with them, I remain unclear on the whole template thing. I have a feeling that the documentation is assuming some paradigm that I haven't gotten yet.
Any clues?
-- |> ~The only thing that is not art is inattention~ --- Marcel Duchamp <| | jzitt@metatronpress.com http://www.metatronpress.com/jzitt | | Latest CDs: Collaborations/ All Souls http://www.mp3.com/josephzitt | | Comma: Voices of New Music Silence: the John Cage Discussion List |