Skip to main content

Tone generator: frequencies, notes and waveforms

By Oakgen Team · Updated

Quick answer

A tone is a single frequency. Concert pitch A4 is 440 Hz (ISO 16), and any MIDI note n has frequency 440 × 2^((n − 69) / 12). People hear roughly 20 Hz to 20,000 Hz.

Equal-tempered notes around concert pitch (A4 = 440 Hz)
NoteMIDI numberFrequency (Hz)
C4 (middle C)60261.63
D462293.66
E464329.63
F465349.23
G467392.00
A469440.00
B471493.88
C572523.25

Choosing a frequency

ISO 16:1975 fixes the standard tuning frequency: the A in the treble stave is 440 Hz, with instruments producing it to within 0.5 Hz. From that anchor, equal temperament puts each semitone a factor of 2^(1/12) apart, which gives the formula f = 440 × 2^((n − 69) / 12) for MIDI note n (note 69 is A4). The chart above is computed with it.

For hearing or speaker checks, remember that the range of human hearing is generally given as 20 Hz to 20,000 Hz (CDC/NIOSH).

Waveform types

The W3C Web Audio API defines four basic oscillator shapes: sine, square, sawtooth and triangle (plus custom periodic waves). The sine wave is the shape to use when you need a single frequency. The API's default oscillator frequency is 440 Hz.

Sample rate limits

Digital audio can only represent frequencies below half the sample rate (the Nyquist frequency). At 44.1 kHz that limit is 22.05 kHz, and at 48 kHz it is 24 kHz. AES5 recommends 48 kHz, with 44.1 kHz allowed for some consumer products, so both cover the whole hearing range.

  • Keep test tones at a moderate volume: loud sound can damage hearing, as the CDC and NIOSH have long warned.
  • Use a sine wave when you need a single frequency.

Do more with Oakgen Agent

The Agent can calculate frequencies, note sequences and sweep plans and give them back as a table or a document. It cannot play a tone live on this page.

Coming soonA playable in-browser tone generator with frequency and waveform controls.

Open in Oakgen Agent

The prompt is filled in for you. Nothing is sent until you press send in the Agent.

FAQ

What frequency is middle C?

Middle C (C4, MIDI 60) is about 261.63 Hz when A4 is 440 Hz.

What is concert pitch?

ISO 16 sets the note A in the treble stave to 440 Hz.

What is the range of human hearing?

Generally 20 Hz to 20,000 Hz, according to CDC/NIOSH.

Can Oakgen Agent play a tone?

Not live. It can calculate frequencies, durations and note sequences for you. A playable in-browser tone generator is not available yet.

Sources