So i have a array of floats where FFT has already been performed on. Now i have a array full of values, but how do i get the main frequency out of that? I have tried this that i found on another page(How do I obtain the frequencies of each value in an FFT?) but it doesn't work with my code.
Where FloatArray is where all the values of the FFT process are stored, and freq is a list where the freq of each value is stored
List<float> freq=new List<float>();
for(int i=0;i<FloatArray.Length/2;i++)
{
float ja = (i * values.sampleRate) / FloatArray.Length;
freq.Add(ja);
}