Hello there, I'm trying to build a patch that auto samples little sound-bites from a mic input when the signal volume goes over a certain threshold. This sample gets stored in a buffer then is assigned a randomly generated rhythm. My problem is: I want it to be able to store about 40 sounds, but having 40 buffer objects seems to be a little ridiculous and not to mention messy. My question is: is there a 'multibuffer' object or something similar, which is a collection of a number of buffers, by which you can access each one through use of an index? Maybe an argument of it would dictate how many buffers are initialised.
The other way I tried was to have a single long buffer where each sound was stored with a corresponding position index, however I couldn't work out how to have several sounds from the buffer to play at the same time.
Any suggestions would be hugely appreciated.