Audio is a river of numbers — typically 44 100 samples every second. A single global FFT tells you which frequencies are present across the whole recording, but it cannot tell you when a note starts, fades, or changes pitch. For that you need a view that moves through time.
The Short-Time Fourier Transform (STFT) gives you exactly that. It slides a short analysis window across the signal, computes a regular FFT on each windowed chunk, and stacks the results into a two-dimensional picture called a spectrogram — time on one axis, frequency on the other, brightness for amplitude.
But a spectrogram is also a gateway to editing. If you modify the frequency content of each frame and then reconstruct the signal, you get the overlap-add (OLA) method: the fundamental engine behind every equalizer, noise canceller, pitch shifter, and audio codec you have ever used.
The key insight is that the windowing step introduces a distortion — each sample is multiplied by the window twice (once on analysis, once on synthesis). The overlap-add trick cancels that distortion perfectly, provided the frames overlap enough. With a Hann window and 50 % overlap, adjacent windows satisfy the COLA condition () — so every sample is recovered without error.
Comments
Loading comments...