Elysia Tools

Navigation

Physics

Beat Frequency Simulation with Audio and Waveform Envelopes

Adjust two tones, listen for beats, and compare the summed waveform, amplitude envelope, and harmonics.

Open static visualization

Tool usage guide

Learn when to use this tool, what it supports, and how real users apply it.

Overview

Two sustained tones at nearly the same pitch can produce a much slower pulse. The sliders set the two frequencies while the plots show how their sum and amplitude envelope evolve in time.

Set up a pair of tones

Select Sine and enter the two frequencies with the sliders or a preset. Use Play to hear the selected pair. The line on the envelope follows the audio clock and restarts from the initial phase when you change a tone or waveform.

Set up a pair of tones
Control or viewRange or windowWhat it shows
Tone one and tone two200–800 Hz in 1 Hz stepsFundamental frequencies and nearest notes
Volume0–100%Gain applied to the shared output
Time-domain waveforms20 msEach tone and the pointwise sum
Envelope chartWindow scales with ΔfSpacing of the amplitude peaks

Read the signed factor and the amplitude envelope

For equal-amplitude sine waves that start together, the sum is y₁ + y₂ = [2A cos(πΔf t)] sin(2πf̄ t), with Δf = |f₂ − f₁| and f̄ = (f₁ + f₂)/2. The dashed line is the signed factor. The solid line E(t) = 2A |cos(πΔf t)| returns to its peak every 1/Δf when Δf is positive.

Triangle and square share the same finite Fourier series in the sound and the time plots. Each odd harmonic pair has its own envelope at nΔf. The upper chart shows the fundamental and third-harmonic envelopes separately in these modes.

How it works

  1. 1Use Moderate and Sine to start with 440 Hz and 444 Hz. Check the frequency difference, mean and peak spacing above the graph.
  2. 2Compare the first two solid peaks and check the sign of the dashed factor at each one. Press Play to connect the plotted pattern with the pulses you hear.
  3. 3Try Unison, then return to Moderate and switch between Square and Triangle. Check the third-harmonic readouts and the sum trace.

Edge cases & common failures

  • Wide separations

    Δf is an arithmetic frequency difference across the slider range. The audible result can be roughness or two distinct pitches, depending on the frequencies and listening conditions.

  • Reading the plots as levels

    The vertical scales show normalized model amplitudes before volume adjustment. They describe the synthesized signal at its source.

Examples

1. First minimum in the default pair

How to use

Choose Moderate and Sine. Follow the solid curve from the left edge to its first contact with the zero line.

Outcome

The difference is 4 Hz, the peak spacing is 0.25 s and the first minimum is at 0.125 s.

2. Tuning the tones to unison

How to use

Start at Slow and move the second slider closer to 440 Hz, then select Unison.

Outcome

The peaks spread out as the gap narrows. At 440 Hz for both tones the envelope is flat, Δf is 0 Hz and the interval shows a dash.

3. Compare harmonic beating

How to use

Restore Moderate. Select Square and then Triangle, keeping both frequencies fixed.

Outcome

The third-harmonic difference is 12 Hz in both cases. Its amplitude relative to the fundamental goes from 1/3 to 1/9.

FAQ

Why is the mean frequency shown?

f̄ describes the rapid oscillation in the equal-amplitude sine identity. In a steady linear sum, the spectral components are the original frequencies f₁ and f₂.

Can the beat rate identify the higher tone?

Use the two slider labels to identify the higher tone. The absolute difference gives the same value in either order.

At a Glance

Interactive Preview

Beat Frequency Simulation with Audio and Waveform Envelopes
Static preview of this visualization. Use the interactive panel above to explore it.

Verified Results

Typical Experiments and Results

Every parameter set and result below is a fixed output of this page's built-in model (each asserted before delivery) and reproduces directly: set the Parameters column in the interactive panel.

