Calculate multichannel IR files through deconvolution of a recorded sine sweep
Examples and Jupyter notebook included to illustrate the process. To open the notebook, you need to have Jupyter installed (see https://jupyter.org/install).
- Download or clone this repository to a new folder on your computer.
- Run Jupyter from a terminal in this folder via
jupyter notebook
. - Open the Jupyter notebook
IR-Qq-multichannel.ipynb
and execute the cells from top to bottom.
You can also simply run the deconvolve.py
file from your command line (after chmod +x deconvolve.py
).
The help will guide you through the parameters and optional settings:
./deconvolve.py -h
usage: deconvolve.py [-h] [--limit {normalize,clip}] [--crop <threshold>] [--bitdepth <bitdepth>]
[--amp <amplification>]
sweepfile recfile outfile
positional arguments:
sweepfile filename of original sweep
recfile filename of recorded sweep (mono or multichannel)
outfile filename for extracted impulse response (channels identical to recfile)
options:
-h, --help show this help message and exit
--limit {normalize,clip}
Normalize or clip resulting amplitudes
--crop <threshold> Crop resulting samples below threshold at start and end
--bitdepth <bitdepth>
Set bit depth for outfile (defaults to 24)
--amp <amplification>
Amplify resulting impulse response by given dB value
A mono sweep is included in the repository. Record the sweep in a room with a microphone (mono, stereo or arbitrary number of channels) and follow instructions in notebook.
This code generates IR files with the same number of channels as the recorded sweep you are using.
You can use the resulting .wav file with plugins like MatrixConv (https://leomccormack.github.io/sparta-site/docs/plugins/sparta-suite/#matrixconv) in combination with HO-SIRR (https://leomccormack.github.io/sparta-site/docs/plugins/hosirr/) for adding an ambisonics room to your track in real time.