Search code examples
javafftjavasoundaudio-fingerprintingfrequency-distribution

Extracting time at which frequencies occur


I take a song sample and perform the FFT (fast Fourier transformation) on the sample. I am able to get the frequencies of the song, but I am not able to get the time at which those frequencies occur. So, it basically becomes useless as I have to match it with different sample unless I get the information of time out of it.

How do I proceed?


Solution

  • You need to break up the sample into multiple smaller timeslices, and FFT each slice. Each FFT result gives you the average frequency content over that slice of time. This is commonly called a Spectrogram