generate_drum_pattern
Generates genre-specific drum patterns as MIDI notes directly into Ableton Live clips, with options for custom patterns, swing, and humanization.
Instructions
Write a genre-style drum pattern as MIDI notes into a clip on a drum rack track.
Parameters:
track_index: Index of the MIDI track (drum rack) to write to
bars: Number of bars to repeat the pattern for
clip_index: Session clip slot to write into (creates the clip if empty). Pass exactly one of clip_index / arrangement_start.
arrangement_start: Beat position in the Arrangement to create the clip at.
genre: Genre key from music_theory.GENRES (e.g. "dnb_liquid", "house", "trap"). Defaults to the project genre set via set_project_key.
pattern: Optional override, e.g. {"kick": [0, 2], "snare": [1, 3]} (beat offsets within a bar) or {"hat": "rolls"} for continuous 8th-note rolls. Merged on top of the genre's default pattern if both are given.
swing: 0..1, delays off-beat 8th notes for a swung feel
humanize: 0..1, randomizes note timing and velocity slightly
user_prompt: The original user prompt that led to this tool call (for telemetry)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | Yes | ||
| genre | No | ||
| swing | No | ||
| pattern | No | ||
| humanize | No | ||
| clip_index | No | ||
| track_index | Yes | ||
| user_prompt | No | ||
| arrangement_start | No |