plan_grid_envelope_pattern
Generate validated on/off envelope steps for Session clips in straight or triplet rhythms, using exact native values against the current Live grid.
Instructions
Read current Live grid and return exact on/off Session clip envelope steps for a straight or triplet rhythm, including Beat Repeat Repeat. No Live edits. Supply the exact native on/off values; set_clip_parameter_envelope validates the destination clip and parameter before any write. Rejects grid/bar misalignment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | Yes | ||
| grid | Yes | ||
| onValue | Yes | Native parameter value during active steps. | |
| offValue | Yes | Native parameter value during inactive steps. | |
| startBeat | No | Absolute Session clip beat offset; default zero. | |
| activeSteps | Yes | Unique 1-based active step numbers within each bar. |