趣味人のブログ

Cogito, ergo sum. 我思う故に我あり.

Sphere Scattering Effect Filter

This document describes details of sphere scattering effect filter. It inputs an incident wave to a rigid sphere then outputs the incident and scattered waves by the sphere. SoundObject enables a sense of leftward and rightward distance with it. Since the exact solution of the scattering by a rigid sphere is complicated, an approximate solution based on the dipole source is proposed. Next, the frequency and directional characteristics of the scattering effect by a sphere based on the proposed approximation are explained. Finally, this document describes the design and evaluation of the digital filter implementing the scattering effect by a sphere then clarifies that it enables a clearer sense of distance compared with the effects based on interaural time difference (ITD) and interaural level difference (ILD).

1. Scattering by a rigid sphere

As shown in Fig. 1, we assume a plane wave propagating to the negative direction of the x-axis as against a rigid sphere whose center is located at the origin and radius is a. Let G () be a frequency transfer function representing a ratio of sound pressure observed in the surface area of the sphere to that of the plane wave. We find G () from the acoustic fields of the plane wave and the scattering waves from the sphere observed at coordinate (r, θ0). In this case, the virtual sound source position of the scattering is located at the origin. In this document, j, t, c, ω, k, and ρ denote the imaginary unit, time, acoustic speed, angular frequency of the wave, wavenumber (k = ω/c), and medium density respectively.

f:id:suzumushi0:20210807154509p:plain

Fig. 1: Scattering by a rigid sphere.

Note: The above coordinate system is different from that of SoundObject.

1.1 Exact solution

The exact solution for the above problem is well known [1]. The acoustic field of plane wave pi is given below, where Pn denotes Legendre polynomials and jn denotes spherical Bessel functions.

(1) pi=n=0jn2n+1Pncosθojnkr

And the acoustic field of scattering waves pr is given below, where hn(2) denotes spherical Hankel functions.

(2) pr=-n=0jn2n+1Pncosθojn'kahn2krhn2'ka

Therefore, the frequency transfer function G () representing a ratio of sound pressure observed in the surface area of the sphere to that of the plane wave is given below.

(3) Gjω=pi+prpir=a

1.2 Known approximate solutions

Since the above exact solution is computable but highly complicated, approximate solutions are proposed. [1] and [2] show approximations of scattered waves for ka ≪ 1. However, in head approximation by sphere, the frequency that gives ka = 1 is approximately 760Hz. Thus, these are unpractical for this application. Furthermore, [2] describes an approximation of scattered waves by the dipole source for kr ≪ 1, while it is also inapplicable. Therefore, this document proposes a further approximation of scattered waves by the dipole source.

1.3 Proposed approximate solution

Let Φi be the velocity potential of a plane wave observed at coordinate (r, θ0). It is given below, where A is an undetermined coefficient.

(4) Φi=Aejωt+kx=Aejωt+krcosθo

We approximate the scattered waves by the dipole source located at the origin. Let Φr be the velocity potential of scattered waves observed at coordinate (r, θ0). It is given by the following equation, where B is also an undetermined coefficient.

(5) Φr=Bcosθor21+jkrejωt-kr

Therefore, the velocity potential Φ in the neighborhood of the sphere is given below.

(6) Φ =Φi+Φr =Aejkrcosθo+Bcosθor21+jkre-jkrejωt

To obtain the particle velocity, we find the normal derivative of the above equation.

(7) Φr =jkAcosθoejkrcosθo-Bcosθo1r32+jkre-jkr+jkrr31+jkre-jkrejωt =jkAcosθoejkrcosθo-Bcosθor3jkr2+j2kr+2e-jkrejωt

The particle velocity is 0 at r = a.

(8) Φrr=a=0 B=jka3Aejkacosθojka2+j2ka+2e-jka

Thus, the velocity potential Φ in the neighborhood of the sphere is given below.

(9) Φ=Aejkrcosθo+jka3Aejkacosθojka2+j2ka+2e-jkacosθor21+jkre-jkrejωt

Finally, the velocity potential in the surface area of the sphere is given below.

(10) Φr=a=Aejωt+kacosθo1+jka1+jkacosθojka2+j2ka+2

2. Transfer function of scattering effect by sphere

