step_clip_add
Add a drum-machine grid clip to a track by defining channels and step patterns, replacing multiple individual MIDI notes with a compact rhythmic sequence.
Instructions
Add a step clip (drum-machine grid) to a track. channels is a list of {midi_note, name?, velocity?} dicts — one per drum row. patterns is a list of pattern dicts: each pattern has rows parallel to channels, where each row has a pattern string of '0'/'1' steps and optional velocities list. step_length is duration of each step in beats (0.25 = 16th notes). Way cleaner than 80 individual MidiClip notes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Step Clip | |
| channels | Yes | ||
| patterns | Yes | ||
| track_id | Yes | ||
| start_beats | Yes | ||
| step_length | No | Beats per step (0.25=16th, 0.5=8th, 1.0=quarter) | |
| length_beats | Yes | ||
| repeat_sequence | No |