Get Accurate Frequency Reading, How?

Hello Community :slight_smile:
Now, I’ve been working with unity a little over a month now.
At this point in time, I am trying to get an accurate frequency reading through my microphone. This should pick up the ‘correct’ frequency (within reason) and display it back to me.
Long story short - I’ve established a way to do all this and get the frequency using an array of samples and an algorithm which spits out the average sample rate per total desired samples.

Wait, Let me rephrase that: I thought I’d established a way to get the frequency, but using an online frequency test I’ve noted that my frequency is wayy off from the test. (which tells me my algorithm is incorrect). And / or I just don’t understand everything yet.

So to start this tread off I ask this:

Frequency = audio.GetSpectrumData(samples,0,FFTWindow.Hanning)[64] * 1000000;

Can someone please tell me if the basic line of code above is true?

I have a knack for finding what I’m looking for after I ask, even though I’ve put off asking the question for days…
Anyway, The answer to my question is here: GetOutputData and GetSpectrumData, what represent the values returned? - Questions & Answers - Unity Discussions