Hi, you're right about the increased amount of cycles and their consequence. I'm using a MyDAQ for the audio during tests. As for the high sample rate, the B2 frequency is 246.94 Hz. The formula below yields a resolution of 1 Hz (when using 60 kHz as the sample frequency).
Resolution = f^2 / fs
Why is the sample frequency of 60 kHz unnecessary high? With my knowledge I figured that this is the way to get results that are accurate enough for tuning. The weird thing is, however, that I found two projects that use this technique but do not seem to improve the resolution (which would be terrible for the high strings). I've attached the links below. As for my code, do you have any tips for me on the overall coding style and structure?
Thanks
http://www.ericthuang.com/actuating-guitar-tuner.html
https://www.google.nl/amp/www.instructables.com/id/Guitar-Tuner-With-an-Arduino/%3Famp_page=true