Experimenting with Firefox Audio API

As I am an electronic music creator and a software developer, guess what I like to program ;) … Yes, DSP (Digital Signal Processing) and audio stuff. About two years ago I worked on a DSP platform in Java which became to big of a project to finish.

Recently (april 2010) I found out some guys at Firefox (David HumphreyCorban BrookAl MacDonald, and more) are working on an experimental Audio Data API build on the HTML5 audio tag. This I had to experiment with!

Here you can find the experiments I created. There are many more great examples on the Audio Data API Wiki page. If you want to try the demo’s yourself you should get yourself  a copy of Firefox 4!

Simple DSP delay in javascript

Check the video demo of the delay here (created with old API version) or try it yourself with Firefox 4http://code.almeros.com/code-examples/delay-firefox-audio-api/.

DSP reverb in javascript

Check the video demo of the reverb here or try it yourself with Firefox 4http://code.almeros.com/code-examples/reverb-firefox-audio-api/.

SamplePlayer, SampleLoader, Sequencer and Keyboard in javascript

Check the video demo of the SamplePlayer, SampleLoader, Sequencer and Keyboard here or try it yourself with Firefox 4http://code.almeros.com/code-examples/sampler-firefox-audio-api/.

It could very well be I create some more DSP, sound, sample, synth or music experiments. I’ll add them here… What shall I create now…. hmmm… let me think… a Hard Knee Compressor?… {fading} … a Voice synthesiser? … {fading more}… a mod player?… {fade out}.


Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.


  1. Posted May 17, 2010 at 3:29 AM | Permalink

    Nice work dude!

  2. Posted May 21, 2010 at 5:31 PM | Permalink

    Talk to me on irc. I maintain a project called dsp.js I would love to include some of your work.

  3. Posted November 23, 2010 at 4:59 PM | Permalink


    Love your work. I run a music production company in Stockholm called Plan8.
    I would love to contact you regarding the possibilities to take our SoundController into the world of JS and future browser technologies.

    How do I best contact you?


  4. Greg
    Posted December 14, 2010 at 6:22 AM | Permalink

    This is the best Audio Data API example on have found online. Great job. Amazing

  5. Jarod
    Posted January 27, 2011 at 8:34 AM | Permalink

    I am a musician and programmer :)
    I love your demo very well !

  6. Jarod
    Posted January 27, 2011 at 5:04 PM | Permalink

    Hi, me again :)
    I just tune your piano pitch with my electronic tuner.
    In your code : almero_dsp.js Line 168,
    you should devide by 261.63 to make it 1 for Middle C.
    Since your piano.ogg playing tone of middle C …


  7. Almeros
    Posted January 28, 2011 at 10:27 AM | Permalink

    LOL, could be, never really checked that. If I make an update once in the future, I’ll try and fix the middle C frequency too :)

Post a Comment

Your email is never published nor shared. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Almeros’ Code Blog

    Welcome to Almeros' Code Blog at code.almeros.com. I'm a Software Engineer living in Groningen, The Netherlands.

    Too many times I found out some coding stuff I really want to share with you all; interesting new coding stuff, problems I found a solution for, things bothering me, etc.

    After many years of getting the knowledge and help from you (other blogging developers), it's time to give something back! That's why I started this blog. I hope you find it useful and that my posts save your day!