Create and edit MIDI files. Add notes, change tempo and time signature, transpose, quantize, and save.
Use the Mozart MCP tools to create MIDI files from scratch or edit existing ones.
/compose new_song.mid
create_midi — set name, tempo, time signatureadd_track — name them and assign instrumentsadd_notes — specify measure, beat, pitch, duration, velocitysave_midi — write to diskload_midiget_measures to understand the structureadd_notes, delete_notes, transpose, quantizeset_tempo, set_time_signaturesave_midicreate_midi alias="demo" name="Demo Song" bpm=120 file_path="demo.mid"
add_track alias="demo" name="Piano" instrument=0
add_notes alias="demo" track=0 notes=[
{"measure": 1, "beat": 1, "note_name": "C4", "duration_beats": 1, "velocity": 80},
{"measure": 1, "beat": 2, "note_name": "E4", "duration_beats": 1, "velocity": 80},
{"measure": 1, "beat": 3, "note_name": "G4", "duration_beats": 1, "velocity": 80},
{"measure": 1, "beat": 4, "note_name": "C5", "duration_beats": 1, "velocity": 90}
]
save_midi alias="demo"
transpose alias="song" track=0 semitones=7
quantize alias="song" track=1 grid_beats=0.5
delete_notes alias="song" track=0 measure_start=5 measure_end=8
add_notes alias="song" track=0 notes=[...]
save_midi alias="song"
set_tempo alias="song" bpm=140 at_tick=1920
| Tool | Purpose |
|---|---|
create_midi | Create a new empty MIDI file |
add_track | Add a track with name and instrument |
set_instrument | Change a track's instrument |
add_notes | Insert notes at measure/beat positions |
delete_notes | Remove notes from a measure range |
transpose | Shift notes up or down by semitones |
quantize | Snap notes to a rhythmic grid |
set_tempo | Set/change tempo at a tick position |
set_time_signature | Set/change time signature |
save_midi | Write MIDI file to disk |
| # | Instrument | # | Instrument |
|---|---|---|---|
| 0 | Acoustic Grand Piano | 24 | Nylon Guitar |
| 4 | Electric Piano 1 | 25 | Steel Guitar |
| 6 | Harpsichord | 30 | Distortion Guitar |
| 11 | Vibraphone | 32 | Acoustic Bass |
| 13 | Xylophone | 33 | Electric Bass (finger) |
| 16 | Drawbar Organ | 40 | Violin |
| 19 | Church Organ | 42 | Cello |
| 21 | Accordion | 46 | Orchestral Harp |
| 56 | Trumpet | 73 | Flute |
| 60 | French Horn | 71 | Clarinet |
| 65 | Alto Sax | 68 | Oboe |
save_midi after editing — changes are in-memory until savedget_measures to verify your edits look correct before saving