Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions noisereduce/noisereduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import scipy
import tempfile
from tqdm.auto import tqdm

#1234
def sigmoid(x, shift, mult):
"""
Using this sigmoid to discourage one network overpowering the other
Expand Down Expand Up @@ -102,6 +102,9 @@ def __init__(
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
Expand Down Expand Up @@ -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)