mirror of
https://github.com/timsainb/noisereduce.git
synced 2022-05-11 23:09:24 +03:00
Fixes hop length parameter
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user