Basic Pitch
An open-source Python library that converts instrument recordings into MIDI with simultaneous notes and pitch bends, using local inference.

Basic Pitch turns recorded music into editable MIDI for musicians and producers who want to work with a performance in a digital audio workstation. Developed by Spotify, it works across instruments and gives the best results with one instrument at a time.
- Notes and pitch bends: Transcribe simultaneous notes from polyphonic instruments, such as piano or guitar, and capture pitch bends in the MIDI output.
- Browser recording: Use the separate website demo to record a sung phrase or upload an audio file, then download MIDI for editing in your DAW. The demo processes audio on your machine and doesn't store it.
- Local batch processing: Use the Python library or command-line tool to transcribe multiple recordings and incorporate audio-to-MIDI conversion into your own software.
- Additional outputs: Export note events as CSV or create a WAV rendering of the MIDI to hear the transcription.
The Python library is open source under Apache 2.0 and runs locally on macOS, Windows and Ubuntu. It includes TensorFlow, CoreML, TensorFlow Lite and ONNX versions of its model. Mac M1 support is limited to Python 3.10. It accepts common audio formats including MP3, WAV, FLAC, OGG and M4A, subject to its audio decoding dependencies. Stereo recordings are mixed down to mono for transcription.