clips_generate_melody
Generates a MIDI melody into a clip slot from a chosen style, key, bars, register, and density, following the slot’s chord lane or a specified chord source; same seed yields same result.
Instructions
Write a melody into a MIDI slot with the piano roll's melody generator: a style (stepwise_flow, minimal_cell, classical_arch, funk_groove, celtic_reel, bebop_line, arpeggio_loop, synth_arp, sequence_run, ambient_drift, tension_build, modal_motive), a key, bars, register and density. It sits on the chords of the slot's chord lane, or of chords_from (e.g. the pad slot written by clips.write_progression). Same seed, same melody. Undoable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| bars | No | Bars to write (default 4). | |
| seed | No | Same seed, same melody (default 1). | |
| slot | Yes | 0-based clip slot (scene row) on the track. | |
| style | Yes | Melody style. | |
| track | Yes | Track id (UUID string from tracks.list, stable) or 0-based index (shifts when tracks are added or moved). | |
| density | No | Notes per bar (default medium). | |
| register | No | Pitch range (default mid). | |
| chords_from | No |