Skip to main content
initcode
Participant
June 20, 2011
Question

Pitch Detection with AS3

  • June 20, 2011
  • 1 reply
  • 4517 views

Hi all,

I'm working the last two weeks on a module which uses computeSpecturm() to analyze FFT data from a mic.

I'm currnetly trying to figure out a way to detect the pitch on each 'sample' of this sound.

Does any one know how to find the fundamental frequencty or how to use auto-correclation on the FFT to get the pitch?

If more info required, please feel free to ask me!

Thank you in advance

initcode

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
June 20, 2011

you'll need to apply a fourier transform to obtain frequency data from a sound wave.  you'll need to encode that yourself.

initcode
initcodeAuthor
Participant
June 20, 2011

Hi kglad,

I already have the FFT from the computeSpectrum()...

I was using the highest peaks assuming that this is the correct funtamental frequency, but I was getting funny results.

After spending hours in various blogs, discoverd that hightest peak is not always the fundemantal frequency...

So now I'm trying to understand autocorrelation to apply it in Flash!

Any thougths?

kglad
Community Expert
Community Expert
June 20, 2011

the fundamental frequency would normally be the lowest pitch frequency.  but with all the pitch bleeding from flash'es handling of sound, i would expect you to have difficulty picking it out.