correct_midi_clip_to_scale
Fix MIDI notes in a clip that fall outside the current Live scale, moving each to the nearest in-scale pitch up, down, or nearest via explicit direction. Existing in-scale notes stay untouched.
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 | 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 | No | Optional stable note IDs; omitted selects every chromatic note. | |
| trackId | Yes | Stable track ID returned by list_tracks. | |
| planHash | No | Hash returned by the matching dry run. | |
| tieBreak | No | Required only for equal nearest choices. | |
| direction | Yes | ||
| confirmationToken | No | Short-lived, single-use token returned by the matching dry run. | |
| expectedStateVersion | Yes | Exact stateVersion observed immediately before planning. |