mcp_opendaw_swap_sections
Exchange two sections of a musical arrangement to quickly restructure a song. Swap any two time ranges, moving content and shifting adjacent parts automatically.
Instructions
Swap two sections of the arrangement — exchange their positions on the timeline.
Exchanges all note/audio content between two time ranges, moving section A to where section B was and vice versa. Useful for song structure experimentation: try chorus before verse, swap bridge with solo, reorder sections without manual cut/paste.
Both sections can be different lengths — the swap preserves each section's content and shifts everything accordingly. If sections are adjacent, it's a simple swap. If there's a gap between them, the gap content stays in place.
Args: section1_start: Start beat of first section section1_end: End beat of first section section2_start: Start beat of second section (must be > section1_end) section2_end: End beat of second section unit_indices: Comma-separated unit indices to process ("" = all units)
Returns: JSON with sections_swapped, notes_moved per unit, section sizes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| section1_end | Yes | ||
| section2_end | Yes | ||
| unit_indices | No | ||
| section1_start | Yes | ||
| section2_start | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |