create_clip
Create MIDI or audio clips in Ableton Live Session slots or arrangement positions, optionally filling notes or drum patterns in the same call.
Instructions
Create a clip: MIDI in an empty Session slot (0-based scene index) or on the arrangement at a time; audio
from file_path on audio tracks. Optionally fill it in the same call: notes (as write_notes) and/or pattern (drum
steps, as write_drum_pattern).
length: MIDI only, beats or "N bars" (default 4 beats; a bare number is beats). at: beats, "bar.beat.sixteenth" ("9.1.1") or a locator name. MIDI ranges that overlap arrangement clips are refused (audio reports what it trimmed). color: index 0..69 or "#RRGGBB". Returns the new clip (as get_clip). Example: create_clip("Drums", slot=0, length="1 bar", pattern={"kick": "x---x---x---x---"}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | ||
| name | No | ||
| slot | No | ||
| color | No | ||
| notes | No | ||
| track | Yes | ||
| length | No | ||
| pattern | No | ||
| file_path | No |