mcp_opendaw_merge_note_regions
Merge two note regions on the same track into one continuous region, copying notes from the second region into the first and extending its duration to cover both. The second region is deleted after the merge.
Instructions
Merge two note regions on the same track into one.
Copies all notes from region B into region A's note collection, adjusting positions so they remain at their original absolute timeline position. Region A's duration is extended to cover both regions. Region B is deleted.
The regions do not need to be adjacent — if there's a gap between them, the merged region spans the full range (with silence in the gap).
Use cases:
Join verse + chorus into one continuous region
Consolidate split regions back together
Merge separately-recorded MIDI takes
Simplify arrangement before export
unit_index: AU index. track_index: Note track index. region_index_a: First region (keeps its identity, absorbs B's notes). region_index_b: Second region (deleted after merge).
Returns merged region details.
Example:
Merge regions 0 and 1 into one
merge_note_regions(0, 0, 0, 1)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit_index | Yes | ||
| track_index | Yes | ||
| region_index_a | Yes | ||
| region_index_b | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |