PitchDetector - An API to detect which tone is beeing played directly in the browser
The code is based on the https://github.com/cwilso/pitchdetect by Chris Wilson.
Look into the file demo.js for an simple example, test the code by opening index.html in a browser, feel free to fork or send pull requests.