Comb Filters | Physical Audio Signal Processing (2024)

Comb Filters

Comb filters are basic building blocks for digital audio effects. Theacoustic echo simulation in Fig.2.9 is one instance of a combfilter. This section presents the two basic comb-filter types,feedforward and feedback, and gives a frequency-responseanalysis.

Feedforward Comb Filters

The feedforward comb filter is shown in Fig.2.23. Thedirect signal ``feeds forward'' around the delay line. The outputis a linear combination of the direct and delayed signal.

Figure 2.23:The feedforward comb filter.
Comb Filters | Physical Audio Signal Processing (1)

The ``difference equation'' [449] for the feedforward comb filter is

Comb Filters | Physical Audio Signal Processing (2)(3.2)

We see that the feedforward comb filter is a particular type of FIRfilter. It is also a special case of a TDL.

Note that the feedforward comb filter can implement the echo simulatorof Fig.2.9 by setting Comb Filters | Physical Audio Signal Processing (3) and Comb Filters | Physical Audio Signal Processing (4). Thus, it is is acomputational physical model of a single discrete echo. Thisis one of the simplest examples of acoustic modeling using signalprocessing elements. The feedforward comb filter models thesuperposition of a ``direct signal'' Comb Filters | Physical Audio Signal Processing (5) plus an attenuated,delayed signal Comb Filters | Physical Audio Signal Processing (6), where the attenuation (by Comb Filters | Physical Audio Signal Processing (7)) isdue to ``air absorption'' and/or spherical spreading losses, and thedelay is due to acoustic propagation over the distance Comb Filters | Physical Audio Signal Processing (8) meters,where Comb Filters | Physical Audio Signal Processing (9) is the sampling period in seconds, and Comb Filters | Physical Audio Signal Processing (10) is sound speed.In cases where the simulated propagation delay needs to be moreaccurate than the nearest integer number of samples Comb Filters | Physical Audio Signal Processing (11), some kind ofdelay-line interpolation needs to be used (the subject of§4.1). Similarly, when air absorption needs to besimulated more accurately, the constant attenuation factor Comb Filters | Physical Audio Signal Processing (12) canbe replaced by a linear, time-invariant filter Comb Filters | Physical Audio Signal Processing (13) giving adifferent attenuation at every frequency. Due to the physics of airabsorption, Comb Filters | Physical Audio Signal Processing (14) is generally lowpass in character [349, p. 560], [47,318].

Feedback Comb Filters

The feedback comb filter uses feedback instead of afeedforward signal, as shown in Fig.2.24 (drawn in ``direct form 2''[449]).

Figure 2.24:The feedback comb filter.
Comb Filters | Physical Audio Signal Processing (15)

A difference equation describing the feedback comb filter can bewritten in ``direct form 1'' [449] as3.9

Comb Filters | Physical Audio Signal Processing (16)

The feedback comb filter is a special case of an Infinite ImpulseResponse (IIR) (``recursive'') digital filter, since there isfeedback from the delayed output to the input [449].The feedback comb filter can be regarded as a computational physicalmodel of a series of echoes, exponentially decaying anduniformly spaced in time. For example, the special case

Comb Filters | Physical Audio Signal Processing (17)

is a computational model of an ideal plane wave bouncing back andforth between two parallel walls; in such a model, Comb Filters | Physical Audio Signal Processing (18) represents thetotal round-trip attenuation (two wall-to-wall traversals, includingtwo reflections).

For stability, the feedback coefficient Comb Filters | Physical Audio Signal Processing (19) must be less thanComb Filters | Physical Audio Signal Processing (20) in magnitude, i.e., Comb Filters | Physical Audio Signal Processing (21). Otherwise, if Comb Filters | Physical Audio Signal Processing (22),each echo will be louder than the previous echo, producing anever-ending, growing series of echoes.

Sometimes the output signal is taken from the end of the delay line insteadof the beginning, in which case the difference equation becomes

Comb Filters | Physical Audio Signal Processing (23)

This choice of output merely delays the output signal by Comb Filters | Physical Audio Signal Processing (24) samples.

Feedforward Comb Filter Amplitude Response

Comb filters get their name from the ``comb-like'' appearance of theiramplitude response (gain versus frequency), as shown inFigures 2.25, 2.26, and 2.27.For a review of frequency-domain analysisof digital filters, see, e.g., [449].

Figure:Amplitude responses of thefeed forward comb-filter Comb Filters | Physical Audio Signal Processing (25)(diagrammed in Fig.2.23) with Comb Filters | Physical Audio Signal Processing (26) and Comb Filters | Physical Audio Signal Processing (27), Comb Filters | Physical Audio Signal Processing (28), and Comb Filters | Physical Audio Signal Processing (29).a) Linear amplitude scale. b) Decibel scale. The frequency axis goesfrom 0 to the sampling rate (instead of only half thesampling rate, which is more typical for real filters) in order todisplay the fact that the number of notches is exactly Comb Filters | Physical Audio Signal Processing (30) (asopposed to ``Comb Filters | Physical Audio Signal Processing (31)'').
Comb Filters | Physical Audio Signal Processing (32)

