PDA

View Full Version : python for note detection?



h12
October 18th, 2008, 04:50 AM
Hi. I'm not sure if the ubuntu forums are the best place to ask this, but here it is: Are there any python librarys that can be used to detect the pitches of sounds being played either on the sound card or from an audio input device? I'm trying to make a program that would use a musical insturment to type, instead of a keyboard.

ericesque
October 18th, 2008, 05:12 AM
I was just thinking of the same thing this afternoon. Figured I might work on a Rhythmbox plugin similar to iTunes Genius... let me know if you find anything.

Bichromat
October 18th, 2008, 01:36 PM
I guess you could use pyaudio and scipy to read a sound, do an FFT on it, and find the largest peak.

NoBugs!
August 17th, 2010, 07:19 AM
Denemo has the ability to identify notes.
It would be nice to be able to do this in python, but it looks like Denemo's source code is all C...

DanielWaterworth
August 17th, 2010, 07:32 AM
There's also waon, but it's another C program. You could use numpy for finding the fourier transform.

ssam
August 17th, 2010, 09:06 AM
if you do FFT the you will probably want to use scipy