set_arrangement_clip_notes
Write notes into an existing Ableton arrangement clip, preserving loop braces, name, colour, envelopes, and note randomness. Use replace to clear existing notes or layer new ones.
Instructions
Write notes into an existing Arrangement clip, editing it in place.
Prefer this over create_arrangement_midi_clip when the clip already exists. Creating a clip builds a new one, which discards the loop braces, the name, the colour and any clip envelopes. Editing keeps all of it, so a 16-beat loop stretched across 300 bars stays stretched instead of collapsing.
Notes keep probability and velocity_deviation, so randomness and humanization survive. Read with get_arrangement_clip_notes, change what you need, write the whole list back, and everything else is preserved.
Parameters:
track_index: The index of the track
clip_index: Index of the clip on the timeline, from get_arrangement_clips
notes: Note dicts (pitch, start_time, duration, velocity, mute, optional probability and velocity_deviation). start_time is relative to the clip.
replace: True clears the clip's existing notes first. False layers the new notes on top of what is already there.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| replace | No | ||
| clip_index | Yes | ||
| track_index | Yes |