Re: [Tutor] Make sound with python? Cross platform?

2008-03-10 Thread Tony Cappellini
  Thanks very much. Not quite sure why I didn't find those earlier! I'll
  have a look now.

I think this cuts more to the chase than using a game framework
http://pysonic.sourceforge.net/
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Make sound with python? Cross platform?

2008-03-09 Thread Wesley Brooks
Dear Users,

I've been digging around to try and find a way to make python make
sound. I would either like to sound out a string of musical notes
including rests or simply have something that I set the frequency and
duration then sound and repeat for the number of notes.

If possible I would prefer a solution that is cross platform, and
standard library but would settle for Linux only solutions that can be
downloaded - which preferably don't need compiling.

Thanks for any suggestions.

Yours Faithfully,

Wesley Brooks
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Make sound with python? Cross platform?

2008-03-09 Thread Luciano Ramalho
On Sun, Mar 9, 2008 at 10:57 AM, Wesley Brooks [EMAIL PROTECTED] wrote:
  I've been digging around to try and find a way to make python make
  sound. I would either like to sound out a string of musical notes [...]

Wesley, take a look at PyGame [1]. PyGame is a Python wrapper on top
of SDL [2], a multi-platform multimedia library.

[1] http://www.pygame.org/news.html
[2] http://www.libsdl.org/

Cheers,

Luciano


On Sun, Mar 9, 2008 at 10:57 AM, Wesley Brooks [EMAIL PROTECTED] wrote:
 Dear Users,

  I've been digging around to try and find a way to make python make
  sound. I would either like to sound out a string of musical notes
  including rests or simply have something that I set the frequency and
  duration then sound and repeat for the number of notes.

  If possible I would prefer a solution that is cross platform, and
  standard library but would settle for Linux only solutions that can be
  downloaded - which preferably don't need compiling.

  Thanks for any suggestions.

  Yours Faithfully,

  Wesley Brooks
  ___
  Tutor maillist  -  Tutor@python.org
  http://mail.python.org/mailman/listinfo/tutor

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Make sound with python? Cross platform?

2008-03-09 Thread Wesley Brooks
Thanks very much. Not quite sure why I didn't find those earlier! I'll
have a look now.

Cheers,

Wesley.

On 09/03/2008, Kent Johnson [EMAIL PROTECTED] wrote:
 Wesley Brooks wrote:
   Dear Users,
  
   I've been digging around to try and find a way to make python make
   sound. I would either like to sound out a string of musical notes
   including rests or simply have something that I set the frequency and
   duration then sound and repeat for the number of notes.
  
   If possible I would prefer a solution that is cross platform, and
   standard library but would settle for Linux only solutions that can be
   downloaded - which preferably don't need compiling.


 pygame and pyglet+avbin both play sounds, are cross-platform and have
  binaries available for Windows, Mac and Linux.

  The Playing and creating sound section of this page looks promising:
  http://wiki.python.org/moin/PythonInMusic


  Kent

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor