music-to-notes
The server lane of the site's /audio-to-notes «band parts»: HTDemucs separates the voice, the bass and the rest of the band on our processor, Basic Pitch transcribes each stem. Returns every stem's notes as JSON (onset and offset in seconds, MIDI pitch, amplitude) and as a MIDI file with one track per stem. These are the stems' full transcriptions — the page then reduces each to a single line in the browser; that step is not part of the API. A stem the separation found nearly silent (no singer in an instrumental) is flagged in `quiet`. Priced exactly like the page, per started minute. Stage the input with POST /v1/uploads first. ASYNCHRONOUS: returns 202 with a run id — a song takes about a minute of work.
v1 beta server · 83 tokens
Price (server): 83 tokens per started minute of audio, at least 83 per call; paid plans: −5%, rounded up. The exact figure for your file: POST /v1/tools/music-to-notes/estimate.
Call it
POST https://tembrica.com/v1/tools/music-to-notes/runs
Authorization: Bearer $TIMBRICA_KEY
Idempotency-Key: <your retry-safe key>
Content-Type: application/json
Input
| Field | Type | Required | Notes |
|---|---|---|---|
audio | object | yes | Staged input file — a song or a band recording, 3 s to 10 min, any format ffmpeg reads. Upload it with POST /v1/uploads (multipart `file`, or JSON {"url":"…"}). |
Input file
Stage it with POST /v1/uploads (multipart `file`, or JSON {"url": "…"}), then pass {"file_id": "<id>"} in each listed input field.
file fields: audio
Errors it can return
validation_failed
too_long
insufficient_tokens
concurrency_limited
upstream_unavailable
History
- v1 — 2026-11-19 — Initial release (server lane, async, the site's per-minute price).
This contract cannot change without a new version and a line above: a test compares the published schema, pricing and limits against a committed lockfile and fails the build otherwise. Subscribe to /v1/changelog to be told when something moves.