Why Use a Browser-Based Frequency Generator?
Whether you are calibrating studio monitors, checking a subwoofer crossover, tuning an acoustic instrument, or running a quick hearing sensitivity check, a frequency generator gives you instant, repeatable control over pitch and waveform shape without installing desktop audio software. By synthesizing signals directly inside your browser via the Web Audio API, this tool produces mathematically clean tones from 20 Hz to 20,000 Hz with zero file downloads and zero server latency.
Modern audio workflows often demand both steady reference tones and dynamic sweeps. A static 1,000 Hz sine wave is ideal for setting amplifier gain staging, while a continuous logarithmic sweep across 20 Hz to 2,000 Hz quickly exposes loose speaker screws, cabinet resonances, and room standing waves that normal music playback masks.
Choosing the Right Waveform: Practical Comparison
Different waveforms distribute acoustic energy across harmonics in distinct ways. Selecting the right shape ensures accurate test results and protects delicate speaker drivers.
For pure acoustic measurement, a sine wave is the gold standard because 100% of its energy sits at the target frequency. In contrast, a square wave at 500 Hz simultaneously radiates significant energy at 1,500 Hz, 2,500 Hz, 3,500 Hz, and beyond.
Acoustic Math: Musical Notes, Wavelength, and Period
Every frequency you dial in corresponds to a physical sound wave traveling through air and a perceived musical pitch on the twelve-tone equal temperament scale.
Musical Note and Cents Deviation
Under the international concert pitch standard (ISO 16), the note A4 is anchored at 440 Hz (MIDI note 69). Any frequency in hertz maps to a continuous MIDI pitch number via a base-2 logarithm:
Rounding to the nearest integer gives the closest semitone, while the fractional remainder multiplied by 100 yields the deviation in cents (where 100 cents equals one semitone). For example, 261.63 Hz resolves to C4 with near-zero cents deviation, whereas 432 Hz sits approximately 32 cents flat of A4.
Wavelength in Air and Wave Period
In dry air at 20 °C, sound propagates at approximately according to the standard speed of sound relation. Wavelength and wave period are inversely proportional to frequency :
Here is measured in meters and in milliseconds. Low bass frequencies have remarkably long wavelengths—a 40 Hz sub-bass wave spans 8.58 meters, which is why bass frequencies interact strongly with bedroom and studio wall dimensions. By comparison, a 10,000 Hz treble wave measures just 3.43 centimeters from crest to crest.
Step-by-Step Walkthrough: Diagnosing a Desk or Speaker Resonance
Suppose you hear an annoying buzz whenever a bass guitar plays certain notes on your studio monitors, and you want to pinpoint the exact resonant frequency in under two minutes.
- Select Sine Wave and Set Safe Volume: Leave the waveform tab on Sine and keep the master volume around 25%.
- Enable Frequency Sweep Mode: Toggle on Frequency Sweep Mode, set the Start Frequency to 40 Hz, the End Frequency to 400 Hz, and the Duration to 10 seconds.
- Run the Sweep and Listen: Click Start Sweep and watch the live frequency readout as the pitch climbs smoothly. The moment your desk lamp, monitor stand, or speaker grille begins to rattle, note the displayed frequency—say, 118 Hz.
- Lock In and Verify: Turn off Sweep Mode, enter 118 Hz directly into the Frequency field, and press Play Tone. The acoustic telemetry readout will show approximately A#2 +23 cents with a wavelength of 2.91 meters, confirming the exact standing wave or mechanical resonance you need to damp.
Understanding Logarithmic Control and Click-Free Playback
Human pitch perception is logarithmic rather than linear: the perceived jump from 50 Hz to 100 Hz (one octave) feels identical in musical distance to the jump from 5,000 Hz to 10,000 Hz (also one octave). If the frequency slider used a linear scale from 20 Hz to 20,000 Hz, the entire bass and midrange spectrum below 2,000 Hz would be cramped into the leftmost 10% of the track. Mapping the slider logarithmically gives you smooth, uniform precision across every octave.
Equally important for ear comfort is transient control. Starting or stopping a digital oscillator instantaneously creates a vertical step in the waveform, which produces a sharp broadband click. By applying a 20–30 millisecond linear gain ramp on every play and stop transition, the signal fades in and out cleanly without speaker pops.