Skip to content

Commit

Permalink
rt60: default value of energy_thresh=0.95. CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
fakufaku committed May 23, 2024
1 parent 0049f3f commit 3429338
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ adheres to `Semantic Versioning <http://semver.org/spec/v2.0.0.html>`_.
`Unreleased`_
-------------

Nothing yet
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.

`0.7.4`_ - 2024-04-25
---------------------
Expand Down
2 changes: 1 addition & 1 deletion pyroomacoustics/experimental/rt60.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import numpy as np


def measure_rt60(h, fs=1, decay_db=60, energy_thres=1.0, plot=False, rt60_tgt=None):
def measure_rt60(h, fs=1, decay_db=60, energy_thres=0.95, plot=False, rt60_tgt=None):
"""
Analyze the RT60 of an impulse response. Optionaly plots some useful information.
Expand Down

0 comments on commit 3429338

Please sign in to comment.