apply_midi_diatonic_chord_quality
Rebuild selected MIDI chords with diatonic qualities, functional harmony, inversions, and voicings. Plan changes first, then apply with confirmation.
Instructions
Plan or atomically apply guarded functional-harmony chord rebuilding with per-onset functions, recipes, inversions, voicing modes, slash basses, stable retained voices, and verified additions/removals.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| 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 chord onsets. | |
| trackId | Yes | Stable track ID returned by list_tracks. | |
| planHash | No | Hash returned by the matching dry run. | |
| chordSize | No | Exact voicing recipe. Triad, seventh, and ninth stack thirds from Live's scale; suspended, added-tone, and dominant recipes use their named literal intervals, with tensions voiced above the chord. | |
| chordSizes | No | One exact voicing recipe for each ordered onset. | |
| inversions | No | Optional inversion steps for each ordered onset; zero keeps root position. | |
| bassDegrees | No | Optional Live scale degree for one added slash-bass voice below each ordered onset. | |
| rootDegrees | Yes | One root degree from Live's current scale for each ordered onset. | |
| voicingModes | No | Optional deterministic voicing mode for each ordered onset. | |
| confirmationToken | No | Short-lived, single-use token returned by the matching dry run. | |
| harmonicFunctions | No | Optional harmonic function for each ordered onset; secondary-dominant root degrees name tonicized targets. | |
| expectedStateVersion | Yes | Exact stateVersion observed immediately before planning. |