generate_melody
Generates a voice-led melody over a chord progression, replacing existing notes. Uses key, scale, and voice-leading principles to create melodic lines with controlled chromaticism and phrase shape.
Instructions
Write a voice-led melody over a chord progression. REPLACES existing notes.
Notes come from key+scale, biased to chord tones on strong beats, chosen by nearest-pitch voice-leading (small steps), with optional chromatic approach notes. progression: dash-/comma-separated symbols. key: e.g. "C", "F#", "Bb". scale: major/minor/dorian/lydian/mixolydian/blues/bebop/minor_pentatonic/... density: low|medium|high (note rate). phrase_arc: rising|arch|ascend_descend| static (register contour). chromatic: 0-1 approach-note probability. low/high bound the register (MIDI). swing: 0.5 straight .. ~0.66.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | C | |
| low | No | ||
| high | No | ||
| seed | No | ||
| scale | No | minor | |
| swing | No | ||
| density | No | medium | |
| chromatic | No | ||
| clip_index | Yes | ||
| phrase_arc | No | arch | |
| progression | Yes | ||
| track_index | Yes | ||
| beats_per_chord | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |