Hey,

I would like to determine the frequencies by the spectrum. Unfortunately I always get wrong values when I compare it with

```
fft.getParameterFloat((int)DSP_FFT.DOMINANT_FREQ, out dominantFreq);
```

I read this contribution to me.

https://qa.fmod.com/t/calculate-the-frequency-with-spectrum-data/14042/3

unfortunately I’m still doing something wrong and I can not get it

This is my Code

```
float nyquistRate = (44100 / 2);
float numEntries = (FftWindowSize / 2);
float hzPerEntry = (nyquistRate / numEntries);
float entrypower = 0;
float biggest = 0;
frequency = new float[(int)numEntries];
for(int i = 0; i < numEntries; i++)
{
entrypower = spectrumData[0][i] * hzPerEntry;
if (entrypower > biggest)
biggest = entrypower;
}
```