Advertisement

Author and publisher:

Published: · Last updated:

How the Tone Generator Works

Learn about frequency, waveforms, musical notes, and hearing safety

1. Frequency and Pitch

Frequency is the number of sound wave cycles per second, measured in Hertz (Hz). Higher frequency means higher pitch.

  • 20 Hz — Lowest audible frequency (deep bass rumble)
  • 440 Hz — Standard tuning pitch (A4 note)
  • 1,000 Hz — Mid-range, used in hearing tests
  • 20,000 Hz — Upper limit of human hearing

The frequency slider uses a logarithmic scale because human pitch perception is logarithmic—doubling the frequency raises the pitch by one octave.

Human Hearing Frequency Spectrum
20 Hz to 20,000 Hz — The range of sound frequencies humans can typically hear

2. Waveform Types

Different waveforms produce different timbres (tone colors) at the same frequency:

Waveform Sound Use Case
Sine Pure, smooth tone Hearing tests, tuning, calibration
Square Hollow, buzzy Retro/chiptune sounds, testing harmonics
Triangle Softer than square Bass sounds, gentle tones
Sawtooth Bright, harsh Synth leads, rich harmonic content

Sine waves contain only the fundamental frequency. Square, triangle, and sawtooth waves contain harmonics (multiples of the fundamental) that give them their distinctive sounds.

Waveform Types Comparison
Sine = fundamental only • Square/Triangle/Sawtooth = fundamental + harmonics

3. Musical Notes and Cents

The tool displays the nearest musical note and how many cents the frequency deviates from that note. There are 100 cents per semitone.

  • 0 cents — Exactly in tune
  • ±5 cents — Essentially in tune (listeners distinguish about 5–6 cents)
  • ±50 cents — Halfway to the next semitone

Cents vs Hz: The Relationship

Cents and Hz have a logarithmic relationship, not a linear one. This means the same number of cents represents different Hz intervals depending on the frequency:

  • At 440 Hz (A4): 1 cent ≈ 0.25 Hz
  • At 880 Hz (A5): 1 cent ≈ 0.51 Hz
  • At 220 Hz (A3): 1 cent ≈ 0.13 Hz

This is because pitch perception is logarithmic—doubling the frequency always raises the pitch by one octave (1200 cents), regardless of the starting frequency.

Formula: cents = 1200 × log2(f2 / f1)
Example: From 440 Hz to 445 Hz = 1200 × log₂(445/440) ≈ +20 cents

The A4 reference setting lets you choose between 440 Hz (standard), 432 Hz (alternative tuning), or 442 Hz (orchestral tuning). All cent calculations are relative to your chosen reference.

Musical Cents Scale
100 cents = 1 semitone • Used to measure pitch deviation from perfect tuning

4. Volume and Hearing Safety

Protect your hearing: Always start with low volume. Prolonged exposure to loud tones, especially at high frequencies, can cause hearing damage or tinnitus.

The volume control defaults to 20% for safety. If you can't hear the tone, check your device volume first before increasing the tool's volume slider.

Safe Volume Levels
Protect your hearing: start at a low volume and raise it gradually

5. Stereo Pan

The pan control positions the sound in the stereo field:

  • L (Left) — Sound plays only in the left speaker/earphone
  • C (Center) — Equal volume in both speakers
  • R (Right) — Sound plays only in the right speaker/earphone

Use stereo panning to test if both speakers/earphones are working correctly.

6. Why Can't I Hear Certain Frequencies?

Several factors can affect what you hear:

  • Phone/laptop speakers — Small speakers may not reproduce low frequencies. Use headphones for low frequencies.
  • Age — Hearing at high frequencies declines with age; in adults the threshold rises sharply at about 15 kHz.
  • Volume too low — The ear is most sensitive between 2 and 5 kHz; very low and very high tones need more level to sound equally loud.
  • Browser restrictions — Browsers start audio only after a user interaction (tap or click) on the page.

7. Sample Rate

The sample rate determines audio quality and the maximum frequency that can be accurately reproduced:

  • 44.1 kHz — CD audio, up to 22.05 kHz
  • 48 kHz — Professional audio and video, up to 24 kHz
  • 96 kHz — High-resolution audio, up to 48 kHz
  • 192 kHz — High-resolution audio, up to 96 kHz

The highest frequency a sample rate can represent is half the rate (the Nyquist limit). Every rate offered here represents frequencies above 20 kHz, the upper limit of human hearing.

8. URL Parameters

The tool state is saved in the URL, making it easy to bookmark or share specific settings:

  • freq — Frequency in Hz (20–20,000)
  • wave — Waveform type (sine, square, triangle, sawtooth)
  • vol — Volume (0–1)
  • pan — Stereo pan (-1 to 1)
  • a4 — A4 reference frequency (432, 440, 442)
  • viz — Visualizer on/off (0, 1)

Example: #freq=440&wave=sine&vol=0.2

9. Advanced Modes

Beyond basic tone generation, the tool offers several advanced modes for specialized audio work:

Advanced Modes
Advanced Modes Use Case
Frequency Sweep Glide through a frequency range (linear or logarithmic) for speaker testing and hearing assessment.
Noise Generators White, pink, brown, blue, violet and grey noise for sound masking and speaker calibration.
Modulation (AM/FM) Add tremolo (AM) or vibrato (FM) effects by modulating amplitude or frequency with an LFO.
Burst Mode Generate repeating tone bursts with adjustable duration, interval, and envelope shape.
Dual Oscillator Two independent oscillators for beats, binaural beats (each tone in one ear), and interference patterns.
Filter Mode Shape noise with lowpass, highpass, bandpass or notch filters, with adjustable cutoff and quality factor (Q).
Pulse Mode Create rhythmic pulse trains with variable rate, duty cycle, and window functions.

Each mode has a dedicated guide with detailed explanations and use cases.

View Advanced Mode Guides →

Sources & Further Reading

Ready to Generate Tones?

Create precise audio tones with adjustable frequency, waveform, volume, and stereo pan.

Open Tone Generator
Advertisement