transcribe_audio
Transcribe an audio file into an editable RON score, pitch-tracking the melody, quantizing to a grid, and estimating note velocities for a draft you can revise.
Instructions
Transcribe a WAV, FLAC, mp3, or ogg file into an editable cochlea RON score — the inverse of render_score, and the arrow that closes the compose loop: hear a sketch, get score back, revise it, render it again. Pitch-tracks the melody, reads its timing against a tempo (detected from the audio unless you pass bpm), quantizes to a note grid, and estimates each note's velocity from its peak level. Deliberately monophonic: it hears one line, so chords, drums, and dense mixes come back as whichever line the tracker locked onto. Every assumption — the tempo, the grid, the preset, clamped or dropped notes — comes back in the response, so treat the result as a draft to re-voice rather than a faithful score.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | No | Tempo to notate against, 1..=4000. Detected from the audio when omitted; a wrong tempo renotates the same sound with odd note values. | |
| ppq | No | Tick resolution of the written score. Default 960. | |
| grid | No | Quantization grid as a note duration ("1/16", "1/8", "1/4", "1/8t" for triplets, "1/8." for dotted), or "none" to keep the analyzer's raw timing. Default "1/16". | 1/16 |
| preset | No | Instrument preset for the transcribed track. Default "sine"; call score_reference for the catalog. | sine |
| out_path | Yes | Where to write the transcribed RON score. | |
| audio_path | Yes | Path to a WAV, FLAC, mp3, or ogg file. | |
| track_name | No | Track name in the written score. Default "lead". | lead |