clips_write_drums
Writes drum patterns into TOMNIC track session slots using per-voice step strings, replacing or merging lanes to set kicks, snares, hi-hats, and other voices.
Instructions
Write a drum pattern into a session slot of a TOMNIC track (TOMNIC plays its own step pattern, not clip notes). Each lane is one voice (kick, snare, hihat, bass, tom, perc, cymbal, fx, or 0-7) with a step string: x = hit, X = accent, . = rest; '|' and spaces may mark bars. At rate 1/16 sixteen steps are one 4/4 bar, e.g. kick "x...x...x...x...", snare "....x.......x...". Lanes may differ in length (polymeters). Replaces the pattern, or with mode merge only the lanes given. Undoable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Replace the pattern or merge lanes. | |
| rate | No | Step length (default 1/16). | |
| slot | Yes | 0-based clip slot (scene row) on the track. | |
| lanes | Yes | Voices to write. | |
| track | Yes | Track id (UUID string from tracks.list, stable) or 0-based index (shifts when tracks are added or moved). |