The transfer function of the feedforward comb filter Eq.Comb Filters | Physical Audio Signal Processing (33)(2.2) is

Comb Filters | Physical Audio Signal Processing (34)(3.3)

so that the amplitude response (gain versus frequency) is

Comb Filters | Physical Audio Signal Processing (35)(3.4)

This is plotted in Fig.2.25 for Comb Filters | Physical Audio Signal Processing (36), Comb Filters | Physical Audio Signal Processing (37), and Comb Filters | Physical Audio Signal Processing (38),Comb Filters | Physical Audio Signal Processing (39), and Comb Filters | Physical Audio Signal Processing (40).When Comb Filters | Physical Audio Signal Processing (41), we get the simplified result

Comb Filters | Physical Audio Signal Processing (42)

In this case, we obtain Comb Filters | Physical Audio Signal Processing (43) nulls, which are points(frequencies) of zero gain in the amplitude response. Note that inflangers, these nulls are moved slowly over time bymodulating the delay length Comb Filters | Physical Audio Signal Processing (44). Doing this smoothly requiresinterpolated delay lines (see Chapter 4 andChapter 5).

FeedbackComb Filter Amplitude Response

Figure 2.26 shows a family of feedback-comb-filteramplitude responses, obtained using a selection of feedbackcoefficients.

Figure:Amplitude response of the feedbackcomb-filter Comb Filters | Physical Audio Signal Processing (45) (Fig.2.24 with Comb Filters | Physical Audio Signal Processing (46) andComb Filters | Physical Audio Signal Processing (47)) with Comb Filters | Physical Audio Signal Processing (48) and Comb Filters | Physical Audio Signal Processing (49), Comb Filters | Physical Audio Signal Processing (50), and Comb Filters | Physical Audio Signal Processing (51). a) Linearamplitude scale. b) Decibel scale.
Comb Filters | Physical Audio Signal Processing (52)

Figure 2.27 shows a similar family obtained usingnegated feedback coefficients; the opposite sign of the feedbackexchanges the peaks and valleys in the amplitude response.

Figure:Amplitude response of the phase-inverted feedback comb-filter, i.e., as in Fig.2.26 with negatedComb Filters | Physical Audio Signal Processing (53), Comb Filters | Physical Audio Signal Processing (54), and Comb Filters | Physical Audio Signal Processing (55).a) Linear amplitude scale. b) Decibel scale.
Comb Filters | Physical Audio Signal Processing (56)

As introduced in §2.6.2 above, a class of feedback combfilters can be defined as any difference equation of the form

Comb Filters | Physical Audio Signal Processing (57)

Taking the z transform of both sides and solving for

Comb Filters | Physical Audio Signal Processing (58),the transfer function of the feedback comb filter is found to be

Comb Filters | Physical Audio Signal Processing (59)(3.5)

so that the amplitude response is

Comb Filters | Physical Audio Signal Processing (60)

This is plotted in Fig.2.26 for Comb Filters | Physical Audio Signal Processing (61) and Comb Filters | Physical Audio Signal Processing (62), Comb Filters | Physical Audio Signal Processing (63), andComb Filters | Physical Audio Signal Processing (64). Figure 2.27 shows the same case but with the feedbacksign-inverted.

For Comb Filters | Physical Audio Signal Processing (65), the feedback-comb amplitude responsereduces to

Comb Filters | Physical Audio Signal Processing (66)

and for Comb Filters | Physical Audio Signal Processing (67) to

Comb Filters | Physical Audio Signal Processing (68)

which exactly inverts the amplitude response of the feedforwardcomb filter with gain Comb Filters | Physical Audio Signal Processing (69) (Eq.Comb Filters | Physical Audio Signal Processing (70)(2.4)).

Note that Comb Filters | Physical Audio Signal Processing (71) produces resonant peaks at

Comb Filters | Physical Audio Signal Processing (72)

while for Comb Filters | Physical Audio Signal Processing (73), the peaks occur midway between these values.

Filtered-Feedback Comb Filters

The filtered-feedback comb filter (FFBCF) uses filteredfeedback instead of just a feedback gain.

Denoting the feedback-filter transfer function by Comb Filters | Physical Audio Signal Processing (74), thetransfer function of the filtered-feedback comb filter can be writtenas

Comb Filters | Physical Audio Signal Processing (75)