ScenarioParametersResult
Default pairSine · f₁ = 440 Hz, f₂ = 444 HzΔf = 4 Hz, f̄ = 442 Hz, T = 0.25 s. The first envelope minimum is at t = 0.125 s.
The sign of the modulationSine · f₁ = 440 Hz, f₂ = 444 Hz · t = 0, 0.25, 0.50 sThe signed factor takes values +1, −1, +1. The envelope is 1 at all three instants.
Slow to fast beatsSine · f₁ = 440 Hz, f₂ = 442 → 448 HzΔf rises from 2 Hz to 8 Hz and T falls from 0.50 s to 0.125 s.
UnisonSine · f₁ = f₂ = 440 HzΔf = 0 Hz with constant E(t) = 2A. Peak spacing is undefined.
Compare third harmonicsSquare, then triangle · f₁ = 440 Hz, f₂ = 444 HzThe pair sits at 1320 Hz and 1332 Hz, giving Δf₃ = 12 Hz. The amplitude ratio to the fundamental is 1/3 for square and 1/9 for triangle.
Swap widely spaced tonesSine · set 200 Hz and 800 Hz, then swap themBoth orders give Δf = 600 Hz, f̄ = 500 Hz and T ≈ 0.001667 s.

Sources

References

Papers and datasets underlying this visualization - every formula, algorithm, and data anchor on the page traces back to the sources below.

  1. [1]

    Feynman R. P., Leighton R. B., Sands M. (1963). Beats. The Feynman Lectures on Physics, Vol. I, Ch. 48.

    View source→ Eq. 48.6; signed factor at Δf/2, envelope peak spacing 1/Δf
  2. [2]

    Moebs W., Ling S. J., Sanny J. (2016). 17.6 Beats. University Physics Volume 1, OpenStax.

    View source→ f_beat = |f₂ − f₁|; equal-amplitude interference and tuning
  3. [3]

    Puckette M. (2006). Square and symmetric triangle waves. The Theory and Technique of Electronic Music, author's online edition.

    View source→ odd harmonics; amplitude decay 1/n for square, 1/n² for triangle
  4. [4]

    Plomp R., Levelt W. J. M. (1965). Tonal Consonance and Critical Bandwidth. The Journal of the Acoustical Society of America 38(4), 548–560.

    View source→ simple-tone interval judgments as a function of mean frequency and separation
  5. [5]

    Feynman R. P., Leighton R. B., Sands M. (1963). Harmonics. The Feynman Lectures on Physics, Vol. I, Ch. 50.

    View source→ §50-6; nonlinear generation of sum and difference frequencies
  6. [6]

    W3C Audio Working Group (2021). Web Audio API. W3C Recommendation.

    View source→ §1.28; sine coefficients in PeriodicWave with normalization disabled

Related

Related tools and workflows

Math & Numbers

Luminous Intensity Converter (cd / mcd / candlepower)

Convert luminous intensity between candela (cd, SI base, = 1/683 W/sr at 540 THz), millicandela (1 = 0.001 cd), and candlepower (1 = 0.981 cd, obsolete standard candle). Converts via candela to the target unit and lists the equivalent value in all three units for reference. Reference values: indicator LED ≈ 5–20 mcd, flashlight ≈ 100–1000 cd, car headlight high beam ≈ 75000 cd.

Security

Secure Random Generator

Generate cryptographically secure random key material driven by entropy budget — request N bits of entropy, get hex/base64/base64url output. Also supports custom-alphabet strings via crypto.randomInt (rejection-sampled, no modulo bias). Use this instead of Math.random()-based tools for any secret/key/token.

Math & Numbers

Standard Deviation Calculator

Calculate sample and population standard deviation, variance, coefficient of variation, and sigma intervals

Math & Numbers

Significant Figures Sandbox

Practice significant-figure rules with step-by-step feedback: count sig figs, round to N sig figs, convert to scientific notation, and propagate through +/−/×/÷.

Next

More visualizations nearby

Cookie settings

Essential cookies keep the site running. Analytics and personalized ads are optional.

Cookie policy