theory_harmonize
Generates chord progressions for a melody in a MIDI slot using a chosen key and style, balancing style habits with melody fit, and can write the chords into a track slot.
Instructions
Find chords for the melody in a MIDI slot, in a key and a generator style (theory.vocabulary): one chord per harmonic-rhythm slot, chosen so the melody's strong notes are chord tones. fit 0 follows the style's habits, 1 the melody. Returns the chords; with write_to also writes them into a slot (performed like clips.write_progression). Undoable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | 0 = style, 1 = melody (default 0.7). | |
| key | Yes | ||
| bars | No | Bars to harmonise (default: the clip's). | |
| seed | No | Colour seed (default 1). | |
| slot | Yes | 0-based clip slot (scene row) on the track. | |
| style | No | Generator style from theory.vocabulary (default pop). | |
| track | Yes | Track id (UUID string from tracks.list, stable) or 0-based index (shifts when tracks are added or moved). | |
| write_to | No |