[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pygame] Still no synthesised sound :(



I still can't get synthesised sound to work. This is what I am trying to do and the resulting error:

[djm@xenon synth]$ rpm -q pygame python-numeric
pygame-1.5.5-0djm0
python-numeric-22.0-1
[djm@xenon synth]$ cat synth.py
#!/usr/bin/env python

import Numeric, pygame
pygame.init()

tone_array = Numeric.arange(44100) / 4.0
tone_array = Numeric.sin(tone_array)

tone_sound = pygame.sndarray.make_sound(tone_array)
tone_sound.play()
[djm@xenon synth]$ ./synth.py
mcop warning: user defined signal handler found for SIG_PIPE, overriding
Traceback (most recent call last):
File "./synth.py", line 9, in ?
tone_sound = pygame.sndarray.make_sound(tone_array)
ValueError: Invalid array datatype for sound

Can anyone help?

Thanks,
Damien Miller


____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org