add_midi_clip
Add an empty MIDI clip to an LMMS instrument track at a chosen beat, then populate it with notes using set_notes in a single undo step.
Instructions
Add an empty MIDI clip to an instrument track, then add notes with set_notes. One undo step.
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>",
"start": "<start>"
},
"name": "add_midi_clip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | Yes | Beats from the song start, for example 16 for bar 5 in 4/4. | |
| track | Yes | A track handle or path, for example tracks/"Bass" or tracks/0. | |
| length | No | Optional length in beats, for example 8. Omit to grow by whole bars to fit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| name | Yes | ||
| path | Yes | ||
| index | Yes | ||
| muted | Yes | ||
| start | Yes | ||
| handle | Yes | ||
| length | Yes | ||
| note_count | No |