A lightweight yet powerful audio-to-MIDI converter with pitch bend detection
Python audiolightweightmachine-learningmidimusicpitch-detectionpolyphonicpythontranscriptiontypescript
more formatting changes
David Rubinstein6cc3267f5a07
diff --git a/basic_pitch/inference.py b/basic_pitch/inference.pyindex 6817d3b..5168099 100644--- a/basic_pitch/inference.py+++ b/basic_pitch/inference.py@@ -120,7 +120,9 @@ class Model:elif self.model_type == Model.MODEL_TYPES.TFLITE:return cast(tflite.Interpreter, self.model)(x) # type: ignoreelif self.model_type == Model.MODEL_TYPES.ONNX:- return cast(ort.InferenceSession, self.model).run(["note", "onset", "contour"], {"input": x}) # type: ignore+ return cast(ort.InferenceSession, self.model).run( # type: ignore+ ["note", "onset", "contour"], {"input": x}+ )def window_audio_file(