Arduino pitch detection in realtime (using autocorrelation and peak detection)