Comb filters are employed in a variety of signal processing applications, including:
In acoustics, comb filtering can arise as an unwanted artifact. For instance, two loudspeakers playing the same signal at different distances from the listener create a comb filtering effect on the audio.1 In any enclosed space, listeners hear a mixture of direct sound and reflected sound. The reflected sound takes a longer, delayed path compared to the direct sound, and a comb filter is created where the two mix at the listener.2 Similarly, comb filtering may result from mono mixing of multiple mics, hence the 3:1 rule of thumb that neighboring mics should be separated at least three times the distance from its source to the mic.3
The general structure of a feedforward comb filter is described by the difference equation:
where K {\displaystyle K} is the delay length (measured in samples), and α is a scaling factor applied to the delayed signal. The z transform of both sides of the equation yields:
The transfer function is defined as:
The frequency response of a discrete-time system expressed in the z-domain is obtained by substitution z = e j ω , {\displaystyle z=e^{j\omega },} where j {\displaystyle j} is the imaginary unit and ω {\displaystyle \omega } is angular frequency. Therefore, for the feedforward comb filter:
Using Euler's formula, the frequency response is also given by
Often of interest is the magnitude response, which ignores phase. This is defined as:
In the case of the feedforward comb filter, this is:
The ( 1 + α 2 ) {\displaystyle (1+\alpha ^{2})} term is constant, whereas the 2 α cos ( ω K ) {\displaystyle 2\alpha \cos(\omega K)} term varies periodically. Hence the magnitude response of the comb filter is periodic.
The graphs show the periodic magnitude response for various values of α . {\displaystyle \alpha .} Some important properties:
The feedforward comb filter is one of the simplest finite impulse response filters.4 Its response is simply the initial impulse with a second impulse after the delay.
Looking again at the z-domain transfer function of the feedforward comb filter:
the numerator is equal to zero whenever zK = −α. This has K solutions, equally spaced around a circle in the complex plane; these are the zeros of the transfer function. The denominator is zero at zK = 0, giving K poles at z = 0. This leads to a pole–zero plot like the ones shown.
Similarly, the general structure of a feedback comb filter is described by the difference equation:
This equation can be rearranged so that all terms in y {\displaystyle y} are on the left-hand side, and then taking the z transform:
The transfer function is therefore:
By substituting z = e j ω {\displaystyle z=e^{j\omega }} into the feedback comb filter's z-domain expression:
the magnitude response becomes:
Again, the response is periodic, as the graphs demonstrate. The feedback comb filter has some properties in common with the feedforward form:
However, there are also some important differences because the magnitude response has a term in the denominator:
The feedback comb filter is a simple type of infinite impulse response filter.5 If stable, the response simply consists of a repeating series of impulses decreasing in amplitude over time.
Looking again at the z-domain transfer function of the feedback comb filter:
This time, the numerator is zero at zK = 0, giving K zeros at z = 0. The denominator is equal to zero whenever zK = α. This has K solutions, equally spaced around a circle in the complex plane; these are the poles of the transfer function. This leads to a pole–zero plot like the ones shown below.
Comb filters may also be implemented in continuous time which can be expressed in the Laplace domain as a function of the complex frequency domain parameter s = σ + j ω {\displaystyle s=\sigma +j\omega } analogous to the z domain. Analog circuits use some form of analog delay line for the delay element. Continuous-time implementations share all the properties of the respective discrete-time implementations.
The feedforward form may be described by the equation:
where τ is the delay (measured in seconds). This has the following transfer function:
The feedforward form consists of an infinite number of zeros spaced along the jω axis (which corresponds to the Fourier domain).
The feedback form has the equation:
and the following transfer function:
The feedback form consists of an infinite number of poles spaced along the jω axis.
Roger Russell. "Hearing, Columns and Comb Filtering". Retrieved 2010-04-22. http://www.roger-russell.com/columns/combfilter2.htm ↩
"Acoustic Basics". Acoustic Sciences Corporation. Archived from the original on 2010-05-07. https://web.archive.org/web/20100507124237/http://www.asc-hifi.com/acoustic_basics.htm ↩
Burroughs, Lou (1974). Microphones: Design and Application. Sagamore Publishing Company. ↩
Smith, J. O. "Feedforward Comb Filters". Archived from the original on 2011-06-06. https://web.archive.org/web/20110606210608/https://ccrma.stanford.edu/~jos/waveguide/Feedforward_Comb_Filters.html ↩
Smith, J.O. "Feedback Comb Filters". Archived from the original on 2011-06-06. https://web.archive.org/web/20110606203008/https://ccrma.stanford.edu/~jos/waveguide/Feedback_Comb_Filters.html ↩