generate_and_place_melody
Generates a melody based on musical style and key, then places it into an Ableton MIDI clip. Creates the clip if empty, with options for scale, octave, length, density, humanization, and reproducibility.
Instructions
Generate a melody and place it into an Ableton MIDI clip. Creates the clip if the slot is empty.
style: musical style guide — 'electronic', 'jazz', 'classical', 'Daft Punk', 'Bach', 'blues', 'hip-hop', 'ambient', 'bossa nova', 'film score', etc. key: root note — 'C', 'D', 'F#', 'Bb', etc. scale: optional scale override — 'major', 'minor', 'dorian', 'pentatonic_minor', 'blues', 'harmonic_minor', 'whole_tone', etc. Derived from style if omitted. octave: base octave for notes (1–6, default 4 = middle octave) length_bars: how many bars to generate density: 0.0–1.0, how many beats get notes (0.3=sparse, 0.7=normal, 1.0=full) humanize: add subtle timing and velocity variation for human feel replace_existing: if True, clear existing notes before placing new ones seed: integer for reproducible generation (same seed = same melody)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes | ||
| slot_index | Yes | ||
| style | No | electronic | |
| key | No | C | |
| scale | No | ||
| octave | No | ||
| length_bars | No | ||
| density | No | ||
| humanize | No | ||
| replace_existing | No | ||
| seed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |