Live Playing
We need to make a play() or sample() method which gives Melopy that capabilities of playing sound right from .data. This shouldn't be terribly hard to achieve, considering programs like Audacity do it without issue. Any ideas?
Rendering to memory, and playing it? It's the naive method but we should check if it's not too inefficient it should be OK.
No need to even render into memory. It's already in memory, in the data array. We should be able to play right from it.
yes it will be faster, if we could play sound without creating files...
we currently we could create hidden temp files, and play it... xD no body will ever know it
We're gonna have to use a 3rd-party library.. There is nothing in the standard library that is OS independent.. Look here: http://wiki.python.org/moin/Audio/
http://people.csail.mit.edu/hubert/pyaudio/#examples
I will try implementing this feature asap
See 2c34064. We have sped up the rendering process twenty-fold, to the point where playing live is close to feasible (we know the speed is there).
This could be done easily with Pygame. I recommend something that will try to use a few different libraries...