HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki INTERPOLATED 3-D DIGITAL WAVEGUIDE MESH WITH FREQUENCY WARPING Lauri Savioja 1 and Vesa Välimäki 2 Helsinki University of Technology 1 Telecommunications Software and Multimedia Lab. 2 Lab. of Acoustics and Audio Signal Processing (Espoo, Finland) IEEE ICASSP 2001, Salt Lake City, May 2001
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki ä Introduction ä 3-D Digital Waveguide Mesh ä Interpolated 3-D Digital Waveguide Mesh ä Optimization of Interpolation Coefficients ä Frequency Warping ä Simulation Example of A Cube ä Conclusions Outline
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki Digital waveguidesDigital waveguides are useful in physical modeling of musical instruments and other acoustic systems [8] 2-D digital waveguide mesh2-D digital waveguide mesh (WGM) for simulation of membranes, drums etc. [2] 3-D digital waveguide mesh3-D digital waveguide mesh for simulation of acoustic spaces [3] –Numerous potential applications: Acoustic design of concert halls, churches, auditoria, listening rooms, movie theaters, cabins of vehicles, or loudspeaker enclosures Introduction
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki Former Methods Ray-tracing –A statistical method –Inaccurate at low frequencies
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki Image-source method –Based on mirror images of the sound source(s) –Accurate modeling of low-order reflections –Inaccurate at low frequencies Former Methods (2)
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki New Method Digital waveguide mesh –Finite-difference method –Sound propagates through the network from node to node –Wide frequency range of good accuracy –Requires much memory
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki In the original WGM, wave propagation speed depends on direction and frequency [3] –Rectangular mesh More advanced structures improve this problem, e.g., – Triangular and tetrahedral WGMs [3], [7], (Fontana & Rocchesso, 1995, 1998) Interpolated WGM – Interpolated WGM [5], [6] Direction-dependence is reduced but frequency- dependence remains Dispersion ! Dispersion ! Sophisticated Waveguide Mesh Structures
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki Interpolated 2-D Waveguide Mesh Original 2-D WGM [2] Hypothetical 8-directional 2-D WGM Interpolated 2-D WGM [5], [6]
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki Wave Propagation Speed Original 2-D WGM Interpolated 2-D WGM (bilinear interpolation) 1 c 2 c 1 c 2 c
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki Wave Propagation Speed (2) Original 2-D WGM Interpolated 2-D WGM (Optimal interpolation [6]) 1 c 2 c
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki Original 3-D Digital Waveguide Mesh Difference equation for pressure at each node p(n+1, x, y, z) = (1/3) [p(n, x + 1, y, z) + p(n, x – 1, y, z) + p(n, x, y + 1, z) + p(n, x, y – 1, z) + p(n, x, y, z + 1) + p(n, x, y, z – 1)] – p(n–1, x, y, z) where p(n, x, y, z) is the sound pressure at time step n at position (x, y, z)
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki Interpolated 3-D Digital Waveguide Mesh Difference scheme for the interpolated 3-D WGM where coefficients h are
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki Interpolated 3-D Digital Waveguide Mesh (2) Original WGM All neighbors in interpolated WGM 3D-diagonal neighbors 2D-diagonal neighbors
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki Optimization of Coefficients Two constraints must be satisfied: 1) 2) Wave travel speed at dc (0 Hz) must be unity From the first constraint, we may solve 1 coefficient: Another coefficient can be solved using the 2), for example:
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki Optimization of Coefficients (2) The remaining 2 coefficients can be optimized We searched for a solution where the difference between the min and max error curves is minimized: h a = h 2D = h 3D = h c =
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki (a) Original WGM (b) Interpolated WGM Line types Axial — blue 2D-diagonal — cyan 3D-diagonal — red Relative Frequency Error (RFE)
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki Frequency Warping Dispersion error of the interpolated WGM can be reduced by frequency warping [11] because –Difference between the max and min errors is small –RFE curve is smooth Postprocessing of the response of the WGM 3 different approaches: warped-FIR filter 1) Time-domain warping using a warped-FIR filter [6], [12] 2) Time-domain multiwarping 3) Frequency warping in the frequency domain
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki Frequency Warping: Warped-FIR Filter Chain of first-order allpass filters s(n) is the signal to be warped s w (n) is the warped signal The extent of warping is determined by A(z)A(z)A(z)A(z) A(z)A(z)A(z)A(z) A(z)A(z)A(z)A(z) s(0)s(0)s(0)s(0) s(1)s(1)s(1)s(1) s(2)s(2)s(2)s(2) s(L-1) (n)(n)(n)(n) sw(n)sw(n)sw(n)sw(n)
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki Frequency Warping: Resampling Every time-domain frequency-warping operation must be accompanied by a sampling rate conversion –All frequencies are shifted by warping, including those that should not Resampling factor: (Phase delay of the allpass filter at the zero frequency) With optimal warping and resampling, the maximal RFE is reduced to 3.8%
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki Multiwarping How to add degrees of freedom to the time-domain frequency-warping to improve the accuracy? Frequency-warping and sampling-rate-conversion operations can be cascaded –Many parameters to optimize: 1, 2,... D 1, D 2,... We call this multiwarping [12], [13] Maximal RFE is reduced to 2.0%
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki Frequency Warping in the Frequency Domain Non-uniform resampling of the Fourier transformNon-uniform resampling of the Fourier transform [14], [15] –Postprocessing of the output signal of the mesh in the frequency domain Warping function can be the average of the RFEs in 3 different directions Maximal RFE is reduced to 0.78%
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki (a) Single warping (b) Multiwarping (c) Warping in the frequency domain Improvement of Accuracy Three versions of frequency warping applied to the optimally interpolated WGM
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki Original WGM (a) Original WGM Interpolated & Multiwarped (b) Interpolated & Multiwarped Interpolated & warped in the frequency domain (c) Interpolated & warped in the frequency domain red line—analytical (red line—analytical) Simulation of a Cubic Space Frequency response of a cubic space simulated using the interpolated WGM
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki Conclusions Optimally interpolatedOptimally interpolated 3-D digital waveguide mesh –Interpolation yields nearly direction-dependent wave propagation characteristics rectangular mesh –Based on the rectangular mesh, which is easy to use frequency warpingThe remaining dispersion can be reduced by using frequency warping –In the time-domain or in the frequency-domain Future goal: simulation of acoustic spaces using the interpolated 3-D waveguide mesh
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki References [1] L. Savioja, T. Rinne, and T. Takala, “Simulation of room acoustics with a 3-D finite difference mesh,” in Proc. Int. Computer Music Conf., Aarhus, Denmark, Sept [2] S. Van Duyne and J. O. Smith, “The 2-D digital waveguide mesh,” in Proc. IEEE WASPAA’93, New Paltz, NY, Oct [3] S. Van Duyne and J. O. Smith, “The tetrahedral digital waveguide mesh,” in Proc. IEEE WASPAA’95, New Paltz, NY, Oct [4] L. Savioja, “Improving the 3-D digital waveguide mesh by interpolation,” in Proc. Nordic Acoustical Meeting, Stockholm, Sweden, Sept. 1998, pp. 265–268. [5] L. Savioja and V. Välimäki, “Improved discrete-time modeling of multi-dimensional wave propagation using the interpolated digital waveguide mesh,” in Proc. IEEE ICASSP’97, Munich, Germany, April [6] L. Savioja and V. Välimäki, “Reducing the dispersion error in the digital waveguide mesh using interpolation and frequency-warping techniques,” IEEE Trans. Speech and Audio Process., March [7] S. Van Duyne and J. O. Smith, “The 3D tetrahedral digital waveguide mesh with musical applications,” in Proc. Int. Computer Music Conf., Hong Kong, Aug
HELSINKI UNIVERSITY OF TECHNOLOGY Savioja and Välimäki [8] J. O. Smith, “Principles of digital waveguide models of musical instruments,” in Applications of Digital Signal Processing to Audio and Acoustics, M. Kahrs and K. Brandenburg, Eds., chapter 10, pp. 417–466. Kluwer Academic, Boston, MA, [9] J. Strikwerda, Finite Difference Schemes and Partial Differential Equations, Chapman & Hall, New York, NY, [10] L. Savioja and V. Välimäki, “Reduction of the dispersion error in the triangular digital waveguide mesh using frequency warping,” IEEE Signal Process. Letters, March [11] A. Oppenheim, D. Johnson, and K. Steiglitz, “Computation of spectra with unequal resolution using the Fast Fourier Transform,” Proc. IEEE, Feb [12] V. Välimäki and L. Savioja, “Interpolated and warped 2-D digital waveguide mesh algorithms,” in Proc. DAFX-00, Verona, Italy, Dec [13] L. Savioja and V. Välimäki, “Multiwarping for enhancing the frequency accuracy of digital waveguide mesh simulations,” IEEE Signal Processing Letters, May [14] J. O. Smith, Techniques for Digital Filter Design and System Identification with Application to the Violin, Ph.D. thesis, Stanford University, June [15] J.-M. Jot, V. Larcher, and O. Warusfel, “Digital signal processing issues in the context of binaural and transaural stereophony,” in 98th AES Convention, Paris, Feb