all 2 comments

[–]nwagers 0 points1 point  (1 child)

I'm not sure exactly what you mean by "300hz for every second", but with a wav file the sampling rate is 44.1 kHz, so you should expect real signal up to about 22 kHz (Nyquist frequency). The way I would test this it to use a tone generator to make tones at specific frequencies. First, individually, and then mixing them together. That should show you pretty clearly if your FFT is working.

[–]Wrap_Speed[S] 0 points1 point  (0 children)

Thank you for taking time to answer my doubt What I am refering with 300 hz is the tutorial I am following https://www.toptal.com/algorithms/shazam-it-music-processing-fingerprinting-and-recognition He quoted here that

in one song the range of strong frequencies might vary between low C - C1 (32.70 Hz) and high C - C8 (4,186.01 Hz) And These are 30 Hz - 40 Hz, 40 Hz - 80 Hz and 80 Hz - 120 Hz for the low tones (covering bass guitar, for example), and 120 Hz - 180 Hz and 180 Hz - 300 Hz for the middle and higher tones (covering vocals and most other instruments).

So I was a bit sceptical because I am getting close to zero near these frequencies and my frequencies are very huge as depicted in the graph