Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tone generation for motherboard and sound card speakers?

8 views
Skip to first unread message

Alex Hall

unread,
May 16, 2010, 10:41:37 PM5/16/10
to python-list
Hi all,
I am wondering if there is a way to generate a tone for the
motherboard speaker, like the call to Beep() in C++?

Also, is there a module to generate tones in Python using the sound
card? A module that can beep at a given frequency for a given time
using the usual sine wave is okay, but the fancier the better
(different waves, sweeping, and so on).

My final question will likely hinge upon the answer to the second
question, but is there a way to play a tone in a given position in the
stereo field? For example, I have a Battleship tactical board (my name
for where the little red and white pins go) which I am trying to
sonify using different tones for each status (not fired on, ship
sighted, ship hit, ship sunk). I want each row to play, from top to
bottom, but each square in each row should start at the left and
continue to the last square playing in the right speaker, giving the
user a better idea of where each square is. Oh, this is for blind
users, in case you were wondering why anyone would want to sonify a
battleship board.
Thanks for any information, and note that I am using Python2.6; unless
there is an easy way to use a module meant for 2.5 or before inside a
2.6 project, I would need a 2.6 module.

--
Have a great day,
Alex (msg sent from GMail website)
meh...@gmail.com; http://www.facebook.com/mehgcap

Gaby

unread,
May 17, 2010, 3:24:06 AM5/17/10
to
It is amazing, the Ballon Bleu de Cartier Replica Watches at
http://www.swizwatch.com/ are perfect, cheap and high quality.

Ballon Bleu de Cartier Watches Collection:
http://www.swizwatch.com/ballon-bleu-de-cartier-replica-watches.html

Replica Cartier Ballon Bleu de Cartier Two-Tone Ladies Watch W69007Z3
http://www.swizwatch.com/Cartier-Ballon-Bleu-de-Cartier-Two-Tone-Ladies-Watch-W69007Z3-.html

Replica Cartier Ballon Bleu de Cartier 18K Yellow Gold Leather Strap Mens
Watch W6900551
http://www.swizwatch.com/Cartier-Ballon-Bleu-de-Cartier-18K-Yellow-Gold-Leather-Strap-Mens-Watch-W6900551.html

Replica Cartier Ballon Bleu de Cartier Two-Tone Mens Watch W69009Z3
http://www.swizwatch.com/Cartier-Ballon-Bleu-de-Cartier-Two-Tone-Mens-Watch-W69009Z3.html

Replica Cartier Ballon Bleu de Cartier 18K Rose Gold Mens Watch W69006Z2
http://www.swizwatch.com/Cartier-Ballon-Bleu-de-Cartier-18K-Rose-Gold-Mens-Watch-W69006Z2.html

Replica Cartier Ballon Bleu de Cartier Mens Gold Watch W69013Z2

http://www.swizwatch.com/Cartier-Ballon-Bleu-de-Cartier-Mens-Gold-Watch-W69013Z2.html


Buy more Cartier replica watches at low price by click:
http://www.swizwatch.com/cartier-replica-watches.html

"Alex Hall" <meh...@gmail.com>
??????:mailman.280.12740641...@python.org...

Gregory Ewing

unread,
May 17, 2010, 4:26:05 AM5/17/10
to
Alex Hall wrote:

> Also, is there a module to generate tones in Python using the sound
> card? A module that can beep at a given frequency for a given time
> using the usual sine wave is okay, but the fancier the better
> (different waves, sweeping, and so on).
>
> My final question will likely hinge upon the answer to the second
> question, but is there a way to play a tone in a given position in the
> stereo field?

The mixer module of pygame will do all of this, I think:

http://www.pygame.org/

You may find the rest of pygame useful for implementing your
battleship game as well, if you haven't already chosen a library
for that.

--
Greg

0 new messages