Lesson 7 of 15
Beat Frequency
Acoustic Beats
When two tones of slightly different frequencies and are played together, they alternate between constructive and destructive interference. The result is a pulsing "wah-wah" — acoustic beats.
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 = ) 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.
| (Hz) | (Hz) | (Hz) |
|---|---|---|
| 440 | 441 | 1.0000 |
| 440 | 443 | 3.0000 |
| 880 | 882 | 2.0000 |
| 100 | 104 | 4.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.