Awesome
RIR-Generator
The image method, proposed by Allen and Berkley in 1979 [1], is probably one of the most frequently used methods in the acoustic signal processing community to create synthetic room impulse responses. A mex-function, which can be used in MATLAB, was developed to generate multi-channel room impulse responses using the image method. This function enables the user to control the reflection order, room dimension, and microphone directivity.
This repository includes a tutorial, MATLAB examples, and the source code of the mex-function. A similar interface is available as a Python module and a C++ shared library.
More information can be found here.
Credits
- Emanuël Habets (https://github.com/ehabets/RIR-Generator): Provided C++ code with MATLAB bindings
- Marvin (https://github.com/Marvin182/rir-generator): Add python bindings
- Here:
- Remove shared library and rewrite code, that it only uses cython
- Let setup.py do everything (i.e. drop makefile call), i.e. support pip
- Convert examples to tests
Install
You can use pip to install it from github
pip install git+https://github.com/boeddeker/rirgen
or clone it and use pip to install from a local folder
git clone https://github.com/boeddeker/rirgen
cd rirgen
pip install .
References
- J.B. Allen and D.A. Berkley, "Image method for efficiently simulating small-room acoustics," Journal Acoustic Society of America, 65(4), April 1979, p 943.