Fun with the Audio Data API

Posted on 6 December 2010 in Music, Programming

The latest beta version of Firefox 4 has an API for reading and writing audio data -- right down to the sample level, right from JavaScript. JavaScript is, of course, totally the wrong language to write DSP-style code in, so that's what I decided to do :-)

If you fancy downloading FF4 beta and trying out some of the demos, here they are. There are lots of (much better) demos by other people here.

And if you try out the musical temperament example and have any thoughts on which chords sounded nicest, leave a comment below!

(Update: the Mozilla Audio API no longer works, as far as I can tell -- a different Web Audio API wound up becoming the standard -- maybe I'll port the examples over to that!)