Lesson 7 of 15

Beat Frequency

Acoustic Beats

When two tones of slightly different frequencies f1f_1 and f2f_2 are played together, they alternate between constructive and destructive interference. The result is a pulsing "wah-wah" — acoustic beats.

fextbeat=f1f2f_ ext{beat} = |f_1 - f_2|

The beat frequency equals the absolute difference of the two source frequencies.

Why It Happens

The two waves periodically come in and out of phase. When aligned (phase difference = 0) their amplitudes add; half a beat period later (phase = pipi) they cancel.

Used for Tuning

Musicians tune by beating: play two strings and listen for the pulsing. Slow the beating until it disappears — the strings are in unison.

f1f_1 (Hz)f2f_2 (Hz)fextbeatf_ ext{beat} (Hz)
4404411.0000
4404433.0000
8808822.0000
1001044.0000

Your Task

Implement beatFrequency(f1, f2) returning the beat frequency.

Run the code and hear the beats — two nearly-identical tones pulsing together.

Web Audio API loading...
Loading...
Click "Run" to execute your code.