Web Audio Tone Generator

3 October 2011

Recently I was playing with the new Web Audio API. While there are a bunch of examples on the Chromium site, they are rather more complex than you want in a hello world sample.  So for posterity here’s a super simple tone generator that uses AudioContext#createJavaScriptNode and the onaudioprocess handler.

One Response

  1. HLamontagne says:

    Nice. Too bad the latency is over 100ms atm, hope it gets better.