« Google's Moog Doodle falls back to Flash | Home | Timbre: A JavaScript Library for Objective Sound Programming »

May 23, 2012

A tone generator built using the Web Audio API

Just stumbled across this excellent little example of a simple tone generator built using the Web Audio API. It works only in Chrome and supposedly in Safari, although I still haven't succeeded in getting any Web Audio API code to work even in a nightly of WebKit.

The article includes a thorough walkthrough of how to do the math necessary to generate tones, work with sample rates, and a lot of what you might need to create interesting results.

Nicely enough, the entire code is available on GitHub!