Hi Chris,
This sounds like a great thing for vanilla Pd. I've had need of something just like this more than once.
Having worked a bit with [pool] recently, especially as it is used in Memento, I'd venture that you'd have to go quite a bit further to match its functionality, though. It's like a miniature in-memory file system, with directories, clipboard editing, and more. It would be laudable to do a "pure" Memento, but I think much of the hierarchic potential of [pool] for state-saving has barely been scratched, and in that direction lie some very interesting capabilities.
Phil Stone www.pkstonemusic.com
Chris McCormick wrote:
Hello,
Just for kicks I implemented a sort of primitive associative array [1] (also called a 'map' or 'hash' in some languages, depending on the implementation) in pure Pd:
http://mccormick.cx/viewcvs/*checkout*/s-abstractions/s-map.pd?root=svn http://mccormick.cx/viewcvs/*checkout*/s-abstractions/s-map-help.pd?root=svn
It maps symbols/floats to lists. So you can enter a bunch of lists into it and the first element of each list is the key and the rest of the list is the value. You can recall values (lists) by their key.
Don't look at the internals or your eyeballs might explode.
Hmmm, I wonder if this could be used with SSSAD to make some kind of pure Pd pool/memento replacement? Maybe I'm getting ahead of myself.
Best,
Chris.
[1] http://www.wikipedia.org/wiki/Associative_array
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list