Fixes hop length parameter

This commit is contained in:
Tim Sainburg
2022-02-18 09:39:15 -05:00
committed by GitHub
parent d2818c7cf1
commit 3d0dee920d

View File

@@ -102,6 +102,9 @@ class SpectralGate:
self._win_length = win_length
if hop_length is None:
self._hop_length = self._win_length // 4
else:
self._hop_length = hop_length
self._time_constant_s = time_constant_s
self._prop_decrease = prop_decrease
@@ -598,4 +601,4 @@ def _amp_to_db(x):
def _db_to_amp(x,):
return librosa.core.db_to_amplitude(x, ref=1.0)
return librosa.core.db_to_amplitude(x, ref=1.0)