The heart of the sketch is Peter's algorithm for a fast ~8900Hz ADC routine along with a smoothed energy detector in 4 pass bands + 1 ZeroCrossingFrequency 'band'. Using that functionality as a ...