Home > On-Demand Archives > Talks >

Don't Let the FFT Fool You - Avoiding its pitfalls for a more accurate frequency analysis

Mark Newman - Watch Now - DSP Online Conference 2024 - Duration: 01:01:07

Don't Let the FFT Fool You - Avoiding its pitfalls for a more accurate frequency analysis
Mark Newman

The Fast Fourier Transform is a cornerstone of audio processing providing a representation of a time domain signal in the frequency domain. The ability to manipulate signals in the frequency domain gives us the power to isolate, enhance, and sculpt specific frequency components, redefining the very essence of sound. However, for this to work, an accurate frequency domain representation is essential.

As DSP enthusiasts, we tend to treat the FFT as a magic bullet solution, a library function that is so commonplace, we can implement it with an “include” statement and a few lines of code. But what do we really know about its inner workings, its nuances and most importantly, its limitations? Can we be confident that the frequencies reported by the FFT are truly present in the original signal, or is our ignorance of how it works pulling the wool over our eyes and causing unwanted artefacts in our output?

In this presentation we’re going to lift the hood on the FFT and discover:

  1. How the Fourier Transform works
  2. Why the FFT is only an approximation (albeit a good one) of the true Fourier Transform
  3. What the limitations of the FFT’s approximation are
  4. How to mitigate these limitations by windowing your signal before it enters the FFT
  5. How to navigate the trade-off between processing speed and frequency resolution in the FFT

This presentation aims to equip you with a practical understanding of the FFT, empowering you to create higher-quality and more precise DSP applications.

This guide was created with the help of AI, based on the presentation's transcript. Its goal is to give you useful context and background so you can get the most out of the session.

What this presentation is about and why it matters

This talk, "Don't Let the FFT Fool You," lifts the hood on a tool almost every engineer uses: the Fast Fourier Transform (FFT). The FFT turns time-domain samples into a frequency-domain picture, but that picture is an approximation shaped by sampling, finite measurement windows, and choices you make in software. If you treat the FFT as a magic black box, you can be misled by artifacts such as spectral leakage, frequency smearing, and hidden negative‑frequency energy that change the interpretation of real signals.

Why it matters: in audio, communications, biomedical sensing and many other fields, decisions—filter design, feature extraction, diagnosis, or creative processing—depend on accurate frequency information. Misreading an FFT can lead to bad filters, incorrect measurements, overlooked tones, or audible artifacts. This presentation explains the assumptions behind practical Fourier analysis and gives the tools to pick sampling rates, FFT sizes, and windows that match your needs.

Who will benefit the most from this presentation

  • Audio engineers and hobbyists who inspect spectra and build real‑time tools (e.g., equalizers, analyzers).
  • Signal processing students and engineers who want an intuitive, practical understanding of the FFT and its limits.
  • Embedded and real‑time developers constrained by CPU, memory, or latency who must choose FFT size and overlap.
  • Anyone doing spectral measurements (vibration, radar, biomedical) who needs to interpret peaks and sidebands reliably.

What you need to know

This talk assumes a basic familiarity with sampled signals and sinusoids. Key background ideas that help you get more from the talk:

  • Fourier series vs Fourier transform: A Fourier series decomposes a periodic signal into integer‑spaced sinusoids. The Fourier transform generalizes this to non‑repeating (aperiodic) signals by allowing a continuous frequency variable.
  • Sampling and Nyquist: To avoid aliasing you must sample at least twice the highest frequency of interest and use an anti‑alias filter. CD audio uses 44.1 kHz for a reason.
  • DFT and FFT: The Discrete Fourier Transform (DFT) turns N time samples into N frequency bins. The FFT is an efficient algorithm to compute the DFT. A common DFT formula you will see is

    $X[k]=\sum_{n=0}^{N-1} x[n]\,e^{-j2\pi kn/N}$

  • Frequency resolution: If your analysis window spans duration $T$, the bin spacing is $\Delta f=1/T$. Longer windows give finer frequency resolution but worse time localization.
  • Windowing and spectral leakage: Cutting a signal into a finite frame imposes an artificial period and can create discontinuities at the edges. Window functions (Hann, Hamming, Tukey, Kaiser, etc.) taper the frame to reduce leakage at the cost of spreading energy (smearing) around peaks.
  • Complex numbers and negative frequencies: The full spectrum of a real signal includes symmetric positive and negative frequency components; failing to account for complex conjugates can hide energy.

