Overlap-Add (OLA)
STFT Processing
Convolution of Short Signals
FFT versus Direct ConvolutionSearch Spectral Audio Signal Processing
Would you like to be notified by email when Julius Orion Smith III publishes a new entry into his blog?
The following table compares the number of operations needed to
perform the convolution of two length
sequences for various values
of
:
| N | FFT | Direct Convolution |
| 4 | 176 | 16 |
| 32 | 2560 | 1024 |
| 64 | 5888 | 4096 |
| 128 | 13,312 | 16,384 |
| 256 | 29,696 | 65,536 |
| 2048 | 311,296 | 4,194,304 |
In this example (adapted from [258]), the FFT (software) beats
direct time-domain convolution at length 128 and higher. It takes
approximately
multiply/add operations to calculate the
convolution summation directly, while it takes on the order of
log
operations to use the FFT method.
(Note, by the way, that
can be calculated once in
advance for time-invariant filtering operations.)
In digital audio, FIR filters are often hundreds of taps long. For such filters, the FFT method is much faster than direct convolution in the time domain.
