On Wednesday, Aug 6, 2003, at 16:46 America/New_York, John Hunter wrote:
Well, your math is completely bogus. Take a look:I am trying to use pygame to create sound arrays with Numeric. When I try and play the sound, no sound comes out. Here is what I am doing: from Numeric import * from pygame import mixer, sndarray, time mixer.init(22050, 16, 0) phi = arange(44100) / 4.0 s = sin(phi).astype(Int16) snd = sndarray.make_sound(s) snd.play() while mixer.get_busy(): time.wait(200)