mcp_opendaw_duplicate_section
Duplicate all regions across tracks within a beat range to a new position, preserving notes, audio, and automation. Specify from, to, and target beats.
Instructions
Duplicate all regions within a beat range to a new position.
Scans all tracks across all specified audio units, finds every region that overlaps the [from_beat, to_beat) range, and copies each one to target_beat with the same relative offset. This is the arrangement operation producers use constantly: "copy verse 1 to bar 17" or "duplicate this 8-bar section after itself".
Works with note regions, audio regions, and automation regions. Preserves all content (notes, audio, automation events).
from_beat: Start of the source section in beats. to_beat: End of the source section in beats (exclusive). target_beat: Where to place the duplicated section (beat 0 = start of project). unit_indices: Comma-separated AU indices to scan (default: all AUs).
Returns number of regions duplicated, per-track details, and new positions.
Examples: duplicate_section(from_beat=0, to_beat=16, target_beat=16) -> Copy first 4 bars (0-16 beats) to beat 16 (bars 5-8) duplicate_section(from_beat=0, to_beat=32, target_beat=32, unit_indices="0,1,2") -> Copy first 8 bars from AUs 0,1,2 to beat 32
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_beat | Yes | ||
| from_beat | Yes | ||
| target_beat | Yes | ||
| unit_indices | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |