generate_and_place_drums
Generate a drum pattern and place it into a MIDI clip on a specified track and slot. Supports multiple styles and patterns with adjustable variation.
Instructions
Generate a drum pattern and place it into a MIDI clip. Uses GM drum mapping (kick=36, snare=38, hihat=42, etc.). Set up your Drum Rack with matching pad assignments.
pattern: 'four_on_floor', 'boom_bap', 'trap', 'dnb', 'rock', 'shuffle', 'bossa_nova' or derived from style if omitted. variation: 0.0–1.0, adds random additional hits beyond the base pattern
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes | ||
| slot_index | Yes | ||
| style | No | electronic | |
| pattern | No | ||
| length_bars | No | ||
| variation | No | ||
| replace_existing | No | ||
| seed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |