write_automation
Write automation envelope curves into Ableton Session clips using breakpoints and interpolation modes, with read-back verification to ensure accuracy.
Instructions
Write an automation envelope curve into a Session clip and verify read-back.
Args:
track: Track index in song.tracks (Session clip).
slot: Scene/slot index in track.clip_slots.
parameter: LOM path to DeviceParameter (e.g. 'song.tracks[0].mixer_device.volume').
points: Breakpoint coordinates as [[beat, value], ...] in clip-local beats.
interpolation: Interpolation mode ('linear', 'hold', 'exponential', 'ease_in', 'ease_out').
exponent: Exponent for non-linear interpolation shapes.
resolution: Sampling step size in beats (defaults to 0.0625 = 1/16th note).
clear_first: When True, clears prior envelope points before writing.
verify: When True, samples envelope back and compares with generated curve.
Returns:
Dictionary reporting write status, sampling metrics, and verification comparison.
Note:
Automation envelopes can be written directly to Session clips;
subsequently arrange the clip to transfer automation to the Arrangement timeline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | Yes | ||
| track | Yes | ||
| points | Yes | ||
| verify | No | ||
| exponent | No | ||
| parameter | Yes | ||
| resolution | No | ||
| clear_first | No | ||
| interpolation | No | linear |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||