Skip to content
Pitch detection in Web Audio using autocorrelation
JavaScript HTML
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
img README and forkme. Oct 5, 2012
js pulled correlation bar out into variable. Jun 9, 2016
LICENSE.txt License added. Jan 22, 2014 Update Apr 10, 2014
index.html Formatted the HTML and added space around buttons. Oct 6, 2015

Simple pitch detection

I whipped this app up to start experimenting with pitch detection, and also to test live audio input. It used to perform a naive (zero-crossing based) pitch detection algorithm; now it uses a naively-implemented auto-correlation algorithm in realtime, so it should work well with most monophonic waveforms (although strong harmonics will throw it off a bit). It works well with whistling (which has a clear, simple waveform); it also works pretty well to tune my guitar.

Live instance hosted on

Check it out, feel free to fork, submit pull requests, etc. MIT-Licensed - party on.


You can’t perform that action at this time.