harmonize_melody
Generate chord progressions for an existing melody by mapping strong-beat notes to chord tones, following tonic-predominant-dominant motion and cadencing home; optionally write chords to a MIDI item.
Instructions
Finds chords for an existing melody (strong-beat melody notes become chord tones, chords move tonic-predominant-dominant, the end cadences home), and optionally writes them.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"item_id": "<item_id>"
},
"name": "harmonize_melody"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Key with any scale or mode: 'A minor', 'F# dorian', 'Bb', 'Eb mixolydian', 'C harmonic minor' | |
| octave | No | ||
| rhythm | No | sustain | |
| item_id | Yes | The MIDI item with the melody | |
| palette | No | colorful adds secondary dominants and borrowed chords | diatonic |
| voicing | No | close | |
| sevenths | No | ||
| chords_per_bar | No | Harmonic rhythm: 0.5, 1, 2 or 4 | |
| write_to_item_id | No | Write the chords into this item (e.g. on a piano track) |