PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

More from Waves & Sound

Other simulators in this category — or see all 35.

View category →
School

Beat Frequency

Two slightly different frequencies creating audible beats.

Launch Simulator
NewSchool

Resonance Tube

Open vs closed pipe harmonics. Hear fₙ and see standing pressure wave.

Launch Simulator
NewSchool

Hearing & Loudness (sketch)

Qualitative threshold vs frequency; compare to equal-loudness ideas.

Launch Simulator
NewUniversity / research

2D Wave Equation (Membrane)

Explicit FDM on a clamped rectangle: Gaussian pulse, circular fronts, edge reflections.

Launch Simulator
NewSchool

Acoustic Levitation (Schematic)

Standing wave cos(kx)cos(ωt); pressure nodes marked; bead cartoon near a node.

Launch Simulator
NewSchool

Acoustic Phased Array (Line)

N sources, spacing d/λ and phase ramp: steer audio/sonar-like beams (array factor sketch).

Launch Simulator
PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Waves & Sound/Sound Wave Visualizer

Sound Wave Visualizer

Sound is a longitudinal pressure wave that propagates through a medium like air. This visualizer captures real-time audio input from a microphone and translates it into two fundamental representations. The first is a waveform plot, showing air pressure variation (amplitude) against time. This graph directly illustrates the principle of superposition, where complex sounds are the sum of simpler sine waves. The second is a frequency spectrum, generated by applying a Fast Fourier Transform (FFT) algorithm to the time-domain signal. The FFT decomposes the complex waveform into its constituent sinusoidal frequencies, plotting the magnitude of each frequency component. This demonstrates Fourier's theorem and allows users to see the harmonic content of a sound. The simulator models core acoustic concepts: frequency (pitch, measured in Hertz), amplitude (loudness, related to sound pressure level), and timbre (the unique quality of a sound determined by its harmonic spectrum). Key simplifications include analyzing the signal in a short time window, which provides a 'snapshot' spectrum, and not modeling the propagation of sound through space or complex phenomena like resonance in rooms. By interacting with it, students learn to connect the physical sensation of sound with its mathematical representation, observe how pure tones produce a single spectral peak while complex sounds (like voice or music) show a broad distribution, and verify the inverse relationship between period and frequency in the waveform view.

Who it's for: High school and introductory undergraduate physics students studying waves, sound, and signal processing, as well as music technology and acoustics enthusiasts.

Key terms

  • Waveform
  • Frequency Spectrum
  • Fast Fourier Transform (FFT)
  • Amplitude
  • Frequency (Hz)
  • Pitch
  • Timbre
  • Sound Pressure

Analyser

11

→ 2048 samples (frequency bins: 1024)

0.65

Uses Web Audio AnalyserNode. Requires HTTPS (or localhost) and microphone permission. Larger FFT → finer frequency bins, slower updates.

Measured values

Sample rate—Hz
Frequency bins—

How it works

Live waveform (pressure vs time) and a bar spectrum from your microphone using the Web Audio API. Speak, clap, or play music — peaks in the spectrum show which frequencies carry energy.

Key equations

Bin i ≈ i · (sampleRate / FFT size) Hz up to Nyquist f_N = sampleRate / 2

Frequently asked questions

Why does my voice show multiple lines in the spectrum, not just one?
The human voice is a complex sound. Your vocal cords produce a fundamental frequency (the pitch you hear), but your vocal tract resonates, amplifying specific integer multiples called harmonics or overtones. The spectrum shows this full set of frequencies. The unique blend of these harmonics is what gives your voice its distinctive timbre, different from a tuning fork's pure tone.
What does the height of the bars in the frequency graph represent?
The height (magnitude) represents the relative strength or loudness of each frequency component present in the sound. A taller bar means that particular sinusoidal frequency is a more dominant part of the overall sound. For a pure tone, only one bar is high. For a noisy sound like clapping, many bars across a wide range will be similarly high.
Why does the waveform sometimes look messy even when I hear a steady note?
A steady musical note is still a complex wave. The waveform you see is the sum of the fundamental frequency and all its harmonics. This superposition creates a repeating but non-sinusoidal pattern. The 'messiness' is the structure of that specific timbre. If you whistle a pure tone, the waveform will appear as a clean, repeating sine wave.
Can this simulator measure the exact loudness in decibels?
Not directly. The amplitude axis is typically in arbitrary relative units. To measure sound pressure level in decibels (dB), the simulator would need calibration with a known reference pressure. It shows relative amplitude changes well: speaking louder makes the waveform taller and the spectrum bars higher, which correlates correctly with an increase in dB.