Duplicate Piano Roll Notes
piano_roll_duplicateCopies Piano Roll notes from a source bar range to a destination bar without clearing existing notes, so you can extend a phrase on one channel before adding a variation.
Instructions
Copy all Piano Roll notes starting within [source_time_bars, source_time_bars + length_bars) to dest_time_bars.
Use to extend a phrase on one channel (e.g. copying bars 0–2 to bars 2–4 before
adding a variation); use pattern_duplicate_data to double every channel in the
entire pattern at once. Appends at dest_time_bars without clearing existing notes.
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": {
"source_time_bars": "<source_time_bars>",
"length_bars": "<length_bars>",
"dest_time_bars": "<dest_time_bars>"
},
"name": "piano_roll_duplicate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | No | Optional 0-based global Channel Rack index; when provided, opens that channel's Piano Roll before running the edit. Omit to target whichever Piano Roll is already open. | |
| pattern | No | Optional 1-based pattern index to select before opening the Piano Roll; omit to edit the currently selected pattern. | |
| length_bars | Yes | Length of the source bar window in project bars (> 0, e.g. 2.0 copies 2 bars). | |
| dest_time_bars | Yes | 0-based destination bar offset where the copied notes will be placed (e.g. 2.0). | |
| source_time_bars | Yes | 0-based start of the source bar window to copy from (inclusive). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||