diff --git a/basic_pitch/note_creation.py b/basic_pitch/note_creation.py index 5a8072c..0338b6f 100644 --- a/basic_pitch/note_creation.py +++ b/basic_pitch/note_creation.py @@ -190,7 +190,7 @@ def get_pitch_bends( note events with pitch bends """ window_length = n_bins_tolerance * 2 + 1 - freq_gaussian = scipy.signal.gaussian(window_length, std=5) + freq_gaussian = scipy.signal.windows.gaussian(window_length, std=5) note_events_with_pitch_bends = [] for start_idx, end_idx, pitch_midi, amplitude in note_events: freq_idx = int(np.round(midi_pitch_to_contour_bin(pitch_midi))) diff --git a/pyproject.toml b/pyproject.toml index 2469837..75bdb4e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "basic-pitch" -version = "0.3.0" +version = "0.3.1" description = "Basic Pitch, a lightweight yet powerful audio-to-MIDI converter with pitch bend detection." keywords = [] classifiers = [ @@ -17,7 +17,7 @@ classifiers = [ "Programming Language :: Python :: Implementation :: CPython", ] dependencies = [ - "coremltools; platform_system == 'Darwin' and python_version < '3.11'", + "coremltools; platform_system == 'Darwin'", "librosa>=0.8.0", "mir_eval>=0.6", "numpy>=1.18", @@ -26,8 +26,8 @@ dependencies = [ "resampy>=0.2.2,<0.4.3", "scikit-learn", "scipy>=1.4.1", - "tensorflow>=2.4.1,<2.16; platform_system != 'Darwin' and python_version >= '3.11'", - "tensorflow-macos>=2.4.1; platform_system == 'Darwin' and python_version >= '3.11'", + "tensorflow>=2.4.1,<2.15.1; platform_system != 'Darwin' and python_version >= '3.11'", + "tensorflow-macos>=2.4.1,<2.15.1; platform_system == 'Darwin'", "tflite-runtime; platform_system == 'Linux' and python_version < '3.11'", "typing_extensions", ] @@ -56,8 +56,8 @@ test = [ "pytest-mock", ] tf = [ - "tensorflow>=2.4.1,<2.16; platform_system != 'Darwin'", - "tensorflow-macos>=2.4.1,<2.16; platform_system == 'Darwin' and python_version > '3.7'", + "tensorflow>=2.4.1,<2.15.1; platform_system != 'Darwin'", + "tensorflow-macos>=2.4.1,<2.15.1; platform_system == 'Darwin' and python_version > '3.7'", ] coreml = ["coremltools"] onnx = ["onnxruntime"]