melody_generate
Generate a melody from a root, scale mode, and contour. Returns humanized notes with pitch, timing, and velocity, ready to place into a MIDI clip.
Instructions
Generate a melody from a scale and contour. Returns notes (pitch/start_beats/length_beats/velocity) ready to drop into a MIDI clip. contour ∈ {arch, descending, ascending, wave, question_answer, static}. density ∈ {sparse, medium, busy}. Notes are rhythmically diverse — quarter, eighth, dotted, with rests — humanized for natural feel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Scale mode e.g. 'natural_minor', 'dorian' | |
| root | Yes | Note name e.g. 'A', 'C#' | |
| seed | No | ||
| contour | No | arch | |
| density | No | medium | |
| length_beats | Yes | ||
| register_octave | No | Center octave (4=middle, 5=above middle) |