Pygame has no tools for real-time sound generation. There is not
callback feature for filling a buffer as its contents are consumed. And
using trying to use a file-like object to stream audio through the
mixer.music module would likely fail because the playback thread would
be blocked while Python generates more data.
You might look at the Python binding for csound. Then there is the Snack
package for Python. It ties into Tk so one can do visual stuff as well.
Lenard
machinim...@gmail.com wrote:
i forgot to mention that i want it to be realtime. is this possible
with sndarray? will i have to continually feed pygame mixer with very
short sound arrays? or can i manipulate the array while playback has
already started?
i guess now i will have to start learning how audio programming
actually works. :)
are there any examples where someone has already done something like
this with pygame?
On 5/22/09, *Ian Mallett* <geometr...@gmail.com
<mailto:geometr...@gmail.com>> wrote:
Check out pygame.sndarray
-Ian