We're trying to make something that determines frequency of a sound coming from the microphone reliably.
Imagine a game with car that veers left slightly when the microphone hears a sound lower than a certain threshold, and makes a bigger left turn the lower the sound.
If the sound is higher than the threshold the car veers right instead of left. Again, higher frequency makes a stronger turn.
We've tried an approach of summing up all the 512 frequency bins to know if a sound is generally lower or higher. It has been somewhat useful, but very inaccurate.
Is there a way to determine frequency?