set_loop
Move or resize the Arrangement loop brace and toggle looping in Ableton Live. Set start, length, or enabled individually without affecting unspecified loop settings.
Instructions
Move the Arrangement loop brace, or switch looping on and off.
Every argument is optional and only the ones given are written, so the brace can
be moved without touching the switch and the reverse.
Returns:
Dictionary reporting how many writes were made and the before and after
values for each of enabled, loop_start and loop_length.
Note:
The brace only loops the Arrangement transport. It has no bearing on Session
clip looping, which is a clip property. Read that with get_clip. ``length``
is a duration and not an end position.
Calling with no arguments at all writes nothing and reports the current
brace, which is the cheap way to read it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | No | Where the loop brace begins, in beats from the start of the Arrangement. Omit to leave it where it is. | |
| length | No | How long the brace is, in beats, not the beat it ends on: a loop over bars 5 to 9 in 4/4 is start=16, length=16. Omit to leave it. | |
| enabled | No | Turn the Arrangement loop on or off. Omit to leave the switch as it is and move the brace only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||