2009/9/25 Andrew C. Smith
Right, clever idea. In fact, you could just have each sporked function append its OWN object to the array. How about that?
Exactly.
Now we just need to learn how to destroy...
Not really. You just need to append when you run out of voices and otherwise recycle them. You would also need to try to make non-active voices not take cpu, of course. Detroying elements in the middle of a array doesn't seem like such a hot idea to me as that would defeat the whole purpose of having them indexed. To me that seems like a sensible middle between saving resources and making sure you can still do everything you would like (until the cpu gives up). That, of course, is just my opinion; there are many approaches and your ideas may well match the exact issues you have. kas.