mcp_opendaw_duplicate_region
Duplicate any region (audio, note, or value) in openDAW using the DAW's built-in API. Place the copy after the original or find free space, then retrieve the new region's position and index.
Instructions
Duplicate any region (audio, note, or value) using the DAW's built-in duplicateRegion API.
Places the copy right after the original. With find_free_space=True, scans for the first available gap on any track (auto-resolves overlaps). Without it, places on the same track at the original's end position.
unit_index: Audio unit index (-1 = search all AUs). track_index: Track index within the AU. region_index: Region to duplicate (0-based). find_free_space: If True, find the first free space on any track. If False, place directly after the original on the same track.
Returns the new region's position and index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit_index | Yes | ||
| track_index | Yes | ||
| region_index | Yes | ||
| find_free_space | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |