Audio to MIDI
generate_midiConverts an audio file into a MIDI file of extracted notes, leaving the source unchanged and writing results to a new folder. For full mixes, split stems first, then transcribe the chosen stem.
Instructions
Transcribe an audio file to MIDI.
Use to get notes out of audio. On a full mix, run stem_split first and transcribe the stem you want. Counts as one run. MIDI files go to a new results folder; the source is unchanged.
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": {
"file_path": "<file_path>"
},
"name": "generate_midi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | No | Override the detected tempo for note quantisation. | |
| file_path | Yes | Full path to a local audio file (.wav, .mp3, .aif, .aiff, .flac, .m4a, .ogg, .aac). ~ is expanded. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| files | Yes | ||
| summary | Yes | ||
| metadata | Yes | ||
| output_dir | Yes | ||
| execution_id | Yes |