Skip to content

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

fmt

John Gao461cfefc8571
diff --git a/basic_pitch/predict.py b/basic_pitch/predict.py
index 0a7147d..075d141 100644
--- a/basic_pitch/predict.py
+++ b/basic_pitch/predict.py
@@ -157,5 +157,6 @@ def main() -> None:
print(e)
print(traceback.format_exc())
+
if __name__ == "__main__":
main()