Online Tone Generator

screenshot

I made an online tone generator based on the Firefox Audio API HTML5 Web Audio API. It’s basically a large logarithmic slider that allows real-time, smooth frequency changes. You can also fine-tune the frequency in 1 Hz increments, if necessary.

There are other tone generators on the Web, but they are not as cool (if I do say so myself) and/or they require Java or Flash.

Warning: my generator only works on recent browsers which support the Web Audio API, such as Chrome and Firefox.

What can you use a tone generator for? You can do a science experiment with resonance, tune a musical instrument, test your new audio system (how low does it go?), test the limits of your hearing (I can hear absolutely nothing above 19,000 Hz, even at maximum volume), or figure out your tinnitus frequency to better target therapy.

About these ads

8 responses to “Online Tone Generator

  1. That’s why I love this blog: Tom always posts something cool. Thanks Tom!

  2. It’s bad luck for me. I use linux. :D grrr But it’s good toy. Nice one.

  3. So I try it in Ubuntu 12.04 with firefox 15.0 and it works propably bad. I listen good 20hz to 20173hz. Is it this bug? Does it give bad sound?

  4. It’s not working for me in Firefox 18 under Windows 7. The controls are there (minus the frequency number), but I can’t interact with them.

    • Thanks, fixed. There was a syntax error in the JS — I don’t know how I managed to upload a non-functional file — I always test my sites after I upload them to the server.

      Physics will never explain things like this.

  5. Have you thought of giving users the option to change the phase of the signal so that they could possibly reduce or cancel the sound from another device. I have tinnitus and would like to see if it is possible to use this method to reduce the level of the sound in my head.

  6. It works in Ubuntu 12.04 with Firefox 25.
    Nice job, thanks!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s