correct_midi_clip_to_scale
Correct chromatic MIDI notes in an Ableton Live clip to the current scale, using explicit direction and tie-break rules while leaving in-scale notes unchanged.
Instructions
Plan or apply guarded pitch correction of exact chromatic MIDI notes into the current Live scale. Direction is explicit; equal nearest choices require an explicit tie break. Existing in-scale notes are never changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clipId | Yes | list_clips Session ID or supported list_arrangement_clips ID. | |
| dryRun | No | False executes with token and hash. | |
| noteIds | No | Optional stable note IDs; omitted selects every chromatic note. | |
| trackId | Yes | ID from list_tracks. | |
| planHash | No | Plan hash. | |
| tieBreak | No | Required only for equal nearest choices. | |
| direction | Yes | ||
| confirmationToken | No | Single-use plan token. | |
| expectedStateVersion | Yes | Observed stateVersion. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||