mcp_opendaw_create_melody
Generate a melody from a scale and rhythmic pattern, producing multiple MIDI notes in a single call instead of many individual note creations.
Instructions
Create a melody from a scale and rhythmic pattern — one call instead of 10-30 create_note calls.
scale: Scale type (major, minor, harmonic_minor, melodic_minor, dorian, phrygian, lydian, mixolydian, locrian, pentatonic_major, pentatonic_minor, blues, chromatic). root: Root note name (C, C#, D, D#, E, F, F#, G, G#, A, A#, B or flats Db, Eb, Gb, Ab, Bb). pattern: Rhythmic pattern using scale degrees. Each step is one 16th note:
Numbers 1-7 (or 1-5 for pentatonic, 1-6 for blues) = scale degree (1 = root)
0 = rest
'-' = sustain previous note (tie)
'+' = octave up for this note
Example: "1-2-3-5-4-3-2-1" = ascending then descending scale fragment
Example: "1 0 3 0 5 0 3 0" = arpeggio with rests unit_index: AU index with a note track. track_index: Note track index within the AU. start_beat: Where the melody starts (0 = bar 1). octave: MIDI octave for the root (4 = C4=60, the middle C). velocity: Note velocity 0-1 (default 0.75).
Returns the total notes created and pitches used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | ||
| scale | Yes | ||
| octave | No | ||
| pattern | Yes | ||
| velocity | No | ||
| start_beat | No | ||
| unit_index | No | ||
| track_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |