arrange_from_scenes
Build a song arrangement from Session scenes by placing each track's clip sequentially from a start point, with options to clear ranges and add locators.
Instructions
Build the arrangement from scenes: sections play one after another from start, each placing
every track's clip from its scene for the section's length.
sections: [{scene (index or name), bars (or length: beats / "8 bars"), name?}]. Looping clips loop
to fill a section exactly, at any length; one-shot clips play once. Clip envelopes travel along.
A track's range is overwritten where it has a clip; clear=True first empties the whole range on the
tracks taking part (those with a clip in a listed scene, or tracks). locators=True adds a locator per
section, named after it; the transport is stopped first if it is playing. Arrangement clips are
independent copies: write notes and automation in the Session clips BEFORE arranging (or re-run with
clear=True after editing them). Returns undo_steps. Example: arrange_from_scenes([{"scene": "Intro",
"bars": 4}, {"scene": "Verse", "bars": 8}]). Verify with get_arrangement.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | ||
| start | No | 1.1.1 | |
| tracks | No | ||
| locators | No | ||
| sections | Yes |