A lightweight yet powerful audio-to-MIDI converter with pitch bend detection
Python audiolightweightmachine-learningmidimusicpitch-detectionpolyphonicpythontranscriptiontypescript
fix linter py3.8 issue
Tan Hao Haod7d2fac1afc3
diff --git a/basic_pitch/note_creation.py b/basic_pitch/note_creation.pyindex 11a046f..f64fed3 100644--- a/basic_pitch/note_creation.py+++ b/basic_pitch/note_creation.py@@ -106,7 +106,10 @@ def model_output_to_notes(return note_events_to_midi(estimated_notes_time_seconds, multiple_pitch_bends), estimated_notes_time_seconds-def sonify_midi(midi: pretty_midi.PrettyMIDI, save_path: Union[pathlib.Path, str], sr: Optional[int] = 44100+def sonify_midi(+ midi: pretty_midi.PrettyMIDI,+ save_path: Union[pathlib.Path, str],+ sr: Optional[int] = 44100) -> None:"""Sonify a pretty_midi midi object and save to a file.