#6868th of 70 in Open modelsFor voice, speech and music

basic-pitch

Python library that transcribes audio to MIDI with pitch bends

Stars
6k
License
Apache-2.0
Last commit
Nov 2025
Last release
Aug 2024
Language
Python
Stars, last 29 weeks+1,165
20 Apr 2026: 4,880 stars27 Apr 2026: 4,913 stars4 May 2026: 4,939 stars11 May 2026: 4,966 stars18 May 2026: 5,001 stars25 May 2026: 5,037 stars1 Jun 2026: 5,075 stars8 Jun 2026: 5,114 stars15 Jun 2026: 5,146 stars22 Jun 2026: 5,182 stars29 Jun 2026: 5,208 stars6 Jul 2026: 5,239 stars13 Jul 2026: 5,260 stars20 Jul 2026: 5,283 stars27 Jul 2026: 5,323 stars3 Aug 2026: 5,354 stars10 Aug 2026: 5,386 stars17 Aug 2026: 5,430 stars24 Aug 2026: 5,467 stars31 Aug 2026: 5,499 stars7 Sept 2026: 5,534 stars14 Sept 2026: 5,560 stars21 Sept 2026: 5,600 stars28 Sept 2026: 5,633 stars5 Oct 2026: 5,662 stars12 Oct 2026: 5,876 stars19 Oct 2026: 5,936 stars26 Oct 2026: 5,972 stars2 Nov 2026: 6,015 stars9 Nov 2026: 6,045 stars

4,880 on 20 Apr 20266,045 on 9 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Basic Pitch is a Spotify Audio Intelligence Lab library for automatic music transcription. It runs a lightweight neural network that turns an audio file into polyphonic MIDI with pitch bends, without being tied to one instrument. It ships as a pip package with a CLI and a Python API, and includes TensorFlow, CoreML, TFLite and ONNX versions of the model.

Who it is for: Developers and musicians who need audio-to-MIDI transcription in scripts or apps

Strengths

  • Instrument-agnostic polyphonic transcription to MIDI, including pitch bends
  • Model ships in TensorFlow, CoreML, TensorFlowLite and ONNX formats
  • CLI can also save a WAV rendering, raw NPZ outputs and CSV note events
  • Installs with pip and does not require TensorFlow by default

Weaknesses

  • Meant for one instrument at a time; multi-instrument mixes are not the target
  • Stereo input is down-mixed to mono and resampled to 22050 Hz
  • Mac M1 supported only on Python 3.10; README lists Python up to 3.11
  • Last release was August 2024

What it needs

  • Docker
  • Needs librosa, TensorFlow (optional)
  • Models: TensorFlow, CoreML, TensorFlow Lite, ONNX

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Quick answers

Is basic-pitch open source?

Yes. Its code is on GitHub under the Apache-2.0 license.

Can you run basic-pitch with Docker?

Yes. Its repository has a Docker setup: a Dockerfile, a Compose file or a published image.

Also in Open models

See all 70
Also in Open models
RankProjectScore
1ruviewWiFi CSI sensing on ESP32 for presence, breathing, heart rate and pose104k starsMIT94 out of 100
2layaSingle-pass multilingual classifier for typed choice, score and yes/no decisions Live demo ↗ (opens in a new tab)35.4k stars+3,167 (+9.8%) in 30 daysApache-2.088 out of 100
3rf-detrReal-time transformer models for object detection, segmentation and keypoints Live demo ↗ (opens in a new tab)10k starsApache-2.079 out of 100
#4timesfmPretrained time-series foundation model for zero-shot forecasting from Google Research35.4k stars+1,231 (+3.6%) in 30 daysApache-2.078 out of 100
#5yolov5PyTorch YOLOv5 object detection, segmentation and classification models with training code58.3k starsAGPL-3.076 out of 100