Uploaded September 2026 | Updated November 2024, 2 years ago
Every time you take an FFT of real data, you're secretly multiplying by a window — and that choice decides what your spectrum can and can't show. This 4K animation builds the whole idea from scratch: why a hard cut in time smears energy across frequency (spectral leakage), how tapering the edges fixes it, and the price you pay for that fix.
We compare the classic windows side by side — Rectangular, Hann, Hamming, Blackman-Harris — in both the time domain and the frequency domain, then put them to a real test: two close strong tones plus one weak tone buried 55 dB down. No single fixed window can show all three… until we reach the Kaiser window, whose one tunable knob (β) slides continuously across the entire trade-off and, tuned to β≈6, resolves the close pair AND reveals the weak tone at the same time.
The core lesson in one line: **a narrow main lobe buys resolution, low side-lobes buy dynamic range — and you can't max both at once.**
⏱ Chapters
0:00 Why windows exist: spectral leakage
0:16 Windowing a signal & the frequency showdown
0:26 The real test: two close tones + one weak tone
0:36 Kaiser — one knob for the whole trade-off
📊 Quick reference (64-point windows)
• Rectangular — peak side-lobe −13 dB, main lobe 2 bins — best resolution, worst leakage
• Hann — −31 dB, 4 bins — smooth all-rounder
• Hamming — −43 dB, 4 bins — lowest first side-lobe
• Blackman-Harris — −92 dB, 8 bins — huge dynamic range
• Kaiser(β) — tunable: β=4 ≈ −31 dB/3.3 bins, β=10 ≈ −74 dB/6.8 bins — one knob dials the whole curve
Made with pure NumPy / SciPy / Matplotlib. Kaiser windows via scipy.signal.windows.kaiser; all frequency responses are zero-padded DTFTs normalized to 0 dB.
If this helped the concept click, subscribe for more signal-processing and electromagnetics animations.
#DSP #SignalProcessing #FFT #WindowFunction #SpectralLeakage #KaiserWindow #Engineering
Every time you take an FFT of real data, you're secretly multiplying by a window — and that choice decides what your spectrum can and can't show. This 4K animation builds the whole idea from scratch: why a hard cut in time smears energy across frequency (spectral leakage), how tapering the edges fixes it, and the price you pay for that fix.
We compare the classic windows side by side — Rectangular, Hann, Hamming, Blackman-Harris — in both the time domain and the frequency domain, then put them to a real test: two close strong tones plus one weak tone buried 55 dB down. No single fixed window can show all three… until we reach the Kaiser window, whose one tunable knob (β) slides continuously across the entire trade-off and, tuned to β≈6, resolves the close pair AND reveals the weak tone at the same time.
The core lesson in one line: **a narrow main lobe buys resolution, low side-lobes buy dynamic range — and you can't max both at once.**
⏱ Chapters
0:00 Why windows exist: spectral leakage
0:16 Windowing a signal & the frequency showdown
0:26 The real test: two close tones + one weak tone
0:36 Kaiser — one knob for the whole trade-off
📊 Quick reference (64-point windows)
• Rectangular — peak side-lobe −13 dB, main lobe 2 bins — best resolution, worst leakage
• Hann — −31 dB, 4 bins — smooth all-rounder
• Hamming — −43 dB, 4 bins — lowest first side-lobe
• Blackman-Harris — −92 dB, 8 bins — huge dynamic range
• Kaiser(β) — tunable: β=4 ≈ −31 dB/3.3 bins, β=10 ≈ −74 dB/6.8 bins — one knob dials the whole curve
Made with pure NumPy / SciPy / Matplotlib. Kaiser windows via scipy.signal.windows.kaiser; all frequency responses are zero-padded DTFTs normalized to 0 dB.
If this helped the concept click, subscribe for more signal-processing and electromagnetics animations.
#DSP #SignalProcessing #FFT #WindowFunction #SpectralLeakage #KaiserWindow #Engineering










