pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
pitch perfect

pitch perfect - 0.3.2

Sean McKean (randomeyes)

Tags:

Description

This program is meant to demonstrate how to generate dynamic audio tones in real time without pre-loading them as .wav files, although it now includes support for rendering small recorded samples as well. I was thinking about including something similar to this method in an upcoming game, to make the control a little more interesting. But I do not have a date set on it yet, and I still have some bugs to work out. Greetings and thanks to all the people who have taken the time to give me ideas and feedback.

Changes

Various bug fixes, with less chance of running into a segmentation fault.

Links

Home Page: http://code.google.com/p/pitch-perfect/
Source: http://pitch-perfect.googlecode.com/files/pitch%20perfect%200.3.2%20src.zip
Windows: http://pitch-perfect.googlecode.com/files/pitch%20perfect%200.3.2%20binary.zip

Screenshot


click to view original size

Releases

pitch perfect - 0.3.2 - Nov 15, 2010
pitch perfect - 0.3.1 - Nov 13, 2010
pitch perfect - 0.3.0b - Nov 13, 2010
pitch perfect - 0.2.1b - Nov 8, 2010
pitch perfect - 0.2b - Nov 8, 2010
pitch perfect - 0.1b - Nov 6, 2010

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

March 10, 2011 9:27pm - Zachariah Callaway - nickname: (xzcallaway)
A .deb package of Pitch Perfect is available for download at http://www.dotdeb.com/music.php
November 22, 2010 10:50am - Sinan - nickname: (chatlax) - 5/5
http://www.myalem.net thakns...
November 22, 2010 10:49am - Sinan - nickname: (chatlax)
With the Continent looking to Essen this year, as the Capital of
- <a href="http://www.myalem.net" title="Chat" target="_blank">Chat</a> -
<a href="http://www.myalem.net" title="sohbet" target="_blank">sohbet</a> -
<a href="http://www.myalem.net" title="sohbet odalarÜ" target="_blank">sohbet odalarÜ</a> -
<a href="http://www.myalem.net" title="sohbet siteleri" target="_blank">sohbet siteleri</a> -
<a href="http://www.myalem.net" title="msn chat" target="_blank">msn chat</a> -
<a href="http://www.trsohbete.org" title="sohbet siteleri" target="_blank">sohbet siteleri</a> -
<a href="http://www.nurchat.net" title="islami chat, islami sohbet" target="_blank">islami chat</a> -
<a href="http://www.mircfinal.com" title="mirc, mirc sohbet" target="_blank">mirc</a>-
<a href="http://www.yabancisohbet.com" title="sohbet kanallari" target="_blank">sohbet kanallari</a>-
<a href="http://www.radyonazli.com" title="radyo, radyolar" target="_blank">radyo</a>-
<a href="http://www.evrensohbet.com" title="sohbet, sohbet odalari" target="_blank">sohbet</a>-
<a href="http://www.harbialem.net" title="mirc, mirc indir" target="_blank">mirc</a>-
<a href="http://www.chatlax.net" title="sohbet siteleri" target="_blank">sohbet siteleri</a>-
<a href="http://www.muhabbetteyim.com" title="cinsel sohbet" target="_blank">cinsel sohbet</a> -
<a href="http://www.harbialem.net" title="mirc, mirc indir" target="_blank">mirc</a> -
<a href="http://www.garantichat.com" title="islami chat" target="_blank">islami chat</a> -
<a href="http://www.cinselliksohbet.org" title="cinsel sohbet" target="_blank">cinsel sohbet</a> -
<a href="http://www.cetturk.net" title="Cet, çet" target="_blank">Cet</a> -
European Culture 2010, the city is l
November 16, 2010 2:20am - Shanti Pothapragada - nickname: (rgbdreamer)
Very nice interface!
November 15, 2010 7:03pm - Sean McKean - nickname: (randomeyes)
The comments give me a better idea of how the general experience is, thank you for sharing them. I have tried adding comments to my code where I think they might help.

@ Hewitt Squared Labs: Adding a main class was just a habit developed out of a need to avoid global variables as much as possible. Are you talking about the size of the gradient, or the set of separate colors?
November 14, 2010 3:48pm - Hewitt Squared Labs - nickname: (hewitt2labs)
One other thing, the color ring may look better if you make the gradient spread out, though that might be me...
November 14, 2010 3:39pm - Hewitt Squared Labs - nickname: (hewitt2labs) - 4/5
slick code, I'll have to play with the command line args. I've also never seen a python program with a main class instead of a main function, I'll have to think about doing that for a future large program.
November 11, 2010 12:26pm - Eric Pavey - nickname: (akeric) - 5/5
Great stuff. Like others I've been wanting to learn a good way to do this in PyGame. Thanks for the great example. Like others said, would be nice to get some docstrings in the code just to make it easier to wrap ones head around ;)
November 9, 2010 3:45am - Xandar Kablandar - nickname: (eternalcheesecake) - 4/5
I've been wanting to know how to do this and your code is great for learning from, thanks for sharing it!
November 7, 2010 5:54am - Jug - nickname: (jug) - 5/5
Hey,
very nice program. Maybe you could make a tutorial out of it or just write some docstrings to make it easier to understand and learn from. Or even better, make a small module that provides a set of higher level methods to create sound (so the user does not have to care about all the arrays and numpy etc.).
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
May 24, 2012




May 23, 2012

May 22, 2012


May 20, 2012

May 19, 2012

May 18, 2012

May 17, 2012


... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)