add_clip
Adds a MIDI clip to a track at a chosen bar, using notes or melody notation, with length and loop repeats for composing songs.
Instructions
A MIDI clip on a track at bar, bars long (default: as long as its notes). notes: [{"pitch": "C4", "start": 0, "length": 1, "velocity": 100}] or ["C4", 0, 1, 100] (start/length in beats from the clip start). melody: text notation (see add_melody). loop_bars repeats the first N bars to fill the clip.
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>"
},
"name": "add_clip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bar | No | ||
| bars | No | ||
| name | No | ||
| notes | No | ||
| track | Yes | ||
| melody | No | ||
| project | No | ||
| loop_bars | No |