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

pitch perfect - 0.3.1

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

Added an option to lengthen loaded samples for increased resolution at differing pitches.

Links

Home Page: http://code.google.com/p/pitch-perfect/
Source: http://pitch-perfect.googlecode.com/files/pitch%20perfect%200.3.1%20src.zip
Windows: http://pitch-perfect.googlecode.com/files/pitch%20perfect%200.3.1%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 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
Apr 16, 2014


Apr 13, 2014

Apr 9, 2014

Mar 18, 2014


Mar 15, 2014


Mar 14, 2014

Mar 13, 2014

Mar 11, 2014

Mar 9, 2014

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