I am using the FFT function from the Surge library. What is each element in the return array correlated with? How can I tell which frequencies correspond to which values?
For example, I am trying to find peaks in a certain frequency range.
I am using the FFT function from the Surge library. What is each element in the return array correlated with? How can I tell which frequencies correspond to which values?
For example, I am trying to find peaks in a certain frequency range.
Generally for an FFT result, the array index corresponds to the discretised frequency "block" and the value is just the magnitude. Since you probably want to know the peak frequency and not the amplitude, the exact value of the latter is not that important.
The general steps are: