Skip to main content
GameDev.net gamedev.net
🔒 Locked

pitch detection using java

Started by fathima Mar 5, 2009 at 10:42 AM 9 replies 6.6k views
Original Post
fathima
fathima
hi everyone..i m doing my final year project on query by humming system..can anyone plz help me with pitch detection using java code...it would be nice if you cud giv me the entire code..do snd it as early as possible as i m really in need of it...thank u in advance...
Red Ant
Red Ant
You aren't asking for much, are you? :P
fathima
fathima
yeah....not much jus pitch calculation coding....plz help me out someone...
Nypyren
Nypyren
Google "Fast Fourier Transform Java" and good luck. This stuff is not for the faint of heart.
caleb_yau
caleb_yau
Seriously man, what your asking for is no joke. Lookout for the nyquist sampling theorem, and make sure you have a fairly sufficient bandwidth, I doubt what your looking for is exactly one frequency.
fathima
fathima
thanks a lot Nypyren....it was really useful...hav a smal question..can u plz explain to me what fft actually does? i m sorry f i m botherin u..
caleb_yau
caleb_yau
FFT's take an a finite amount of points representing a wave form (must be a integer squared) and converts them from time space to frequency space. Good luck decoding that! :)
fathima
fathima
Quote:
Original post by caleb_yau
FFT's take an a finite amount of points representing a wave form (must be a integer squared) and converts them from time space to frequency space. Good luck decoding that! :)


ok...wat does auto correlation have 2 do with ths? coz i found a lot of material regarding these two to track the pitch of song
caleb_yau
caleb_yau
From what I know about autocorrelation, i'm pretty sure that it is tool used in the time domain, meaning it is completely outside the scope of a fft. I think what me and Nypyren were alluding to is that after a signal is transformed to frequency space, its peak frequencies will be exposed. If the waveform consists primarily of the frequency that your looking for, or rather that its frequency domain signal peaks at the wanted frequency, then you have a match.
fathima
fathima
yeah...fine...nw i understud...u r great teacher..i found an fft code tat produces the values hw can i use it to chk the pitch of a particular voice input?
ths is the website wer i got the coding..
http://people.csail.mit.edu/hammond/teaching/hide/fft/fftcode.html
fathima
fathima
what actually i need is when the user generates a sound, through mic or another input device, using the fast Fourier transform (FFT) the pitch must be determined from the raw audio stream, and then it must be displayed.
plz help me out with the coding for this...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.