Summary: Reverberation is a property of concert halls that greatly adds to the enjoyment of a musical performance. Sound waves propagate directly from the stage to the listener, and also reflect from the floor, walls, ceiling, and back wall of the stage to create myriad copies of the direct sound that are time-delayed and reduced in intensity. In this module, learn about the concept of reverberation in more detail and ways to emulate reverberation using a digital filter structure known as a comb filter.
Note: Your browser may not currently support MathML. See our browser support page for additional details. You can always view the correct math in the PDF version.
![]() |
This module refers to LabVIEW, a software development environment that features a graphical programming language. Please see the LabVIEW QuickStart Guide module for tutorials and documentation that will help you: |
| • Apply LabVIEW to Audio Signal Processing | |
| • Get started with LabVIEW | |
| • Obtain a fully-functional evaluation edition of LabVIEW |
Reverberation is a property of concert halls that greatly adds to the enjoyment of a musical performance. The on-stage performer generates sound waves that propagate directly to the listener's ear. However, sound waves also bounce off the floor, walls, ceiling, and back wall of the stage, creating myriad copies of the direct sound that are time-delayed and reduced in intensity.
In this module, learn about the concept of reverberation in more detail and ways to emulate reverberation using a digital filter structure known as a comb filter.
The Figure 1 screencast video continues the discussion by visualizing the sound paths in a reverberant environment. The impulse response of the reverberant environment is also introduced. Understanding the desired impulse response is the first step toward emulating reverberation with a digital filter.
The comb filter is a relatively simple digital filter structure based on a delay line and feedback. Watch the Figure 2 screencast video to learn how you can develop the comb filter structure by considering an idealized version of the impulse response of a reverberant environment.
![]() |
The difference equation of the comb filter is required in order to implement the filter in LabVIEW. In general, a difference equation states the filter output y(n) as a function of the past and present input values as well as past output values.
Take some time now to derive the comb filter difference equation as requested by the following exercise.
Derive the difference equation of the comb filter structure shown at the end of the Figure 2 video.
Once the difference equation is available, you can apply the coefficients of the equation to the LabVIEW "IIR" (infinite impulse response) digital filter. The Figure 3 screencast video walks through the complete process you need to convert the comb filter difference equation into a LabVIEW VI. The LabVIEW MathScript node creates the coefficient vectors. Once the comb filter is complete, its impulse response is explored for different values of delay line length and feedback gain.
Please follow along with the video and create your own version of the comb filter in LabVIEW. Refer to TripleDisplay to install the front-panel indicator used to view the signal spectrum.
As you have learned in previous sections, the comb filter behavior is determined by the delay line length N and the feedback coefficient g. From
a user's point of view, however, these two parameters are not very intuitive. Instead, the comb filter behavior is normally specified by
loop time
Reverb time indicates the amount of time required for the reverberant signal's intensity to drop by 60 dB (dB = decibels), effectively to silence. Recall from the Figure 2 video that the comb filter's impulse response looks like a series of decaying impulses spaced by a delay of N samples; this impulse response is plotted in Figure 4 with the independent axis measured in time rather than samples.
![]() |
Take a few minutes to derive an equation for the comb filter feedback gain "g" as a function of the loop time and the reverb time. The following pair of exercises guide you through the derivation.
Given the comb filter impulse response pictured in Figure 4, derive an
equation for the reverb time
Based on your previous derivation, develop an equation for the comb filter gain "g" in terms of the desired loop time and reverb time.
To finish up, derive the equation for the comb filter delay "N" in terms of the desired loop time.
Now, return to your own comb filter VI and modify the front-panel controls and LabVIEW MathScript node to use loop time and reverb time as the primary user inputs. Experiment with your modified system to ensure that the spacing between impulses does indeed match the specified loop time, and that the impulse decay rate makes sense for the specified reverb time.
In this section, learn how to build a comb filter in LabVIEW that can process an audio signal, specifically, an impulse source. Follow along with the Figure 5 screencast video to create your own VI. The video includes an audio demonstration of the finished result. As a bonus, the video also explains where the "comb filter" gets its name.
Next, learn how you can replace the impulse source with an audio .wav file. Speech makes a good test signal, and the Figure 6 screencast video shows how to modify your VI to use a .wav audio file as the signal source. The speech clip used as an example in the video is available here: speech.wav (audio courtesy of the Open Speech Repository, www.voiptroubleshooter.com/open_speech; the sentences are two of the many phonetically balanced Harvard Sentences, an important standard for the speech processing community).
"Developed by Rose Hulman Prof Ed Doering, this collection is a multimedia educational resource for students and faculty that augments traditional DSP courses and courses that cover music […]"