create_clip_automation_curve
Generate a clip automation envelope in Ableton Live from control points, expanding them into a stepped curve for a chosen device parameter.
Instructions
Write a smooth envelope from a handful of control points.
Side effects: replaces one clip envelope in one Live undo step.
Example: create_clip_automation_curve(38, 0, "FILTER", [{"time": 0, "value": 12}, {"time": 16, "value": 110}], shape="exp")
expands into contiguous steps on the server.
Edge cases: Live's envelopes are stepped, so the expansion is a dense
staircase capped at 500 steps; raise resolution if it overflows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shape | No | linear | |
| clip_index | Yes | ||
| resolution | No | ||
| track_index | Yes | ||
| device_index | No | ||
| control_points | Yes | ||
| parameter_name | Yes |