Based on the above discussions, the frequency transfer function G () representing a ratio of sound pressure observed in the surface area of the sphere to that of the plane wave is given below.

(11) Gjω =ρΦtρΦitr=a=jωΦjωΦir=a =1+jka1+jkacosθojka2+j2ka+2 =1+jaω2+jacωjaω2+j2acω+2c2cosθo

The transfer function G (s) corresponding to the above frequency transfer function G () is given below, where ωc = c /a.

(12) Gs =1+a2s2+acsa2s2+2acs+2c2cosθo =1+cosθo-ωcs+2ωccosθos2+2ωcs+2ωc2

An example of frequency characteristics of G () is shown below, where c = 343.7 m/s and a = 71.5 mm.

f:id:suzumushi0:20210807160042p:plain

Fig. 2: An example of frequency characteristics of scattering effect by a sphere.

And an example of directional characteristics of G () is also shown below, where the radius direction and angle from the x-axis show gain (ratio) and θo respectively. The frequency whose wave length is equal to the diameter of the sphere is approximately 2,400Hz. The figure illustrates that the incident wave less than 2,000Hz is significantly propagated to the behind of the sphere. However, over 2,000Hz, differences in the front directional gain are rarely observed. Furthermore, over 3,000Hz, there is no significant difference in the directional characteristics.

f:id:suzumushi0:20211027192258p:plain

Fig. 3: An example of directional characteristics of scattering effect by a sphere.

For reference, an example of directional characteristics of the frequency transfer function based on the exact solution numerically calculated from equation (3) is shown below. Although slight differences are observed in detail, directional characteristics tendencies based on the exact and approximate solutions are the same. Since head is not a strictly rigid sphere, sufficient effects are expected by the proposed approximate solution.

f:id:suzumushi0:20211027192326p:plain

Fig. 4: An example of directional characteristics based on the exact solution.

Note: A numerical calculation program of the exact solution is available on the following link.

github.com

3. Sphere scattering effect filter

With bilinear transformation, we find an infinite impulse response (IIR) filter that implements a system transfer function H (z) equivalent to the transfer function G (s) denoted by equation (12). Bilinear transform-based design method for IIR filters is well-known, thus leaving out a detailed explanation. If needed, refer to the following document. (In Japanese).

suzumushi0.hatenablog.com

The correspondence relationship between angular frequencies of the transfer function G (s) and system transfer function H (z) is warped by bilinear transformation. Therefore, compensated angular frequency ωa corresponding to ωc is shown below, where T denotes sampling interval.

(13) ωa=tanωcT2=tancT2a

Thus, the system transfer function H (z) is given below.

(14) Hz=Gss=1-z-11+z-1, ωc=ωa =1+cosθo-ωa1-z-11+z-1+2ωacosθo1-z-11+z-12+2ωa1-z-11+z-1+2ωa2 =1+cosθo-ωa2ωa+1+4ωaz-1+2ωa-1z-2cosθo2ωa2+2ωa+1+22ωa2-1z-1+2ωa2-2ωa+1z-2 =1+ωa+1-2z-1-ωa-1z-2cosθo2ωa2+2ωa+1+22ωa2-1z-1+2ωa2-2ωa+1z-2

The above could be essentially implemented as a second-order IIR filter (biquad filter). An example of frequency characteristics of the above digital filter is shown below, where T = 1 /44,100 s.

f:id:suzumushi0:20210807161050p:plain

Fig. 5: An example of frequency characteristics of sphere scattering effect filter.

4. Evaluation

SoundObject could select the output from scattered waves by the sphere and incident wave with ITD and ILD. Therefore, the sphere scattering effect filter could be evaluated with comparisons of these outputs. As shown in the following video, the latter output sounds like the acoustic source locates close to the ear regardless of the distance. On the other hand, the former demonstrates a clearer sense of distance enabled by the sphere scattering effect filter.


www.youtube.com

References

[1] P. M. Morse, "Vibration and Sound, Second Ed.," International series in pure and applied physics, McGRAW-HILL, 1948.

[2] T. Ito, "Principles of Acoustic Engineering," Corona Publishing, 1955 (In Japanese). Acoustic Lab. - Waseda Univ.