Scheduling and playing multiple sound files simultaneously – how ?
Greetings to all!
I’m a complete Max newbie but I quickly realized it was the best tool for the project I’m working on (basically a Flash interface that schedules sounds to play via an interactive matrix).
I’ve worked out the Flash-to-Max part but I need pointers as to how I can schedule a bunch of sounds to trigger at specific times.
If I was using a "regular" programming language, I would create an array holding the sounds to play and the time at which they should play. Then, I would periodically check if a sound needed to be played. How can I do something similar in Max 5 ?
I read about the
timepoint object but I’m unclear as to how I can generate an arbitrary number of those dynamically (add some, delete some).
The other thing is how do I play multiple files overlapping each other ? I read about the sfplay~ object but, as far as I can tell, it only plays one sound at a time. I need to be able to play an arbitratry number of sounds depending on what the user does. Then there are the
transport objects and so on but I’m a bit lost.
I’m sure some tutorials must exists out there dealing with these issues (playback scheduling and simultaneous sounds) but my searches have not been fruitful…
Ideas, suggestions, pointers ? TIA.
take a look at
which is the documentation of poly~ object ( how to manage with multiple instances simultaneously…
also bufgranul~ is the best external to do this job
don t forget that the point is to have a number of buffer~ objects(as many as the samples you want to trigger) and then you must trigger poly~ object changing each time the name of the buffer ( which corresponds to the appropriate sample)
poly~ would indeed be a good object to learn about. but the good people of C74 did most of the work for you here:
the polybuffer object should help you get on your way very quickly. Have a look at the page, download the latest version, have a look at the helpfile and have fun ;)
Thanks guys. I’ll have some time over the week-end to look at the suggested links. So far, I enjoy Max but it’s a completely different game than your usual programming language…
What about the scheduling part ? Is the timepoint object the best object to look at for scheduling sounds to play at a later time ?