FIR vs IIR
Phase, Ringing & Trade-offs
We already know how FIR and IIR filters are built. Now the useful question is not “which is better?” but “where do we want to pay the cost?”
1. Why IIR feels closer to analogue
IIR · recursive
The system has state: previous outputs participate in the next calculation. This makes IIR a natural digital counterpart to many analogue filter behaviours, where components and feedback networks store energy.
FIR · stored samples
Store discrete input samples, multiply by coefficients, then add. With suitable coefficient symmetry, FIR can provide linear phase — particularly useful in digital systems.
2. Watch a transient go through the filter
Switch between the original, an exaggerated minimum-phase/IIR-style response and a symmetric linear-phase FIR response.
3. How can a filter ring before the sound?
Minimum phase
The main transient can occur immediately, followed by the response. The trade-off is frequency-dependent phase rotation.
Linear phase
A symmetric FIR response has energy on both sides of its centre. The entire signal is delayed, allowing the response to extend before and after the delayed transient.
4. More FIR taps buy precision — and cost time
Longer kernels can realise finer transitions, but symmetric linear-phase FIRs also incur greater group delay.
5. Hear the trade-off
Short synthetic transient; ringing is intentionally exaggerated. Output starts low.
6. The cost moves — it does not disappear
| IIR / minimum-phase | Linear-phase FIR | |
|---|---|---|
| Latency | Usually very low | Can be substantial |
| Efficiency | Very efficient | May require many taps |
| Phase | Frequency-dependent rotation | Relative phase can be preserved |
| Ringing | Primarily after impulse | Can occur before + after delayed impulse |
| Feedback | Recursive | Not required |
| Analogue-style design | Natural fit | Less directly analogous |
| Convolution | — | Potentially enormous FIR |
7. Which would you reach for?
Latency matters enormously.
Relative phase may matter.
You want the measured h[n] of a whole system.
MEASURE → COMPARE
So far we have mainly changed audio. Next we extract information from audio.
That opens the door to meters, gates, compressors, transient detectors, envelope followers and automatic gain control.