mcp_opendaw_create_melody_from_progression
Generates a lead melody from a chord progression, using chord tones on strong beats and passing tones on weak beats. Supports patterns: chord_tones, sustained, syncopated, triadic, stepwise.
Instructions
Create a lead melody from a chord progression string.
Completes the harmonic quartet: create_chord_pads (sustained harmony) + create_arpeggiated_progression (arp movement) + create_bass_from_progression (bass foundation) + THIS (lead melody). All four take the same "Am-F-C-G" string.
The melody hits chord tones on strong beats (1, 3) and uses passing tones or neighbor tones on weak beats (2, 4) for melodic interest.
pattern: Melodic pattern: "chord_tones" — root/third/fifth on beats 1+3, passing tone on 2+4 "sustained" — one chord tone per bar, held for full bar (ballad) "syncopated" — 8th notes, chord tones on downbeats, passing on ups "triadic" — arpeggiated 8ths through chord tones (folk, country) "stepwise" — scale steps between chord tones (pop, classical)
bars_per_chord: Bars per chord (default 4). octave: MIDI octave for melody (5 = C5=72, typical lead range). velocity: Note velocity (0-1, default 0.75). track_index: Track for melody (typically melody track = 3).
Example:
Pop lead from I-V-vi-IV
create_melody_from_progression("C-G-Am-F", pattern="chord_tones", octave=5, track_index=3)
Ballad sustained melody
create_melody_from_progression("Am-F-C-G", pattern="sustained", octave=5, bars_per_chord=4)
Country triadic fiddle
create_melody_from_progression("D-G-A-D", pattern="triadic", octave=5, velocity=0.8)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| octave | No | ||
| pattern | No | chord_tones | |
| velocity | No | ||
| start_beat | No | ||
| unit_index | No | ||
| progression | No | Am-F-C-G | |
| track_index | No | ||
| bars_per_chord | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |