[Tutor] Making a sound
Luke Paireepinart
rabidpoobear at gmail.com
Sat Jul 31 21:56:18 CEST 2010
You can generate the sound data in a buffer either in native python or using numpy, then play it back by loading the buffer into a sound object with pygame. It depends how much control you want on the sounds. You might want to use csound or supercollider or something if you want to programmatically control a synth rather than directly creating the sound data.
Sent from my iPhone
On Jul 31, 2010, at 1:49 PM, Michael Bernhard Arp Sørensen <michael at arpsorensen.dk> wrote:
> Greetings, programs.
>
> How do I create a sound from python? I'm thinking along the line of generating a sinus wave where I can control the frequency and duration. I want to produce a string of sounds based on a character string. Probably not original. :-) I don't want to save a sound to a file and play it afterwards. Preferably it should be something from PYPI. Any suggestions?
>
> Thanks in advance.
>
> Kind regards
>
> Michael B. Arp Sørensen
> Programmer / BOFH
>
> "If you want to enter my network while I'm out, you can find my SSH-key under my mouse mat" - Michael Bernhard Arp Sørensen
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
More information about the Tutor
mailing list