Pyroomacoustics

Latest version: v0.8.2

Safety actively analyzes 685670 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

0.8.1

---------------------

Bugfix
~~~~~~

- Adds the missing ``pyroomacoustics.directivities`` to the package list in ``setup.py``.

0.8.0

---------------------

This new version introduces some major changes. In particular, it introduces
the use of measured microphone and source directivities. This new feature
allows to simulate more accurately real recording equipments. See the
`documentation
<https://pyroomacoustics.readthedocs.io/en/latest/pyroomacoustics.directivities.html>`_
for more details.

Added
~~~~~

- New global parameters to control the octave bands used for simulation.

- ``octave_bands_base_freq``: the base frequency used for the octave bands (default ``125``),
note that together with the sampling frequency this will determine the number of sub-bands
used in simulation.
- ``octave_bands_n_fft``: lengths of the octave band filters (current is default ``512``
but will be changed to ``128`` in the next release)
- ``octave_bands_keep_dc``: extends the lowest band to include the DC offset,
the current default is ``False`` to match past behavior, but will be changed to
``True`` in the next release because the filters have less oscillations this way.

- New parameter ``min_phase`` of class ``Room``. If set to ``True``, the band-pass
filters are designed as minimum phase filters.

- Simulation with measured directivity responses in SOFA format (limited file types) is
possible with the image source model.

- A flexible and extensible SOFA file reader with optional spherical interpolation.
- A small database of files is bundled, including the `DIRPAT database
<https://aes2.org/publications/elibrary-page/?id=19538>`_, collected by
Manuel Brandner, Matthias Frank, and Daniel Rudrich University of Music and
Performing Arts Graz, Graz. The file also include two HRTF of the
`MIT KEMAR dummy head <https://sound.media.mit.edu/resources/KEMAR/README>`_.

- Introduces a new class ``pyroomacoustics.directivities.Rotation3D`` to specify
the orientation of sources and receivers in 3D.

- Adds `soxr <https://github.com/dofuuz/python-soxr>`_ as a dependency since resampling
can often be necessary when working with SOFA files.

Changed
~~~~~~~

- In ray tracing, the histograms are now linearly interpolated between
the bins to obtain smoother RIR
- Changed the API of ``CardioidFamily`` to take a float parameter.
New class wrappers for ``Cardioid``, ``Hypercardioid``, ``Supercardioid``,
``Bidirectional`` and ``Omnidirectional`` are added in the ``directivity``
sub-module. The enum of type ``DirectivityPattern`` has been removed.

0.7.7

---------------------

Bugfix
~~~~~~

- Fixes a bug when plotting an anechoic room
- Fixes a buggy assert from ``rir_build.cpp``
- Makes the build system consistent for all source files in ``pyroomacoustics/libroom_src``
- Fixes a call to a deprecated function of scipy.integrate in ``pyroomacoustics/denoise/iterative_wiener`` (issue 362)

0.7.6

---------------------

Bugfix
~~~~~~

- Fixes the default value of ``energy_thres`` in ``experimental.rt60`` to match the
previous behavior of the function (issue 358)
- Further fixes issue with cast reflections delays to float32 in room.py (353)
which was not fully fixed by the previous update
- Fixes calls to deprecated API of ``scipy.linalg.eigh``
- Fixes use of deprecated feature of numpy (conversion of singleton array to scalar)

0.7.5

---------------------

Changed
~~~~~~~

- Extra parameter ``energy_thresh`` added to ``pyroomacoustics.experimental.measure_rt60``.
The energy tail beyond this threshold is discarded which is useful for noisy RIR
measurements. The default value is 0.95.

Bugfix
~~~~~~

- Fixes a bug in ``beamforming.circular_microphone_array_xyplane`` (348)
- Fixes a bug in ``room.Room.plot_rir`` where the x-axis would have the wrong
ticks when called with ``kind="tf"``
- Fixes an issue where the ``visibility`` attribute of the room is not
set if there are no visible source or image source in the room. (313)
- Fixes issue with cast reflections delays to float32 in room.py (353)
- Fixes calls to ``numpy.linalg.solve`` with Numpy 2.0 API

0.7.4

---------------------

Added
~~~~~

- New implementation of fast RIR builder function in the ``libroom`` C++
extension to replace the current cython code. Advantages are: 1) only one
compiled extension, 2) multithreading support
- New global parameter ``sinc_lut_granularity`` that controls the number of
points used in the look-up table for the sinc interpolation. Accessible via
``parameters.constants.get``.
- New global parameter ``num_threads`` that controls the number of threads
used in multi-threaded code (rir builder only at the moment). The number of
threads can also be controlled via the environement variable
``PRA_NUM_THREADS``
- Adds package build support for Python 3.11 and 3.12. - Adds package build for
new Apple M1 architecture

Changed
~~~~~~~

- Removed the broken ``get_rir`` method of the class ``SoundSource``
- Removes package build support for Python 3.7 (EOL)

Bugfix
~~~~~~

- Fixes a bug when using randomized image source model with a 2D room (315) by
hrosseel
- Fixes a bug when setting the air absorption coefficients to custom values (191),
adds a test, and more details in the doc
- Fixes a bug in the utilities.angle_function in the calculation of the
colatitude (329) by fabiodimarco
- Replaces the crossing-based point-in-polygon algorithm in the C++ code with
the more robust winding number algorithm (345)
- Fixes usage of deprecated hann window with new version of scipy in
`metrics.py` (344) by mattpitkin

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.