write_drum_grid
Write drum patterns from an ASCII grid of 16th-note steps. Replace notes in a clip by specifying instruments and pattern characters for accented, normal, soft hits, or rests.
Instructions
Write drums from an ASCII grid (16th-note steps). REPLACES existing notes.
grid: one line per instrument: "name: pattern" where pattern chars are 'X' (accent, vel 105), 'x' (normal, 85), 'o' (soft, 55), '.' or '-' (rest). Line length = number of 16th steps (16 = one 4/4 bar; 32 = two bars...). Instruments: kick snare rim clap chat phat ohat ltom mtom htom crash ride perc shaker, or a raw MIDI number ("36: x...").
Example (one bar of lofi): kick: X..x......X..... snare: ....x.......x... chat: x.o.x.o.x.o.x.o.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid | Yes | ||
| swing | No | ||
| clip_index | Yes | ||
| track_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |