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

More from Math Visualization

Other simulators in this category — or see all 78.

View category →
NewUniversity / research

Morlet Wavelet (CWT)

Continuous wavelet transform with the complex Morlet wavelet: scaleogram |W(s,t)|, log-frequency axis, cone of influence, adjustable ω₀ and scale range.

Launch Simulator
NewUniversity / research

Butterworth / Chebyshev IIR

Design Butterworth, Chebyshev I/II LP/HP filters: |H(f)|, phase, impulse response, and z-plane pole–zero plot via bilinear transform.

Launch Simulator
NewUniversity / research

Kalman Filter (1-D)

Recursive optimal estimation: noisy measurements, hidden truth, predict + update with Q and R; random-walk or constant-velocity model with ±2σ band and innovations.

Launch Simulator
NewUniversity / research

Lattice Boltzmann D2Q9 Flow

Interactive D2Q9 BGK solver: lid-driven cavity or flow past a cylinder, vorticity colors, Reynolds-number control, and bounce-back walls.

Launch Simulator
NewUniversity / research

Finite-Volume Advection-Diffusion 2D

Conservative scalar transport on a 2D grid: face fluxes, upwind vs central interpolation, Peclet number, CFL, and numerical diffusion.

Launch Simulator
NewUniversity / research

Conjugate Gradient Solver

SPD system Ax=b as quadratic minimization: contour geometry, CG vs steepest descent path, residual norm, and condition number.

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/Math Visualization/STFT & Spectrogram

STFT & Spectrogram

This interactive simulator explores STFT & Spectrogram in Math Visualization. Slide a windowed FFT across the signal: chirps, two-tones, bursts. Tune window M, hop, type — see the time–frequency trade-off live. Use the controls to change the scenario; watch the visualization and any graphs or readouts to connect the model with lectures, labs, and homework.

Who it's for: For learners comfortable with heavier math or second-level detail. Typical context: Math Visualization.

Key terms

  • stft
  • spectrogram
  • stft spectrogram
  • math
  • visualization

Signal & STFT

Signal preset

8
0.25
60dB
2.048s

Shortcuts

  • •Drag on the spectrogram to move the time cursor

Measured values

time resolution Δt64.00ms
freq resolution Δf3.91Hz
overlap75%
frames61
peak f at cursor226.6Hz

How it works

Short-Time Fourier Transform: slide a window w[n] of length M across the signal in steps of hop, FFT each frame, plot |X(t,f)| in dB as a heatmap. There is a hard time–frequency trade-off: large M sharpens Δf = f_s/M but blurs Δt ≈ M/f_s; small M does the opposite. Try the up-chirp with M = 32 vs M = 1024, or compare windows on the two-tone preset to see leakage on a rectangular window vs Hann/Blackman side-lobes.

Key equations

X(m, k) = Σₙ x[n + m·H] · w[n] · e⁻²πⁱᵏⁿᐟᴹ
Δt = H/f_s, Δf = f_s/M (Heisenberg Δt·Δf ≥ 1/(4π))