add_drum_pattern
Writes a preset drum pattern into an existing clip, tiling to fill a specified length. Supports patterns like four_on_floor, trap, breakbeat, and boom_bap with optional kit mapping and velocity control.
Instructions
Write a preset drum pattern into an existing clip. Patterns are defined
in 1-bar (4 beats) building blocks and tile to fill length.
Parameters:
pattern: "four_on_floor" | "trap" | "breakbeat" | "boom_bap"
length: clip length in beats (pattern tiles to fill this)
kit_map: optional override mapping drum names ("kick", "snare", "hat", "open_hat", "clap", "tom") to MIDI pitches. Defaults to General MIDI drum mapping (kick=36, snare=38, hat=42, open_hat=46).
velocity: 0-127
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes | ||
| clip_index | Yes | ||
| pattern | No | four_on_floor | |
| length | No | ||
| kit_map | No | ||
| velocity | No |