Glossary

  • FFT (Fast Fourier Transform): An efficient algorithm to compute the DFT of N samples.
  • DFT (Discrete Fourier Transform): The discrete sum that maps time samples to frequency bins.
  • Window (windowing function): A taper applied to each frame to reduce edge discontinuities and spectral leakage.
  • Spectral leakage: Energy from a true frequency spreading into adjacent bins because a sinusoid does not complete integer cycles inside the frame.
  • Frequency smearing (main lobe width): The spreading of a true peak over multiple bins caused by the window's spectral shape.
  • Bin resolution (Δf): The spacing between adjacent FFT frequency bins; Δf = 1/T for a window of duration T.
  • Zero‑padding: Adding zeros to extend a frame to a larger FFT length—helps interpolation of bins but does not increase true resolution.
  • Nyquist frequency: Half the sampling rate; the highest non‑aliased frequency representable in sampled signals.
  • Hann / Hamming / Tukey windows: Common window types with different leakage vs. smearing trade‑offs; Tukey is parameterized for a middle ground.
  • Negative frequency: The mirror image of positive frequency components in the complex spectrum required to reconstruct real signals.

Final notes — why watch

Mark Newman presents the FFT not just as math, but as a set of practical choices and trade‑offs. He uses concrete audio examples, clear analogies, and intuitive explanations of complex numbers and window effects. If you want to stop being surprised by changing FFT size or window parameters in your tools, this talk gives the reasoning and rules of thumb you can apply immediately.

In short: you will come away understanding what the FFT actually measures, why its outputs change when you change parameters, and how to choose sampling, window, and FFT sizes to get frequency analyses you can trust. Enjoy the talk — it’s both practical and gentle on the math.

M↓ MARKDOWN HELP
italicssurround text with
*asterisks*
boldsurround text with
**two asterisks**
hyperlink
[hyperlink](https://example.com)
or just a bare URL
code
surround text with
`backticks`
strikethroughsurround text with
~~two tilde characters~~
quote
prefix with
>

RandyYates
Score: 0 | 12 months ago | 1 reply

Mark, VERY nice presentation! Can I pick your brain on how you did this? Was it all via PowerPoint?
--Randy

Mark NewmanSpeaker
Score: 0 | 11 months ago | no reply

Thanks. No, I didn't use PowerPoint, PowerPoint can't do what I wanted. The animations and graphs are all programmed in JavaScript and HTML.

Mayur.S
Score: 0 | 1 year ago | 1 reply

Mark, Learned a lot, lots to digest and great visuals.
Thank you for sharing your knowledge and creativity.
Kind Regards,
Mayur

Mark NewmanSpeaker
Score: 0 | 1 year ago | no reply

My pleasure. It was great fun to do. Thanks for watching.

RichardLyons
Score: 0 | 1 year ago | 1 reply

Hello Mark. This video of yours is surely the most visually beautiful Fourier transform presentation I have ever seen. Great job!

Mark NewmanSpeaker
Score: 0 | 1 year ago | no reply

Thank you. When I was learning this stuff at University, I found the only time I could understand the formulae was when the lecturer showed a graph of what was happening. I very much wanted to "show" rather than "tell" the Fourier Transform.

Gary
Score: 0 | 1 year ago | 1 reply

Major points for bringing Legos to a science conference!
Oh, and it's "j", not "i" (I'm an engineer... :) )

Mark NewmanSpeaker
Score: 0 | 1 year ago | no reply

Haha... yes, all those hours building Lego space ships as a kid finally paid off. Yes it was always j for me too in electronics, in fact I originally had a line in the talk about that, but it hit the cutting room floor together with a load of other stuff when I saw that the talk was overrunning.