At 13:05 16.11.2006, Damian Stewart wrote:
i want to do something like the following:
- load up a whole bunch of samples (or floats, or symbols)
- group the samples (or floats, or symbols) by tagging them
- be able to call up any sample/float/symbol with a particular tag, possibly randomly.
i'm thinking something along the lines of a database object, which i could send messages of the form eg [add <key> <value>( to store values tagged with a particular key; then i could have another instance of the database object which i could hit with messages eg [findfirst <key>( or [findrandom <key>( to spit out a <value> with the matching <key>
does something like this already exist?
i'm not really sure from your description what you're trying to do but have a look at [pool] - this could be the object you're looking for (comes with good description / examples).
sven.