What is finite impulse response filter in music?
What is finite impulse response filter?
Synthesis & Sound Design
A digital filter whose response to an impulse becomes zero after a finite number of samples. Finite impulse response filters can provide exact linear-phase behavior and are used in equalization, filtering and audio processing.
What does finite impulse response filter mean?
A finite impulse response filter, or FIR filter, has an impulse response that becomes exactly zero after a finite span in its mathematical model. A common implementation computes each output as a weighted sum of the current input and a finite set of earlier samples. The weights are called coefficients or taps, and their values determine the frequency and time response.
Real symmetric or antisymmetric coefficient sets can provide exact linear phase, giving a constant group delay where the response is nonzero. That is a design property, not a requirement of every FIR. Minimum-phase and other phase responses can also be designed. With finite coefficients, an ideal FIR is bounded-input bounded-output stable; practical numerical implementations still need appropriate headroom and precision.
For demanding frequency specifications, an FIR may need many taps. That can increase computation and, in linear-phase designs, delay. Efficient convolution methods can reduce the computational cost of long filters. FIRs are used in sample-rate conversion, equalization, loudspeaker correction and many other processes where their controllable response is useful.
n∈Z is the discrete sample index; M≥0 is an integer and the fixed finite taps b0,…,bM weight the present and previous input samples x[n−k] to produce y[n]. If bM=0, the represented FIR order is M and there are M+1 taps. For real coefficients with exact symmetry bk=bM−k or antisymmetry bk=−bM−k, the linear-phase group delay is M/2 samples, hence τg=M/(2fs) seconds for fs>0 samples/s, at frequencies where the frequency response is nonzero and phase is defined. For 129 symmetric taps at 48,000 samples/s, M=128 gives 64 samples, or about 1.333 ms. General FIR designs need not have this group delay; numerical and buffering latency may differ.
Examples related to finite impulse response filter
- A 129-tap symmetric linear-phase FIR has order 128 and a group delay of 64 samples, about 1.33 ms at 48 kHz.
- An FIR interpolation filter suppresses unwanted spectral images during sample-rate conversion.
Common confusions and distinctions
Finite describes the duration of the impulse response, not the duration of audio it can process. FIR does not automatically mean linear phase, zero latency or a perfect brick-wall response. IIR filters have theoretically continuing impulse responses; either family can be useful depending on the specification.
Back to the glossary