apply_midi_gate_pattern
Plan or apply MIDI gate durations for selected notes, preserving pitch, velocity, probability, and expression. Use dry-run to preview changes before confirming.
Instructions
Plan or apply guarded MIDI gate durations while preserving onset, pitch, velocity, probability, and expression metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| gridBeats | Yes | Reference grid step in beats, including fractional triplet values. | |
| gateRatios | Yes | Explicit repeating gate ratios by ordered onset. | |
| confirmationToken | No | Short-lived, single-use token returned by the matching dry run. | |
| expectedStateVersion | Yes | Exact stateVersion observed immediately before planning. |