Convert audio to MIDI
convert_to_midiConverts an audio track's clips into MIDI notes on a new track below, transcribing melody or detecting drum hits so you can edit or reuse the performance as MIDI.
Instructions
Finds the notes in an audio track's clips and puts them on a new MIDI track right under it, named " MIDI", a MIDI clip for each audio clip at the same place, like the clip menu's Convert to MIDI. kind "melody" hears one note at a time (a voice, a bass, a lead; not chords): each note's pitch, start, length and velocity. kind "drums" finds each hit and makes it a kick (36), snare (38) or closed hi-hat (42), General MIDI's notes; "one_drum" makes every hit the same drum, for a track of one drum. The audio track is left as it is. The new track has no instrument: add one with edit_session (a drum plug-in for drums). Use get_notes to read what was found. One undo step.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"track": "<track>",
"kind": "<kind>"
},
"name": "convert_to_midi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip | No | Just this clip (its id, from describe_track). Default: every audio clip on the track | |
| kind | Yes | "melody", "drums" or "one_drum" | |
| track | Yes | The audio track (name or id) |