Skip to content

A lightweight yet powerful audio-to-MIDI converter with pitch bend detection

Use newer scipy gaussian window fn

David Rubinstein85df25b1592f
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..51bb5a9 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 = [