A lightweight yet powerful audio-to-MIDI converter with pitch bend detection
Python audiolightweightmachine-learningmidimusicpitch-detectionpolyphonicpythontranscriptiontypescript
formatting
Doherty Guirand05166a9ff40e
diff --git a/basic_pitch/note_creation.py b/basic_pitch/note_creation.pyindex 2f77e36..7b52552 100644--- a/basic_pitch/note_creation.py+++ b/basic_pitch/note_creation.py@@ -429,7 +429,6 @@ def output_to_notes_polyphonic()if melodia_trick:-energy_shape = remaining_energy.shapewhile np.max(remaining_energy) > frame_thresh:@@ -440,7 +439,6 @@ def output_to_notes_polyphonic(i = i_mid + 1k = 0while i < n_frames - 1 and k < energy_tol:-if remaining_energy[i, freq_idx] < frame_thresh:k += 1else:@@ -460,7 +458,6 @@ def output_to_notes_polyphonic(i = i_mid - 1k = 0while i > 0 and k < energy_tol:-if remaining_energy[i, freq_idx] < frame_thresh:k += 1else:diff --git a/tests/test_note_creation.py b/tests/test_note_creation.pyindex 50a4a28..630bec1 100644--- a/tests/test_note_creation.py+++ b/tests/test_note_creation.py@@ -19,7 +19,6 @@ from basic_pitch.note_creation import drop_overlapping_pitch_bendsdef test_drop_overlapping_pitch_bends() -> None:-# events are: (start, end, pitch, amplitude, pitch_bend)note_events_with_pitch_bends = [(0.0, 0.1, 60, 1.0, None),