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

13 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!

  7. Agreed, good stuff – very nice presentation, simple and easy-to-use.

    One request. Can you allow frequencies lower than 20Hz? I realize that drops below human hearing, but in terms of science, it makes for great woofer visuals.

    Along that line, have you considered having multiple simultaneous tone generators? Most of the sounds we hear (especially voice) are made of multiple frequencies. I would love to demonstrate to a class how sin waves destructively and constructively react to each other.

    Keep up the good work!

    • Charles,
      I’ve modified the scale to allow frequencies starting from 1 Hz.
      I imagine demonstrating constructive and destructive interference would take some thought to do right. You’d have to make it possible to manipulate the phase. Perhaps you could do your demonstration with Audacity?

      • Tomasz, that totally rocks – thanks for the quick turn around. So even though I cannot hear the actual frequency, I can hear the physical movement of the cone even down to 10Hz. Kinda cool. :)

  8. Best sound application EVER !!! Thanks!

  9. nice app. My wife is using it right now for her sinus infection. She is pressing a speaker into her cheek + eyebrow. Somewhere between 100-107hz seems to be the best to break up her mucous. We’ve read elsewhere that people do this and it clears up the sinus infection immediately. Fingers crossed.

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