Skip to main content

SCENE-RIR, Room Impulse Response package for the SCENE project.

Project description

scene-rir

Room Impulse Response extraction package.

Copyright (C) 2025 Christos Sevastiadis

License: GNU GPL v3.0

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Description

The purpose of the package is to extract the room impulse response (RIR) from the recorded response signal of a proper excitation signal. The new swept-sine measurement method [1] is applied. Both linear sweep, corresponding to a white spectrum noise signal, and sweep with its frequency increasing exponentially with time, corresponding to pink spectrum noise signal, are implemented. The exponential swept-sine production is based on Angelo Farina's methodology [2].

It is part of the Audio Simulation Module, developed for the "Searchable multi-dimensional data lakes, supporting Cognive film production & distribution, for the promotion of the EuropeaN Cultural HeritagE" Horizon project, SCENE (2023-2025).

Installation

Use pip to install scene-rir

pip install scene-rir

(Requires Python>=3.8)

Installation verification

To check if the package was installed successfully, try:

python -c "import scene_rir.rir; help(scene_rir.rir)

If the scene-rir is installed, this command will print all of its help documentation string.

Examples of usage

Examples of usage can be found in the examples and tests directories of the repository tree. There are Python scripts in .py files, and Jupyter notebooks in .ipynb files. To execute the test .ipynb notebooks, the directory input with its content should be downloaded, either. To execute the examples and the tests, some extra packages should be installed, for example, the matplotlib package.

Usage from the Comman Line

Open a Terminal or Command Prompt

  • Windows: Press Win + R, type cmd, and hit Enter.
  • Mac/Linux: Open the terminal from your applications menu or use Ctrl + Alt + T.

Use the following command to get help for the Command Line usage

python -m scene_rir.rir --help

References

  • [1]: International Organization for Standardization (2006). Acoustics — Application of new measurement methods in building and room acoustics (ISO Standard No. 18233). Retrieved from https://www.iso.org/standard/40408.html.
  • [2]: Farina, A. (2000, February). Simultaneous measurement of impulse response and distortion with a swept-sine technique. In Audio Engineering Society Convention 108. Audio Engineering Society.

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

scene_rir-2025.3.tar.gz (3.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scene_rir-2025.3-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file scene_rir-2025.3.tar.gz.

File metadata

  • Download URL: scene_rir-2025.3.tar.gz
  • Upload date:
  • Size: 3.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.14

File hashes

Hashes for scene_rir-2025.3.tar.gz
Algorithm Hash digest
SHA256 9584ed325515b0442d951e5ac5f801986672cf9100d07abd8fabaa22d006d085
MD5 c05fdfac89b3600881c896df5fcd8c61
BLAKE2b-256 2de6e318a83d28c847a1e793fca7fe44854bcf6aaa4063b3c5cb20900c79bcd1

See more details on using hashes here.

File details

Details for the file scene_rir-2025.3-py3-none-any.whl.

File metadata

  • Download URL: scene_rir-2025.3-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.14

File hashes

Hashes for scene_rir-2025.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e2f5f386167c459cf9ee805bd765eb4f48824f443c3b0ca838abb1212fced0b2
MD5 6977b75c1a423f4e30ced89f25ded51c
BLAKE2b-256 bb26a83fee7c5a0b9df2ed178a249633cfd9d68bef3d9cb0873e32ef19aa6d6c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page