write_drum_pattern
Writes step-sequenced drum patterns into an Ableton Live clip, creating the clip when the target slot is empty. Program kick, snare, hat, and other drum rows by step.
Instructions
Write a step-sequenced drum pattern into a clip (created if the slot is empty).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"rows": "<rows>"
},
"name": "write_drum_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip | No | Clip ref/path (e.g. 'id 123'); alternative to track+slot | |
| mode | No | replace | |
| name | No | ||
| rows | Yes | Row -> steps. Row: kick snare clap rim hat openhat ride crash tom perc shaker, a note name ('C1') or number. Steps: x hit, X accent, o ghost, 1-9 velocity, . rest; spaces/| ignored. E.g. {'kick':'x...x...x...x...','hat':'..x...x...x...x.'} | |
| slot | No | ||
| step | No | Beats per step: 0.25 = 16ths, 0.5 = 8ths | |
| swing | No | ||
| track | No | ||
| velocity | No | ||
| bars_repeat | No | Repeat the pattern N times |