nwayt001 / sono-lumo

0 stars 1 forks source link

Incorrect estimation of the peak frequency #1

Closed nwayt001 closed 7 years ago

nwayt001 commented 7 years ago

I tested the code with a frequency sound generator application on my phone and was not detecting the correct frequency (as listed on the phone app). Additionally, the detected frequency (denoted by 'maxFreq' in the code) was jumping from a low value to a high value with a slight change in frequency from the phone app. It's possible that the phone app speakers are introducing weird aliasing artifacts. This needs to be investigated further to resolve any issues in the code.

nwayt001 commented 7 years ago

This issue is now resolved. It turns out that the sampling frequency that I was setting in the code was not the actual sampling frequency that the USB microphone was being set to. The reason for this is probably due to a limited number of possible sampling frequencies that the USB mic can support. When the sampling frequency is set to what the hardware is capable of, all works well.