I need to analyze the frequency of a square wave coming in from the adc input. The freq of the wave varies between 50Hz and 20000Hz. I have made a patch that counts the peaks of the wave and measures time between them. This works but only up to 10000Hz.
Is there a better way? Or a msp command or external that does it?