From 3429338cfb38b2354049da7ab912198c281e5c67 Mon Sep 17 00:00:00 2001 From: Robin Scheibler Date: Thu, 23 May 2024 12:23:13 +0900 Subject: [PATCH] rt60: default value of energy_thresh=0.95. CHANGELOG --- CHANGELOG.rst | 7 ++++++- pyroomacoustics/experimental/rt60.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 0fbe9c73..e7e7595c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -11,7 +11,12 @@ adheres to `Semantic Versioning `_. `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 --------------------- diff --git a/pyroomacoustics/experimental/rt60.py b/pyroomacoustics/experimental/rt60.py index d9df7ee2..b3634540 100644 --- a/pyroomacoustics/experimental/rt60.py +++ b/pyroomacoustics/experimental/rt60.py @@ -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.