From 85df25b1592f2f0d56da8e7042f4b63be66f5c00 Mon Sep 17 00:00:00 2001 From: David Rubinstein Date: Tue, 16 Apr 2024 12:45:43 -0400 Subject: [PATCH] Use newer scipy gaussian window fn --- basic_pitch/note_creation.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/basic_pitch/note_creation.py b/basic_pitch/note_creation.py index 5a8072ca..0338b6fa 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 24698370..51bb5a99 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 = [