clip_operation
Perform structural clip edits: duplicate loops, crop to loop, or copy regions between times 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).
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 |