Skip to content

License and credits

License

compas_acoustics is released under the MIT license.

MIT License

Copyright (c) 2025 Gramazio Kohler Research, ETH Zurich

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Authors

The authors are listed in CITATION.cff and in the citation on the home page, at Gramazio Kohler Research, ETH Zurich.

Bundled data

The package ships data with its own sources and licences, which can be stricter than the MIT license of the code. Check them before you use or distribute the package commercially.

Data Source Licence
Materials library, 90 materials The materials database of pyroomacoustics MIT (pyroomacoustics)
Materials library: brickwall, carpet, concrete, acoustic_plaster, wall_absorber_50mm Unresolved: no source recorded Unresolved
KU100_HRIR_L2702.sofa (HRTF set of Binaural) Far-field HRIR compilation of the Neumann KU 100, TH Koeln (Zenodo). Cite: Bernschuetz (2013), "A Spherical Far Field HRIR/HRTF Compilation of the Neumann KU 100", AIA-DAGA 2013, 592-595. CC BY 3.0 on the Zenodo record, CC BY-SA 3.0 in the file's metadata; the share-alike condition is followed and applies to this data and its adaptations, not to the code.
viola.wav OpenAIR Anechoic Data, University of York CC BY 4.0. Attribute www.openairlib.net / OpenAIR Anechoic Data.
guitar.wav Anechoic Recordings, Audio Group, TH Koeln, by Michio Woirgard, Philipp Stade, Jeffrey Amankwor, Benjamin Bernschuetz and Johannes Arend (an excerpt of Flamenco piece 2, Neumann U89). CC BY-SA 3.0: the share-alike condition applies to this file and its adaptations, not to the code.
castanets.wav Matthias Frank, IEM Graz (sounds), via pyfar (pyfar.signals.files.castanets), resampled to 48 kHz. CC0
female_speech.wav, male_speech.wav EARS dataset. Cite: Richter et al. (2024), "EARS: An Anechoic Fullband Speech Dataset Benchmarked for Speech Enhancement and Dereverberation", Interspeech 2024. CC BY-NC 4.0: no commercial use.

Third-party code

Parts of the code are adapted from other projects, under their own licences.

Edge diffraction (compas_acoustics.hybrid.btms, compas_acoustics.hybrid.diffraction): wedge1st_ir (with _edge_z_of_path and _slot_integrals), wedge2nd_ir, _coordtrans1 and element_grid follow EDwedge1st_ir, EDwedge2nd, EDcoordtrans1, EDcreindexmatrix and EDmakeHODirs of the Edge Diffraction Toolbox v0.504 by Peter Svensson; btms_paths and coplanar_thetas take rules from its EDed2geo, EDfindconvexGApaths, EDmakefirstorderirs and EDmakeHODirs. The toolbox is under the BSD license:

Copyright (c) 2018, Peter Svensson All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

- Redistributions of source code must retain the above copyright notice,
  this list of conditions and the following disclaimer.

- Redistributions in binary form must reproduce the above copyright
  notice, this list of conditions and the following disclaimer in the
  documentation and/or other materials provided with the distribution

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDEN- TAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUD- ING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTER- RUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Air (compas_acoustics.room._pyfar_constants): Cramer's speed of sound and the ISO 9613-1 air attenuation are copied from pyfar 0.8.1 (pyfar.constants), for Python versions that pyfar 0.8 does not support, under the MIT license:

Copyright (c) [2020] [The pyfar developers]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.