[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] loopwave.py equivalent?


I don't know of a current example like that.  Maybe if you create a Sound from a buffer(like array.array or numpy.array), then you can modify that... but I haven't tried.

Also, have a look at the examples/sound_array_demos.py, maybe something like that will do.


On Sun, Feb 5, 2012 at 1:55 AM, Will Woods <will.woods2@xxxxxxxxx> wrote:
I want to be able to continuously modify a sound buffer from a
callback, exactly as shown in the pygame 0.09 example loopwave.py


This uses direct access to SDL which seems to have disappeared in more
recent versions of pygame. I need to be able to  continuously vary the
frequency modulation of a tone in response to user input.