Comb filter explained

In signal processing, a comb filter is a filter implemented by adding a delayed version of a signal to itself, causing constructive and destructive interference. The frequency response of a comb filter consists of a series of regularly spaced notches in between regularly spaced peaks (sometimes called teeth) giving the appearance of a comb.

Comb filters exist in two forms, feedforward and feedback; which refer to the direction in which signals are delayed before they are added to the input.

Comb filters may be implemented in discrete time or continuous time forms which are very similar.

Applications

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.

Discrete time implementation

Feedforward form

The general structure of a feedforward comb filter is described by the difference equation:

y[n]=x[n]+\alphax[n-K]

where

K

is the delay length (measured in samples), and is a scaling factor applied to the delayed signal. The transform of both sides of the equation yields:

Y(z)=\left(1+\alphaz-K\right)X(z)

The transfer function is defined as:

H(z)=

Y(z)
X(z)

=1+\alphaz-K=

zK+\alpha
zK

Frequency response

The frequency response of a discrete-time system expressed in the -domain is obtained by substitution

z=ej\omega,

where

j

is the imaginary unit and

\omega

is angular frequency. Therefore, for the feedforward comb filter:

H\left(ej\right)=1+\alphae-j

Using Euler's formula, the frequency response is also given by

H\left(ej\right)=l[1+\alpha\cos(\omegaK)r]-j\alpha\sin(\omegaK)

Often of interest is the magnitude response, which ignores phase. This is defined as:

\left|H\left(ej\right)\right|=\sqrt{\Re\left\{H\left(ej\right)\right\}2+\Im\left\{H\left(ej\right)\right\}2}

In the case of the feedforward comb filter, this is:

\begin{align} \left|H(ej)\right|&=\sqrt{(1+\alpha\cos(\omegaK))2+(\alpha\sin(\omegaK))2}\\ &=\sqrt{(1+\alpha2)+2\alpha\cos(\omegaK)} \end{align}

The

(1+\alpha2)

term is constant, whereas the

2\alpha\cos(\omegaK)

term varies periodically. Hence the magnitude response of the comb filter is periodic.

The graphs show the periodic magnitude response for various values of

\alpha.

Some important properties:

\alpha,

the first minimum occurs at half the delay period and repeats at even multiples of the delay frequency thereafter:

\beginf &= \frac, \frac, \frac \cdots \\\omega &= \frac, \frac, \frac \cdots \,

\end

\alpha=\pm1,

the minima have zero amplitude. In this case, the minima are sometimes known as nulls.

\alpha

coincide with the minima for negative values of

\alpha

, and vice versa.

Impulse response

The feedforward comb filter is one of the simplest finite impulse response filters.[3] Its response is simply the initial impulse with a second impulse after the delay.

Pole–zero interpretation

Looking again at the -domain transfer function of the feedforward comb filter:

H(z)=

zK+\alpha
zK

the numerator is equal to zero whenever . This has solutions, equally spaced around a circle in the complex plane; these are the zeros of the transfer function. The denominator is zero at, giving poles at . This leads to a pole–zero plot like the ones shown.

Feedback form

Similarly, the general structure of a feedback comb filter is described by the difference equation:

y[n]=x[n]+\alphay[n-K]

This equation can be rearranged so that all terms in

y

are on the left-hand side, and then taking the transform:

\left(1-\alphaz-K\right)Y(z)=X(z)

The transfer function is therefore:

H(z)=

Y(z)
X(z)

=

1
1-\alphaz-K

=

zK
zK-\alpha

Frequency response

By substituting

z=ej\omega

into the feedback comb filter's -domain expression:

H\left(ej\right)=

1
1-\alphae-j

,

the magnitude response becomes:

\left|H\left(ej\right)\right|=

1
\sqrt{\left(1+\alpha2\right)-2\alpha\cos(\omegaK)
} \, .

Again, the response is periodic, as the graphs demonstrate. The feedback comb filter has some properties in common with the feedforward form:

\alpha

coincide with the minima for negative values of

\alpha,

and vice versa.

\alpha,

the first maximum occurs at 0 and repeats at even multiples of the delay frequency thereafter:

\begin{align} f&=0,

1
K

,

2
K

,

3
K

\\ \omega&=0,

2\pi
K

,

4\pi
K

,

6\pi
K

\end{align}

However, there are also some important differences because the magnitude response has a term in the denominator:

Impulse response

The feedback comb filter is a simple type of infinite impulse response filter.[4] If stable, the response simply consists of a repeating series of impulses decreasing in amplitude over time.

Pole–zero interpretation

Looking again at the -domain transfer function of the feedback comb filter:

H(z)=

zK
zK-\alpha

This time, the numerator is zero at, giving zeros at . The denominator is equal to zero whenever . This has 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.

Continuous time implementation

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=\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.

Feedforward form

The feedforward form may be described by the equation:

y(t)=x(t)+\alphax(t-\tau)

where is the delay (measured in seconds). This has the following transfer function:

H(s)=1+\alphae-s

The feedforward form consists of an infinite number of zeros spaced along the jω axis (which corresponds to the Fourier domain).

Feedback form

The feedback form has the equation:

y(t)=x(t)+\alphay(t-\tau)

and the following transfer function:

H(s)=

1
1-\alphae-s

The feedback form consists of an infinite number of poles spaced along the jω axis.

See also

Notes and References

  1. Web site: Hearing, Columns and Comb Filtering . Roger Russell . 2010-04-22.
  2. Web site: Acoustic Basics . Acoustic Sciences Corporation. 2010-05-07 . https://web.archive.org/web/20100507124237/http://www.asc-hifi.com/acoustic_basics.htm . dead .
  3. Web site: Feedforward Comb Filters . J. O. . Smith . 2011-06-06 . https://web.archive.org/web/20110606210608/https://ccrma.stanford.edu/~jos/waveguide/Feedforward_Comb_Filters.html . dead .
  4. Web site: Feedback Comb Filters . J.O. . Smith . 2011-06-06 . https://web.archive.org/web/20110606203008/https://ccrma.stanford.edu/~jos/waveguide/Feedback_Comb_Filters.html . dead .