From 7538a655b6257112782d99cdd15bb03f9c92ea49 Mon Sep 17 00:00:00 2001 From: Robin Scheibler Date: Mon, 5 Aug 2024 16:59:49 +0900 Subject: [PATCH] Fixes default value of parameter of RT60 measuring function --- CHANGELOG.rst | 6 +++++- pyroomacoustics/experimental/rt60.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index deba4a8d..b6c02ee6 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -11,7 +11,11 @@ adheres to `Semantic Versioning `_. `Unreleased`_ ------------- -Nothing yet. +Bugfix +~~~~~~ + +- Fixes the default value of `energy_thres` in `experimental.rt60` to match the + previous behavior of the function (issue #358) `0.7.5`_ - 2024-06-18 --------------------- diff --git a/pyroomacoustics/experimental/rt60.py b/pyroomacoustics/experimental/rt60.py index b3634540..d9df7ee2 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=0.95, plot=False, rt60_tgt=None): +def measure_rt60(h, fs=1, decay_db=60, energy_thres=1.0, plot=False, rt60_tgt=None): """ Analyze the RT60 of an impulse response. Optionaly plots some useful information.