An example of RIR interpolation can be run in RIR_interpolation_Intercon21_example.ipynb. (Google Colab notebook)
- Interpolation errors using the regularized and non-regularized spherical Fourier transform are compared.
Spherical Acoustic is a project focused on room impulse response (RIR) interpolation using the regularized spherical Fourier transform (SFT). The algorithms are applicable to initial data measured by spherical arrays of microphones with different distributions. The project is developed in python although the initial data was simulated in matlab. The general diagram of the RIR interpolation is shown below.
Currently there are 2 libraries:
Library name | description |
---|---|
sphericalAcoustics.py | Functions related to regularized SFT |
tools.py | Functions related to the points distribution on the sphere and 3D signal plotting |
Some RIRs simulated in Matlab are available in /initialRIR . RIRs simulated can be used in tests as initial data and target data.
To use the libraries you have to copy both .py files to the work environment and import.
For example, to generate and plot a spherical harmonic in a icosphere distribution of L points on a sphere of radius 8 cm.
import sphericalAcoustics as sac
import tools as sat
import matplotlib.pyplot as plt
icoDirectory = 'matFiles\icosphere\icolr'
x, L = sat.icosphereDist(icoDirectory, 8)
Y22 = sac.baseFunction(2, 2, x)
fig, ax = sat.plotFunction(Y22, x, polarForm=True)
plt.show()
[1] J. Alarcón, J. Solis, and C. D. Salvador, “Regularized spherical Fourier transform for room impulse response interpolation,” XXVII International Conference on Electronics, Electrical Engineering, and Computing (INTERCON), Lima, Peru, August 2021. [DOI: 10.1109/INTERCON52678.2021.9532805]
-
J. Alarcón.
-
Javier Solis Lastra.