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.

FIR Output and Linear-Phase Delay

y[n]=∑k=0Mbkx[n−k]y[n]=\sum_{k=0}^{M}b_kx[n-k]
τg=M2fs\tau_g=\frac{M}{2f_s}

n∈Zn\in\mathbb Z is the discrete sample index; M≥0M\geq0 is an integer and the fixed finite taps b0,…,bMb_0,\ldots,b_M weight the present and previous input samples x[n−k]x[n-k] to produce y[n]y[n]. If bM≠0b_M\ne0, the represented FIR order is MM and there are M+1M+1 taps. For real coefficients with exact symmetry bk=bM−kb_k=b_{M-k} or antisymmetry bk=−bM−kb_k=-b_{M-k}, the linear-phase group delay is M/2M/2 samples, hence τg=M/(2fs)\tau_g=M/(2f_s) seconds for fs>0f_s>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=128M=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

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