c# - DSP FFT fundamental frequency wav file -


i have fft algorithm in c# , generate sine wave in buffer @ frequency of 440, fs=1600 , window length of 2048.

before sending signal fft, double window length , put imaginary values( 0es) between buffer data. after fft, compute amplitude , take index of max amplitude , multiply bin size. , works returns 442 hz :)

now put same generated sine recorded .wav file matlab. when run fft c# returns 884 hz double expected. why?.

i checked .wav file audacity , got 440 corrected value.

so ideea why got doubled value?

i figured out it, seems didn't read wav file correctly.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -