Clean, Quantize, Transpose & Normalize MIDI
transform_midiApply instrument cleanup presets (piano, guitar, monophonic), beat-grid quantization, chromatic transposition, tempo scaling, and canonical SMF normalization to a base64 MIDI file.
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": {
"midi_base64": "<midi_base64>"
},
"name": "transform_midi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | No | Scale timing proportionally to a new tempo in BPM. | |
| name | No | Optional new track/score title. | |
| midi_base64 | Yes | Base64-encoded standard MIDI file (.mid / .midi, max 256 KB decoded). | |
| cleanup_preset | No | Optional artifact/overtone cleanup profile before quantization. | none |
| quantize_grid_beats | No | Snap note starts and durations to beat grid (e.g. 0.25 = 16th note, 0.5 = 8th note, 1 = quarter). | |
| transpose_semitones | No | Shift all pitches by signed semitones (-36 to +36). |