basic-pitch
Basic Pitch, a lightweight yet powerful audio-to-MIDI converter with pitch bend detection.
Decision gist · record as of 2026-08-14
Yes, with conditions. Basic Pitch is production-stable and has no known vulnerabilities, making it suitable for audio-to-MIDI transcription tasks. However, the package is dormant (last release 728 days ago), so verify that the license is compatible with your use case (it is currently unclear in the metadata) and that all 13 runtime dependencies resolve cleanly on your platform. If you need active maintenance or support, consider whether the lack of recent updates is acceptable for your project.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- By default, Basic Pitch does not install TensorFlow unless Python >= 3.11; instead it installs CoreML (macOS), TensorFlowLite (Linux), or ONNX (Windows).
- Requires a compatible audio codec supported by librosa.
- Low install friction with a pure-Python wheel.
License · maintenance · safety
(unclear) — License treatment is unclear—no SPDX identifier or raw license text is available in the metadata. Verify the actual license before using in proprietary or commercial projects.
last release 2024-08-16 (728 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 172,537 downloads/mo, #10,333 on PyPI
Alternatives
Verify before relying
pip install basic-pitch
from basic_pitch.inference import predict
from basic_pitch import ICASSP_2022_MODEL_PATH
model_output, midi_data, note_events = predict('audio.wav')- Whether the package license is compatible with your use case (license metadata is absent from PyPI record)
- Current state of the GitHub repository and whether dormancy indicates maintenance has ceased or paused
- Whether all 13 runtime dependencies resolve cleanly on your target platform and Python version
What it is and what it does
Basic Pitch is a Python library for automatic music transcription that converts audio files into MIDI with pitch bend detection. It uses a lightweight neural network developed by Spotify's Audio Intelligence Lab and is designed to be easy to install and use via pip. The library is instrument-agnostic and supports polyphonic note detection, meaning it can transcribe multiple notes played simultaneously across different instruments.
The package provides both a command-line tool and a programmatic Python API. It comes with the original TensorFlow model plus CoreML, TensorFlowLite, and ONNX variants for cross-platform inference. By default, it selects the runtime based on your operating system and Python version to minimize installation overhead, though you can override this choice. The library accepts any audio codec that librosa supports and outputs MIDI files, raw model predictions, or note event data.
Use it for
- Transcribe solo instrument recordings to MIDI for music notation or further editing
- Build batch processing pipelines to convert multiple audio files to MIDI using the command-line tool
- Integrate pitch detection into a music analysis application via the predict() API
- Export model outputs as CSV note events or NPZ arrays for custom downstream analysis
- Sonify predicted MIDI back to audio for verification or comparison with the original recording
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
Basic Pitch is production-stable and has no known vulnerabilities, making it suitable for audio-to-MIDI transcription tasks. However, the package is dormant (last release 728 days ago), so verify that the license is compatible with your use case (it is currently unclear in the metadata) and that all 13 runtime dependencies resolve cleanly on your platform. If you need active maintenance or support, consider whether the lack of recent updates is acceptable for your project.
Install
basic-pitch on PyPI
Before you install
Low install friction with a pure-Python wheel. However, the package is dormant (728 days since last release) and depends on 13 runtime libraries including TensorFlow variants and multiple model serialization backends, which may complicate dependency resolution on some systems.
By default, Basic Pitch does not install TensorFlow unless Python >= 3.11; instead it installs CoreML (macOS), TensorFlowLite (Linux), or ONNX (Windows). Requires a compatible audio codec supported by librosa.
License in practice
License treatment is unclear—no SPDX identifier or raw license text is available in the metadata. Verify the actual license before using in proprietary or commercial projects.
Quickstart
pip install basic-pitch
from basic_pitch.inference import predict
from basic_pitch import ICASSP_2022_MODEL_PATH
model_output, midi_data, note_events = predict('audio.wav')
Verify before relying
- Whether the package license is compatible with your use case (license metadata is absent from PyPI record)
- Current state of the GitHub repository and whether dormancy indicates maintenance has ceased or paused
- Whether all 13 runtime dependencies resolve cleanly on your target platform and Python version
Package facts
| License | Not declared unclear |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 13 packageslibrosamir-evalnumpypretty-midiresampyscikit-learnscipytyping-extensionstensorflowcoremltoolstensorflow-macostflite-runtimeonnxruntime |
| Maintenance | Dormant 728 days since the last release |
| First released | |
| Downloads | 172,537 / month, #10,333 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableNatural Language :: EnglishOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPython |
Evidence: basic_pitch-0.4.0-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “audio to MIDI conversion”
- basic-pitchBasic Pitch converts audio files to MIDI transcriptions with pitch…
- symusicsymusic parses and transforms MIDI and ABC files at note level with…
- pretty-midiProvides utilities for reading, modifying, and synthesizing MIDI data…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also torchcrepe · aubio · stftpitchshift · python-stretch · torchfcpe · symusic · pretty-midi · pyrubberband · music21 · audiomentations