Note that when Comb Filters | Physical Audio Signal Processing (76) is a causal filter, the FFBCF can beconsidered mathematically a special case of the general allpoletransfer function in which the first Comb Filters | Physical Audio Signal Processing (77) denominator coefficientsare constrained to be zero:

Comb Filters | Physical Audio Signal Processing (78)

It is this ``sparseness'' of the filter coefficients that makes theFFBCF more computationally efficient than other, more general-purpose,IIR filter structures.

In §2.6.2 above, we mentioned the physical interpretationof a feedback-comb-filter as simulating a plane-wave bouncing back andforth between two walls. Inserting a lowpass filter in the feedbackloop further simulates frequency dependent losses incurredduring a propagation round-trip, as naturally occurs in real rooms.

The main physical sources of plane-wave attenuation are airabsorptionB.7.15) and the coefficient ofabsorption at each wall [349]. Additional ``losses'' forplane waves in real rooms occur due to scattering. (The planewave hits something other than a wall and reflects off in manydifferent directions.) A particular scatterer used in concert hallsis textured wall surfaces. In ray-tracing simulations,reflections from such walls are typically modeled as having aspecular and diffuse component. Generally speaking,wavelengths that are large compared with the ``grain size'' of thewall texture reflect specularly (with some attenuation due to any wallmotion), while wavelengths on the order of or smaller than the texturegrain size are scattered in various directions, contributing to thediffuse component of reflection.

The filtered-feedback comb filter has many applications in computermusic. It was evidently first suggested for artificial reverberationby Schroeder [412, p. 223], and first implemented by Moorer[314]. (Reverberation applicationsare discussed further in §3.6.) In the physicalinterpretation [428,207] of the Karplus-Strongalgorithm [236,233], the FFBCF can be regarded as atransfer-function physical-model of a vibrating string. In digitalwaveguide modeling of string and wind instruments, FFBCFs aretypically derived routinely as a computationally optimized equivalentforms based on some initial waveguide model developed in terms ofbidirectional delay-lines (``digital waveguides'') (see§6.10.1 for an example).

For stability, the amplitude-response of the feedback-filterComb Filters | Physical Audio Signal Processing (79) must be less than Comb Filters | Physical Audio Signal Processing (80) in magnitude at all frequencies, i.e.,Comb Filters | Physical Audio Signal Processing (81).

Equivalence of Parallel Combs to TDLs

It is easy to show that the TDL of Fig.2.19 is equivalent to aparallel combination of three feedforward comb filters, each as inFig.2.23. To see this, we simply add the three comb-filter transferfunctions of Eq.Comb Filters | Physical Audio Signal Processing (82)(2.3) and equate coefficients:

Comb Filters | Physical Audio Signal Processing (83)

which implies

Comb Filters | Physical Audio Signal Processing (84)

We see that parallel comb filters require more delay memory(Comb Filters | Physical Audio Signal Processing (85) elements) than the corresponding TDL, which onlyrequires Comb Filters | Physical Audio Signal Processing (86) elements.

Equivalence of Series Combs to TDLs

It is also straightforward to show that a series combination offeedforward comb filters produces a sparsely tapped delay line aswell. Considering the case of two sections, we have

Comb Filters | Physical Audio Signal Processing (87)

which yields

Comb Filters | Physical Audio Signal Processing (88)

Thus, the TDL of Fig.2.19 is equivalent also to the seriescombination of two feedforward comb filters. Note that thesame TDL structure results irrespective of the series ordering of thecomponent comb filters.

Time Varying Comb Filters

Comb filters can be changed slowly over time to produce the followingdigital audio ``effects'', among others:

Since all of these effects involve modulating delay length overtime, and since time-varying delay lines typically requireinterpolation, these applications will be discussed afterChapter 5 which covers variable delay lines. For now,we will pursue what can be accomplished using fixed(time-invariant) delay lines. Perhaps the most important applicationis artificial reverberation, addressed inChapter 3.

Next Section:
Feedback Delay Networks (FDN)
Previous Section:
Tapped Delay Line (TDL)

Comb Filters | Physical Audio Signal Processing (2024)

References

Top Articles
Latest Posts
Article information

Author: Kerri Lueilwitz

Last Updated:

Views: 5726

Rating: 4.7 / 5 (67 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Kerri Lueilwitz

Birthday: 1992-10-31

Address: Suite 878 3699 Chantelle Roads, Colebury, NC 68599

Phone: +6111989609516

Job: Chief Farming Manager

Hobby: Mycology, Stone skipping, Dowsing, Whittling, Taxidermy, Sand art, Roller skating

Introduction: My name is Kerri Lueilwitz, I am a courageous, gentle, quaint, thankful, outstanding, brave, vast person who loves writing and wants to share my knowledge and understanding with you.