The Web Audio API

Tones and Random Noise via an Oscillator

Play a Pure Tone or White or Brownian Noise

This will play a pure tone via an oscillator of a given type and frequency, or it can play white or brown noise. Use the sliders to change the frequency, detune or volume in real time. Beware the volume!
The white and brown noises do not require a frequency. White noise is perfectly random audio data with a flat frequency spectrum. Brownian noise decreases in power by 12dB/octave, and sounds like a waterfall. Check out how the plots differ.

  
Record the Tone

You can also record the tone that you started playing on the left. Choose a filename for your recording and when it is playing, click Record.

   
Chart the Audio (only plots sine waves or noise)
For tones, the plot shows samples over 2*Pi (1 second). This will show a number of cycles equal to the frequency, e.g., for a tone of 10Hz, it would show 10 cycles, but for frequencies higher than about 200Hz the plot becomes an indistinguishable blob!

For noise the plot shows the "wave" for a period of about half a second. Note the difference between white and brown noise!

Back to Audio Apps

© 2017 T B Griffin