clip_operation
Perform structural clip edits: duplicate loops, crop to loop bounds, or copy regions with optional transposition.
Instructions
Structural clip edits. op: "duplicate_loop" (double the loop, duplicating notes - extend 2 bars to 4 before adding variation), "crop" (discard material outside the loop), "duplicate_region" (copy notes from region_start/region_length to destination_time, optionally transposing by transposition_amount semitones; pitch=-1 means all pitches).
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_index": "<track_index>",
"clip_index": "<clip_index>",
"op": "<op>"
},
"name": "clip_operation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| pitch | No | ||
| clip_index | Yes | ||
| track_index | Yes | ||
| region_start | No | ||
| region_length | No | ||
| destination_time | No | ||
| transposition_amount | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |