Skip to content

Commit

Permalink
Use newer scipy gaussian window fn
Browse files Browse the repository at this point in the history
  • Loading branch information
David Rubinstein committed Apr 16, 2024
1 parent 5fc20dd commit 85df25b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion basic_pitch/note_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = [
Expand Down

0 comments on commit 85df25b

Please sign in to comment.