Acoustic Modeling Using The Digital Waveguide Mesh
Acoustic Modeling Using The Digital Waveguide Mesh
Acoustic Modeling Using The Digital Waveguide Mesh
© DIGITALVISION
Acoustic Modeling
Using the Digital
Waveguide Mesh
[Recent activities in articulatory vocal tract modeling, room
impulse response synthesis, and reverberation simulation]
T
he digital waveguide mesh (DWM) is a numerical context of discrete-time physics-based modeling for sound syn-
simulation technique based on the definition of a thesis, and [3], where the DWM is examined within a rigorous
regular spatial sampling grid for a particular prob- theoretical and comparative framework for more established yet
lem domain, which in this specific case is a vibrating related wave scattering numerical simulation techniques.
object capable of supporting acoustic wave propaga-
tion resulting in sound output. It is based on a simple and intu- THE ONE-DIMENSIONAL DIGITAL WAVEGUIDE
itive premise—the latter often considered important by the The one-dimensional (1-D) digital waveguide is based on a time
computer musicians who are the primary users of a sound syn- and space discretization of the d’Alembert solution to the 1-D
thesis algorithm—yet the emergent behavior is complex, natu- wave equation. This approach to sound synthesis was first used
ral, and capable of high-quality sound generation. Hence, the in the Kelly-Lochbaum model of the human vocal tract for
DWM has been applied in many areas of computer music speech synthesis [4] and has parallels with other, more generally
research since it was first introduced by Van Duyne and Smith applied wave variable scattering modeling paradigms such as the
in 1993 [1]. This article is the first to attempt to consolidate and transmission line matrix (TLM) method [5] and wave digital fil-
summarize this work. The interested reader is also directed to ters (WDFs) [6]. However it was Julius O. Smith III who first
[2], where DWM modeling is considered in the more general proposed the term digital waveguide and used these techniques
where y+ and y− are arbitrary twice-differentiable functions Note that pJ is defined as the actual pressure value at the point of
denoting wave movement to the left and right, respectively. connection for these N waveguide elements, referred to as the
Assuming that y+ and y− are bandlimited to half the sampling pressure value at scattering junction J. Scattering junctions,
rate of the system allows the discrete time version of (2) to be together with the 1-D waveguide elements described above, pro-
defined for spatial sampling points mX and sampling interval vide the basic building blocks for a digital waveguide physical
nT such that X = cT : model of a vibrating system. For instance, six 1-D strings could
be coupled together via a scattering junction to simulate the
y(nT, mX) = y+ (n − m) + y− (n + m). (3) bridge of a guitar, facilitating sympathetic resonances where
excitation on one string causes low-amplitude oscillation on one
This solution can be implemented in an efficient and straight- or more of the others due to energy transmitted through the
forward manner using two parallel digital delay lines to repre- bridge. Similarly, this scattering junction could also allow cou-
sent the left-going and right-going traveling wave components. pling to a filter to simulate the effects of body resonances. Hence,
Figure 1 shows a digital waveguide implementation of an ideal scattering junctions also act as system sampling points where
string, rigidly terminated at either end of the M-sample delay physical variables may be tapped off for coupling with other
lines, corresponding to the nut and bridge of a typical instru- aspects of the model or with the outside world. Similarly, they
ment. The system is excited with an appropriate input “loaded’’ can also be used to allow energy to be input to a system. In mod-
into the upper and lower delay lines at position xin = min cT eling a wind instrument such as a clarinet, the bore can be
and a physical output is obtained at xout = mout cT by sum- implemented as a 1-D lossless waveguide coupled with the more
0.5
Nut + Bridge
y(nT, mincT) y(nT, moutcT)
Termination −1 −1 Termination
x=0 x = McT
[FIG1] The ideal lossless 1-D digital waveguide string model, which is M-samples long and rigidly terminated at either end.
2Y2
− 1
pJ, i +
1
+ ΣYi ΣYj
2Yi + 2Yi 2Yj
− −
+ −
+ + z−1 pk
pJ, 1−
z−2 z−1 z−1
pJ
[FIG3] Functional block diagram for a W-DWM scattering junction J with N neighbors connected to a K-DWM scattering junction K via a
KW-pipe connecting waveguide element.
[FIG4] DWM topologies: (a) four-port 2-D rectilinear; (b) six-port 2-D triangular; (c) six-port 3-D rectilinear; (d) 12-port 3-D dodecahedral
(CCP); (e) four-port 3-D tetrahedral; (f) eight-port 3-D octahedral.
Zmax
A(x)
x
Glottis Lips
Zmin
(a) (b)
[FIG5] Forming the impedance mapped /u/ vowel DWM: (a) cross-sectional area function; (b) rectilinear mesh with raised cosine
impedance map.
/a/ /e/
−20 5
f1 f2 f3 f4 4
−40
3
f/kHz
−60
dB
[FIG6] Formant patterns from the impedance-mapped DWM under noise excitation: (a) /u/ vowel compared with a high resolution 1-D
model and average measured values; (b) /a/ to /e/ diphthong compared with same 1-D model.
−10
f
f21 f31 f12 f11 03
f11 f22 f51
−20 f02
f11 =1.59 f01
−30
Power (dB)
−40
f21 = 2.14
−50
−70
f31 = 2.92
−80
0 500 1,000 1,500 2,000
Frequency (Hz)
(a) (b)
[FIG7] 2-D triangular DWM model of a membrane with a diameter of 0.5 m: (a) animation captures from the resulting simulation
demonstrating resonance at modes (0,2), (1,1), (2,1), and (3,1); (b) actual output spectrum compared with predicted modal frequencies.
10
−10
−20
Power (dB)
−30
−40
−50
−60
−70
−80
2,600 2,800 3,000 3,200 3,400 3,600 3,800 4,000
Frequency (Hz)
(a) (b)
[FIG8] 2-D triangular DWM model of a physically impossible system—a trifoil radiation symbol membrane with a diameter of 0.5 m:
(a) animation captures from the resulting simulation demonstrating modal resonances; (b) output spectrum.
[FIG9] DWM room acoustics modeling in RoomWeaver incorporating the latest implementations of frequency-dependent and diffusive
boundaries. A completely defined acoustic space followed by wave propagation snapshots through a 2-D horizontal plane of the same
space viewed in wireframe mode is shown from left to right.
2-D
50
Magnitude (dB)
1-D
1,000 2-D
3-D 0
4-D
5-D
Number of Modes
800
−50
600 0 0.05 0.1 0.15 0.2 0.25
4-D
50
Magnitude (dB)
400
0
200
0 −50
0 0.05 0.1 0.15 0.2 0.25 0 0.05 0.1 0.15 0.2 0.25
Relative Frequency (1/fs) Relative Frequency (1/fs)
(a) (b)
[FIG10] Frequency response information for 2,310 node DWMs of varying dimension: (a) theoretical modal distribution varying with
increasing dimensionality; (b) frequency response of a 2-D and 4-D DWM.
[22] D.T. Murphy and D.M. Howard, “2-D digital waveguide mesh topologies in [47] J. Mullen, D.T. Murphy, and D.M. Howard, “Physical modeling of the vocal
room acoustics modeling,’’ in Proc. 3rd Int. Conf. Digital Audio Effects (DAFX00), tract with the 2-D digital waveguide mesh,’’ [Online]. Available: http://www-
Verona, Italy, Dec. 2000, pp. 211–216 [Online]. Available: http://profs.sci.univr.it/∼ users.york.ac.uk/∼ dtm3/vocaltract
dafx/DAFx-final-papers.html [48] S. Shelley, “Acoustic modeling—The digital waveguide mesh,’’ [Online].
[23] L. Savioja, T.J. Rinne, and T. Takala, “Simulation of room acoustics with a 3-D Available: http://www-users.york.ac.uk/∼dtm3/vocaltract.html
finite difference mesh,’’ in Proc. Int. Computer Music Conf., Aarhus, Denmark, [49] S.A. Van Duyne, J.R. Pierce, and J.O. Smith, “Traveling wave implementation
1994, pp. 463–466. of a lossless mode-coupling filter and the wave digital hammer,’’ in Proc. Int.
[24] S.A. Van Duyne and J.O. Smith III, “The 3-D tetrahedral digital waveguide Computer Music Conf., Aarhus, Denmark, 1994, pp. 411–418.
mesh with musical applications,’’ in Proc. Int. Computer Music Conf., Hong Kong, [50] D. Rocchesso and F. Fontana, Eds., The Sounding Object. Florence, Italy:
1996, pp. 9–16. Mondo Estremo, 2003.
[25] S.J. Miklavcic and J. Ericsson, “Practical implementation of the 3D tetrahedral [51] L. Savioja, J. Backman, A. Järvinen, and T. Takala, “Waveguide mesh method
TLM method and visualization of room acoustics,’’ in Proc. 7th Int. Conf. Digital for low-frequency simulation of room acoustics,’’in Proc. Int. Congr. Acoustics,
Audio Effects (DAFX-04), Naples, Italy, Oct. 2004, pp. 262–267. [Online]. Available: Trondheim, Norway, vol. 2, pp. 637–641, June 1995.
http://dafx04.na.infn.it/WebProc/Proc/P_262.pdf
[52] D.T. Murphy and M.J. Beeson, “Modeling spatial sound occlusion & diffraction
[26] F. Fontana, D. Rocchesso, and E. Apollonio, “Using the waveguide mesh in effects with the digital waveguide mesh,’’ in Proc. Audio Eng. Soc. 24th Int. Conf.,
modeling 3-D resonators,’’ in Proc. 3rd Int. Conf. Digital Audio Effects (DAFX-00), Banff, Canada, June 2003, pp. 207–216.
Verona, Italy, Dec. 2000, pp. 229–232 [Online]. Available: http://profs.sci.univr.it/
∼dafx/DAFx-final-papers.html [53] U. Stephenson, “Comparison of the image source method & the particle simu-
lation method,’’ Appl. Acoust., vol. 29, no. 1, pp. 35–72, 1990.
[27] G.R. Campos and D.M. Howard, “On the computational efficiency of different
waveguide mesh topologies for room acoustic simulation,’’ IEEE Trans. Speech [54] A. Kelloniemi, V. Välimäki, and L. Savioja, “Simulation of room acoustics
Audio Processing, vol. 13, no. 5, pp. 1063–1072, Sept. 2005. using 2-D digital waveguide meshes,’’ in Proc. IEEE Int. Conf. Acoustics, Speech,
and Signal Processing (ICASSP), Toulouse, France, May 2006,
[28] M.L. Aird, J. Laird, and J. Ffitch, “Modeling a drum by interfacing 2-D and 3-D pp. 163-168. [Online]. Available: http://www2.hsu-hh.de/ant/dafx2002/papers
waveguide meshes,’’ in Proc. Int. Computer Music Conf., Berlin, Germany, Aug. /DAFX02_Murphy_Mullen_waveguide_mesh_modeling.pdf
2000, pp. 82–85.
[55] A. Kelloniemi, D.T. Murphy, L. Savioja, and V. Välimäki, “Boundary conditions
[29] F. Fontana, “Physics-based models for the acoustic representation of space in in a multi-dimensional digital waveguide mesh,’’ in Proc. IEEE Int. Conf.
virtual environments,’’ Ph.D. dissertation, Dept. Computer Science, Univ. of Acoustics, Speech, and Signal Processing (ICASSP), Montreal, Canada, May 2004,
Verona, Italy, Apr. 2003. [Online]. Available: http://profs.sci.univr.it/∼ pp. IV-25–IV-28.
fontana/paper/20.pdf
[56] A. Kelloniemi, V. Välimäki, and L. Savioja, “Spatial filter-based absorbing
[30] D. Rossiter, A. Horner, and G. Baciu, “Visualization and manipulation of 3D boundary for the 2-D digital waveguide mesh,’’ IEEE Signal Processing Lett., vol.
digital waveguide structures,’’ in Proc. Int. Computer Music Conf., Beijing, China, 12, no. 2, pp. 126–129, Feb. 2005.
1999, pp. 43–46.
[57] A. Kelloniemi, “Improved adjustable boundary condition for the 3-D digital
[31] P. Huang, S. Serafin, and J.O. Smith, “A 3-D waveguide mesh model of high- waveguide mesh,’’ in Proc. 2005 IEEE Workshop Applications of Signal Processing
frequency violin body resonances,’’ in Proc. Int. Computer Music Conf., Berlin, to Audio and Acoustics, New Paltz, NY, Oct. 2005, pp. 191-194.
Germany, Aug. 2000, pp. 86–89.
[58] J. Huopaniemi, L. Savioja, and M. Karjalainen, “Modeling of reflections and air
[32] S. Serafin, P. Huang, and J.O. Smith, “The banded digital waveguide mesh,’’ in absorption in acoustical spaces: a digital filter design approach,’’ in Proc. 1997
Proc. MOSART Workshop Current Research Directions Computer Music, IEEE Workshop Applications of Signal Processing to Audio and Acoustics), New
Barcelona, Spain, Nov. 2001. [Online]. Available: http://www.imi.aau.dk/∼sts/ Paltz, NY, Oct. 1997.
publications/mosart.pdf
[59] K. Lee and J.O. Smith, “Implementation of a highly diffusing 2-D digital
[33] A. Kelloniemi, V. Välimäki, and L. Savioja, “Simulation of room acoustics waveguide mesh with a quadratic residue diffuser,’’ in Proc. Int. Computer
using 2-D digital waveguide meshes,’’ in Proc. IEEE Int. Conf. Acoustics, Speech, Music Conf., Miami, Florida, Nov. 2004. [Online}. Available: http://ccrma.stan-
and Signal Processing (ICASSP), Toulouse, France, May 2006, pp. 313-316. ford.edu/~kglee/pubs/klee-icm04-pdf
[34] L. Savioja and V. Välimäki, “Reducing the dispersion error in the digital wave- [60] S. Shelley and D.T. Murphy, “Measuring diffusion in a 2-D digital waveguide
guide mesh using interpolation and frequency warping techniques,’’ IEEE Trans. mesh,’’ in Proc. 8th Int. Conf. Digital Audio Effects (DAFX-05), Madrid, Spain,
Speech Audio Processing, vol. 8, no. 2, pp. 184–194, Mar. 2000. Sept. 2005. [Online]. Available: http://dafx05.ssr.upm.es/Proc_DAFx05/P_249.pdf
[35] L. Savioja and V. Välimäki, “Interpolated rectangular 3-D digital waveguide [61] D. Rocchesso and J.O. Smith, “Circulant and elliptic feedback delay networks
mesh algorithms with frequency warping,’’ IEEE Trans. Speech Audio Processing, for artificial reverberation,’’ IEEE Trans. Speech Audio Processing, vol. 5, no. 1, pp.
vol. 11, no. 6, pp. 783–789, Nov. 2003. 51–63, Jan. 1997.
[36] F. Fontana and D. Rocchesso, “Online correction of dispersion in 2D wave- [62] A. Kelloniemi, V. Välimäki, P. Huang, and L. Savioja, “Artificial reverberation
guide meshes,’’ in Proc. Int. Computer Music Conf., Berlin, Germany, Aug. 2000, using a hyper-dimensional FDTD mesh,’’ in Proc. 13th European Signal
pp. 78–81. Processing Conf. (EUSIPCO 2005), Antalya, Turkey, Sept. 2005.
[37] F. Fontana, “Computation of linear filter networks containing delay-free loops, [63] J. Merimaa, T. Lokki, T. Peltonen, and M. Karjalainen, “Measurement, analysis,
with an application to the waveguide mesh,’’ IEEE Trans. Speech Audio and visualization of directional room responses,’’ presented at AES 111th Conv.,
Processing, vol. 11, no. 6, pp. 7743–782, Nov. 2003. New York, NY, Nov. 2001, preprint 5449. [SP]