Export a MIDI file
export_midiSaves MIDI clips as a Standard MIDI File (.mid) for use in another program. Export all tracks with notes, or a single track or clip, with the song's tempo, time signature and channel data.
Instructions
Saves MIDI clips as a Standard MIDI File (.mid), like File > Export MIDI File: for another program, or for someone to play. Without track: every MIDI track that has notes, one track each in the file, from the start of the song. With track: just that track; with clip too, just that clip, measured from the bar it starts in. The file has the song's tempo and time signature, each track's name and MIDI channel, and the clips' notes, controllers and pitch bend: notes, not sound (an instrument's sound isn't in a MIDI file). Without path it goes in the song's Exports folder. A file already there is never replaced. Doesn't change the song.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "export_midi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip | No | With track: one clip's id (describe_track lists them) | |
| path | No | Optional: the .mid file's full path (or ~/...), only when the person asks for a place. Default: the song's Exports folder | |
| track | No | A MIDI track (name or id). Without it: every MIDI track |