[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pygame] Still no synthesised sound :(
- To: pygame-users@seul.org
- Subject: [pygame] Still no synthesised sound :(
- From: Damien Miller <djm@mindrot.org>
- Date: Mon, 13 Jan 2003 17:39:37 +1100
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Mon, 13 Jan 2003 01:39:44 -0500
- Reply-to: pygame-users@seul.org
- Sender: owner-pygame-users@seul.org
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021202
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