A room impulse response generator using pybind11
Project description
Generate a room impuse response in the frequency domain.
Documentation
Read the documentation Docs
Time domain
Plot a typical impulse repsonse for a room 80 x 12 x 100 sample lengths long. Wall reflection coefficients were all 0.9, ceiling and floor coefficients were 0.7. Source and receiver were at (30, 100, 40) amd (50, 10, 60) sample periods [1].
Installation
The python libraries necessary ro run this can be installed using pip as follows
$ pip install .
$ pip install -r requirements.txt
Testing
The unit tests are located in the tests directory, they can be run from the root directory
$ python -m unittest discover -s tests
Publish Package
$ python3 -m build # Build package into dist folder.
$ mv dist/freqrir-0.0.1-cp39-cp39-linux_x86_64.whl dist/freqrir-0.0.1-cp39-none-manylinux1_x86_64.whl
$ python3 -m twine upload dist/* # Upload to PyPi
References
Allen, J. B., & Berkley, D. A. (1979). Image method for efficiently simulating small‐room acoustics. The Journal of the Acoustical Society of America, 65(4), 943-950. Available
Lehmann, Eric A., and Anders M. Johansson. “Prediction of energy decay in room impulse responses simulated with an image-source model.” The Journal of the Acoustical Society of America 124.1 (2008): 269-277. Available
Peterson, P. M. (1986). Simulating the response of multiple microphones to a single acoustic source in a reverberant room. The Journal of the Acoustical Society of America, 80(5), 1527-1529. Available
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for freqrir-0.0.2-cp39-none-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 377c33eb9e97c8c12cc3f3333a49db515e81a9fd999846436c326309ee1d7313 |
|
MD5 | 4e2e0c4619c9d4dc713e36adce05a551 |
|
BLAKE2b-256 | b357bebd9683d4a18864f5d0ce74adb5b6f4e6d56fb4659ff19c118b720d49a9 |