apply_midi_ratchet_pattern
Plan or apply MIDI ratchet patterns in Ableton Live, preserving velocity, probability, mute, release velocity, and deviation, with a guarded confirm-to-execute workflow.
Instructions
Plan or apply guarded MIDI ratchets while preserving velocity, probability, mute, release velocity, and velocity deviation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gate | Yes | Each repeated note's duration as a fraction of its subdivision. | |
| clipId | Yes | Stable clip ID: track-N:clip-M from list_clips, or track-N:arrangement-clip-M from list_arrangement_clips for tools that support Arrangement clips. | |
| dryRun | No | Omit or true to return a plan; false requires a valid confirmationToken. | |
| noteIds | Yes | Unique stable note IDs at complete selected onsets. | |
| trackId | Yes | Stable track ID returned by list_tracks. | |
| planHash | No | Hash returned by the matching dry run. | |
| spanBeats | Yes | Total beat span occupied by every selected onset's repeats. | |
| repeatCounts | Yes | Repeating ratchet count by ordered onset; 3 creates an exact triplet inside spanBeats. | |
| confirmationToken | No | Short-lived, single-use token returned by the matching dry run. | |
| expectedStateVersion | Yes | Exact stateVersion observed immediately before planning. |