Acoustic Beats Simulator — Two-Tone Interference and Beat Frequency
Bring the two tones closer to slow the beats.
Preparing controls. If it does not work, you can still read the formulas and calculation examples below. Initial example: 440 Hz and 444 Hz → difference 4 Hz, period 250 ms.
01 Shift the second tone
02 Compare the pulse interval
Frequency difference |f₁ − f₂|4 Hz
Peak interval250 ms
4 intensity cycles per second. Bringing the two tones closer lengthens the interval.
Slowly varying envelope
1 s window
● Amplitude envelope ±E(t) · Not the waveform of the sound itself
Zooming in shows a signed wave
10 ms window
━ Combined wave y₁+y₂ ┄ ±E(t)
Time E(t) Δf × t
Up and down indicate increases and decreases in sound pressure. A small envelope does not mean energy vanishes.
Frequency components and detailed results
Mean frequency
442 Hz
Maximum envelope amplitude
1.00
Minimum envelope amplitude
0.00
The mean frequency is not an additional frequency component. Lines show relative amplitude (analytical values, not FFT). At the same frequency, in-phase amplitudes are added.
Playback and detailed settings
Usage and calculation examples
Adjust tone 2 and compare the envelope peaks. “Set 1 Hz apart” gives one pulse per second; “Match tones” removes the periodic variation. You can compare without animation or audio.
Example: 440 Hz and 444 Hz differ by 4 Hz, period 1/4 s = 250 ms. 440 Hz and 441 Hz differ by 1 Hz, period 1 s. If A₁=A₂=0.50, the envelope varies between 0 and 1.00 at different frequencies.
In tuning, slower beats between two close tones can be a clue that their frequencies are approaching. The difference alone does not determine which is higher.
Mechanism and scope
Two ideal cosine waves at the same observation point are added linearly. Time t is in seconds, frequency f in Hz, amplitude A is relative.
When both amplitudes are positive and frequencies differ, the maximum of E is A₁+A₂ and the minimum is |A₁−A₂|. At the same frequency, E=A₁+A₂ is constant. If either is 0, no periodic intensity variation occurs.
Slow intensity variation at close frequencies is "beating." The difference formula can be calculated for distant tones too, but that rate is not necessarily audible as such. An octave is not treated as a slow beat.
Room reflections, distance, hearing sensitivity, and actual sound pressure levels are outside the model. The envelope is neither a volume meter nor an energy meter. Digital audio output amplitude is limited to a maximum of 0.12, but device and speaker volume cannot be guaranteed.
FAQ
Why does frequency difference determine beat rate?
For equal amplitudes, the product form is 2A cos(π(f₁−f₂)t) cos(π(f₁+f₂)t). The intensity variation is determined by the absolute value of the first factor; even when it is negative, the amplitude is large, so the peak spacing is 1/|f₁−f₂|.
Does it become completely silent at the minima?
For equal amplitudes, the ideal envelope minimum is 0. With unequal amplitudes, the minimum is |A₁−A₂| and not 0. It also does not mean the sound or energy in the entire actual space vanishes.
Beyond tuning?
It can also be used to consider intensity variation of closely spaced vibration components in rotating machinery. Radio frequency conversion requires mixer nonlinearity; this linear sum alone does not create new spectral lines at the difference frequency.
1 / 2 · Try it
Move "Fine adjust" left and right. How does the spacing of the peaks change?
Add two sine tones whose frequencies f1 and f2 differ slightly and a slow loudness pulsation appears at |f1 - f2| Hz, the classic beat phenomenon. This tool also exposes the amplitudes A1, A2 and shows the composite waveform, spectrum, beat frequency, average frequency, beat period and maximum composite amplitude in real time. Use it to study piano tuning, heterodyne receivers and close natural modes in structural vibrations.
Background, applications and FAQ
Quick answer The beat frequency of two tones is f_beat = |f₁ − f₂| with period T_b = 1/f_beat. For equal amplitudes the sum is y(t) = 2A·cos(2π·f_avg·t)·cos(2π·f_b·t), where f_avg = (f₁+f₂)/2. Example: f₁ = 440 Hz and f₂ = 444 Hz beat at 4.0 Hz (period 250 ms).
What is the Acoustic Beats Simulator?
🙋
With the defaults f1 = 440 Hz, f2 = 444 Hz and amplitudes 0.5 each I get a beat frequency of 4 Hz and an average frequency of 442 Hz. What does that actually sound like?
🎓
Nice catch. Your ear hears one tone roughly at 442 Hz, slightly above A4, while its loudness pulses four times per second in a steady wow-wow-wow-wow pattern. That is the beat. Look at the waveform card and you can see two layers, the fast inner oscillation at about 442 Hz and a slow outer envelope that wraps the whole signal at 4 Hz. One envelope cycle equals one beat, which is why the beat period is 250 ms. Slide f2 toward 440 and the beat slows down until it disappears completely.
🙋
The spectrum only shows two spikes at f1 and f2. Why do I hear a 4 Hz beat that is not even a peak in the spectrum?
🎓
Sharp question. Physically the signal contains only 440 and 444 Hz, so there really is no spectral line at 4 Hz. The cochlea, however, responds non-linearly to instantaneous pressure, and that picks up the slow amplitude modulation of the envelope as a perceived rhythm. Mathematically the sum-to-product identity rewrites the two cosines as a fast carrier multiplied by a slow envelope; the linear superposition still has only two frequencies, but the ear perceives a single pitch with a slow loudness wobble.
🙋
When I drop A2 from 0.5 to 0.2 the beat becomes shallower and never goes silent. What is going on?
🎓
The envelope minimum is the explanation. With equal amplitudes the beat troughs reach exactly zero (perfect destructive interference, A_min = 0). When A1 differs from A2, the minimum is fixed at |A1 - A2|, so even at the trough some signal remains. With A1 = 0.5 and A2 = 0.2 the minimum is 0.3, and the modulation index m = 2*min(A1, A2)/(A1 + A2) drops to 0.57. Real instruments and loudspeakers almost never produce equal amplitudes, which is why beats in the wild usually sound like a vibrato wobble rather than a clean pulse.
🙋
I have heard piano tuners say "turn the peg until the beats vanish". Can I reproduce that with the tool?
🎓
Yes, exactly. Set f1 = 440 as the reference and treat f2 as the string. As you walk f2 from 444 to 442 to 441 to 440, the beat frequency drops to 2, then 1, then 0 Hz, while the beat period grows to 500, 1000 and finally infinity ms. The string is in tune the moment the beat period becomes infinite. Professional tuners can stretch beats well below half a beat per second, and in this tool you will see the envelope flatten into a pure straight line the instant f2 hits 440.
Physical Model and Key Equations
The sum of two cosines can be split into a fast carrier and a slow envelope by the sum-to-product identity.
where $f_{\mathrm{avg}}=(f_{1}+f_{2})/2$ is the fast inner pitch heard by the ear and $f_{b}=|f_{1}-f_{2}|/2$ is the half-difference inside the cosine envelope. Because the perceived loudness modulation tracks the absolute value of the envelope, the audible beat frequency is $f_{\mathrm{beat}}=|f_{1}-f_{2}|$ Hz and the beat period is $T_{b}=1/|f_{1}-f_{2}|$. The constructive maximum amplitude is $A_{\max}=A_{1}+A_{2}$ and the destructive minimum is $A_{\min}=|A_{1}-A_{2}|$.
For unequal amplitudes the envelope is $\sqrt{A_{1}^{2}+A_{2}^{2}+2 A_{1} A_{2}\cos(2\pi(f_{1}-f_{2})t)}$. It oscillates between the maximum $A_{1}+A_{2}$ and the minimum $|A_{1}-A_{2}|$ at the beat period. The waveform card draws this generalised envelope as the orange dashed curve.
Real-World Applications
Instrument tuning: Piano tuners and guitarists adjust strings until the beats stop. They sound a 440 Hz reference together with the string and count the beats per second; one beat per second between two notes implies a 1 Hz mismatch. This basic technique lets a tuner reach 0.5 Hz accuracy without absolute pitch. Set f1 = 440, f2 = 441 in the tool and the beat period reads 1000 ms, exactly the case a professional tuner describes as "one beat per second".
Heterodyne receivers (radio, radar, GPS): A nonlinear mixer or multiplier generates sum and difference frequencies. For example, inputs at 1 GHz and 999.9 MHz can produce a 100 kHz intermediate frequency (IF). This tool adds two tones linearly: 440 Hz and 400 Hz give a 40 Hz envelope rhythm, but no new spectral line at 40 Hz. Mixer frequency conversion is not simulated here.
Mechanical vibration diagnosis: Twin-shaft fans, twin-engine aircraft and clusters of motors rarely run at exactly the same speed, so the difference in shaft frequencies appears as a beat in the radiated noise. Two motors at 50 Hz and 50.5 Hz on a single chassis create a 0.5 Hz wobble that passengers find unpleasant. Designers solve it with synchronised speed control or active noise cancellation, and CAE engineers predict it by resolving the two close peaks in an FFT of the simulated time response.
Acoustics teaching and psychoacoustics: Beats are the textbook example of how the ear extracts a frequency that is not actually present in the spectrum. By exposing the waveform, the envelope and the spectrum in parallel, this tool lets students explore the question "where does the third frequency come from" as the joint outcome of the sum-to-product identity and cochlear non-linearity, an essential first step into psychoacoustics and music theory.
Common Misconceptions and Caveats
The most common confusion is to identify the beat frequency with $|f_{1}-f_{2}|/2$. The cosine envelope inside the sum-to-product identity does oscillate at that half-difference, but the ear perceives loudness modulation at the rate of $|\cos|$, which is twice as fast. The audible beat frequency is therefore $|f_{1}-f_{2}|$, exactly the value the tool reports as "Beat frequency". Keep this distinction between the mathematical envelope and the perceived rhythm in mind when reading textbooks.
A second pitfall is assuming beats always sound the same. Two close tones can produce a slow fluctuation in loudness; as their separation grows, they may sound rough. Perception depends on the tones, their amplitudes, listening level, listener and environment, so a fixed frequency difference does not guarantee that two tones will be heard separately. For example, f₁=440 Hz and f₂=470 Hz give an envelope variation of 30 Hz, but the subjective sound depends on listening conditions.
A third surprise is that the beat speed does not depend on amplitude at all. The beat period $T_{b}=1/|f_{1}-f_{2}|$ is set by the frequency difference alone; the amplitude ratio only changes the depth (modulation index). Drop A2 from 0.5 to 0.1 in the tool and the beat period stays at 250 ms, while the envelope range shrinks to roughly [0.4, 0.6]. So if a tuner thinks the beats have disappeared because the string is quiet, they have actually only become shallower.
Frequently Asked Questions
For two sine tones with equal amplitudes the sum becomes y(t) = 2A * cos(2*pi*f_avg*t) * cos(2*pi*f_b*t) by the sum-to-product identity, where f_avg = (f1 + f2)/2 and f_b = |f1 - f2|/2. The fast inner cosine is heard as the average pitch, while the slow outer cosine is the amplitude envelope. The ear perceives loudness modulation at the period of the absolute value of the envelope, giving an audible beat frequency of |f1 - f2| Hz. With the defaults f1 = 440 Hz, f2 = 444 Hz the tool reports a beat frequency of 4.0 Hz and a beat period of 250 ms.
Two tones at exactly the same frequency overlap perfectly and the beats vanish (f_b = 0, the envelope is flat). Any small mismatch produces a beat at |f1 - f2| Hz that is easy to count with a clock or a metronome. A reference tone at 440 Hz against a string with two beats per second tells the tuner that the string is at 442 Hz or 438 Hz; halve that to one beat every two seconds and the tuning is essentially correct. The ear is poor at absolute pitch but excellent at counting slow beats, which is why every pre-electronic tuner used this method. Move f2 toward 440 Hz in the tool and the beat period grows to 1, 5, 10 seconds and finally to infinity when the two tones lock.
With equal amplitudes the envelope minimum is zero and the beat goes silent at every trough (perfect destructive interference). When A1 differs from A2 the minimum is |A1 - A2|, so the trough never reaches silence and the beat depth (modulation index) is shallower. The maximum is always A1 + A2, the minimum is |A1 - A2|, and the modulation index can be written as 2*min(A1, A2)/(A1 + A2). Drop A2 from 0.50 to 0.20 in the tool and the maximum becomes 0.70 while the minimum is 0.30, a clearly shallower beat. Real instruments and loudspeakers rarely produce equal amplitudes, so the asymmetric beat is heard as a vibrato-like wobble.
Problem cases: twin-engine aircraft, paired pumps and multi-fan installations whose shafts run at slightly different speeds generate a low-frequency pressure pulsation (a few Hz) that passengers and operators perceive as an annoying wobble; designers fight it with synchronised speed control or active noise cancellation. Useful cases: heterodyne receivers in radio, radar and GPS deliberately mix a high-frequency input with a local oscillator to produce a much lower intermediate-frequency beat that is easier to amplify and demodulate. In CAE, two close natural modes of a structure show up as beats in the time-domain response, so an FFT that resolves the two peaks predicts where beats can occur. This tool gives the underlying physics in an interactive form.
How to Use
Set frequency f₁ (Hz) using the first slider; typical range 440–880 Hz for audible tones.
Set frequency f₂ (Hz) using the second slider; detuning by 5–10 Hz creates perceptible beats in speech and music synthesis.
Adjust amplitude A₁ and A₂ (arbitrary units, 0–1) to control individual tone levels in the composite waveform.
Observe real-time waveform display; beat frequency equals |f₁−f₂|, and beat period = 1 / beat frequency.
Worked Example
Two piano strings tuned nominally to A₄: f₁ = 440 Hz, f₂ = 445 Hz, both A₁ = A₂ = 0.8 units. Beat frequency = |440−445| = 5 Hz; beat period = 0.2 seconds; average frequency = 442.5 Hz. The composite waveform exhibits amplitude modulation with envelope peaks every 0.2 s, creating audible wobble used in tuning procedures. Maximum composite amplitude ≈ 1.6 units (A₁ + A₂).
Practical Notes
The frequency controls use 1 Hz steps, so differences below 1 Hz cannot be set. Actual instrument tuning also depends on harmonics and temperament.
For unequal amplitudes, the envelope varies between |A₁−A₂| and A₁+A₂. With A₁=0.9 and A₂=0.2, its minimum is 0.7.
A slow beat is a periodic change in the strength of two audible tones; a beat rate below 20 Hz does not by itself make the sound infrasound. Perception depends on the tones and listening conditions.
The spectrum of the linearly added signals contains the input frequencies f₁ and f₂. Their difference describes the envelope modulation rate, rather than a separate spectral tone in this model.
🎬 Watch it in motion
Beats | two close tones make the volume pulse #Shorts
Coupled Oscillators | energy ping-pongs between two masses #Shorts