Skip to main content

denote

Portal and facade for audio-to-symbol tools (MIDI, chords, pitch from audio).

Denote wraps multiple audio analysis backends behind a unified Python interface. Each backend is an optional dependency — install only what you need.

Install

pip install denote                          # core only (librosa)
pip install denote[basic_pitch]             # + MIDI transcription
pip install denote[torchcrepe]              # + GPU pitch estimation
pip install denote[all]                     # everything

Quick Start

import denote

# Audio to MIDI (requires basic-pitch)
result = denote.transcribe("song.wav")
result.midi  # pretty_midi.PrettyMIDI object
result.notes  # list of NoteEvent(start_time, end_time, pitch, velocity)

# Pitch estimation (requires torchcrepe, or falls back to librosa pYIN)
pitch = denote.get_pitch("vocal.wav")
pitch.times  # timestamps in seconds
pitch.frequencies  # Hz (NaN for unvoiced)
pitch.confidence  # voicing confidence

# Beat tracking (uses librosa, no extra install needed)
beats = denote.get_beats("song.wav")
beats.beats  # beat times in seconds
beats.tempo  # BPM estimate

# Source separation (requires torch + torchaudio; weights download once)
stems = denote.separate("song.wav")
stems.stems  # {"drums", "bass", "other", "vocals"}: (2, frames) at stems.sr (44.1 kHz)
stems.vocals  # the voice, mono

# Key estimation (uses librosa, no extra install needed)
key = denote.get_key("song.wav")
key.key  # "A minor"
key.confidence  # the winner's profile correlation (not a probability)
key.margin  # lead over the runner-up: small means ambiguous
key.ranked[:3]  # all 24 keys, best first; key.relative names the relative key

Choose Your Backend

# See what's available
denote.list_backends()  # all registered backends
denote.list_backends("pitch")  # ['librosa_pyin', 'torchcrepe']

# Specify a backend explicitly
pitch = denote.get_pitch("vocal.wav", backend="librosa_pyin")

Service-Level Access

For more control, access backends via the service layer:

# Per-backend service handle
denote.services.basic_pitch.transcribe("song.wav", onset_threshold=0.3)
denote.services.torchcrepe.get_pitch("vocal.wav", model="tiny", device="cuda")

# Native adapter (full backend API)
denote.services.basic_pitch.adapter

Supported Backends

Backend Task License Install
Basic Pitch (Spotify) MIDI transcription Apache 2.0 pip install denote[basic_pitch]
torchcrepe Pitch estimation MIT pip install denote[torchcrepe]
librosa pYIN Pitch estimation ISC (included)
librosa beats Beat tracking ISC (included)
librosa key (Krumhansl-Schmuckler) Key estimation ISC (included)

More backends coming: pesto-pitch, madmom, autochord, beat-this, demucs.

Plugin System

Register your own backends:

import denote

denote.register_backend(
    "my_tool",
    config={
        "name": "my_tool",
        "tasks": ["transcribe"],
        "pip_install": "my-tool",
    },
    adapter=MyAdapter(config),
)

Metadata

Release files for denote 0.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for denote 0.0.10
File Size Uploaded Provenance Actions
denote-0.0.10.tar.gz 102.2 kB Without provenance Details for denote-0.0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for denote 0.0.10
File Interpreter ABI Platform Actions
denote-0.0.10-py3-none-any.whl Python 3 none any Details for denote-0.0.10-py3-none-any.whl

Total release size: 152.1 kB

Release files / denote-0.0.10.tar.gz

Download URL denote-0.0.10.tar.gz
Size 102.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f8ef0bef548d227907708e2ab361ea8d31dc1cf792d0b3b80a72d95280aa0209
BLAKE2b-256 checksum
How to use checksums
065b398b7ea83b64a7c8e2101a4bc8c6767c40f66a2a67904a925f34bbfd30fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / denote-0.0.10-py3-none-any.whl

Download URL denote-0.0.10-py3-none-any.whl
Size 49.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b36caaf23cd9b790de4d7e2f6b612e21d6fd28e2dfbe7cf0bb972b096f98a57
BLAKE2b-256 checksum
How to use checksums
30d59ec736ccce1fde1b70e68f5002cff19f1ebf5d1bc49c86860d47a1bf4a98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for denote 0.0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page