sampler_slice
Cuts an audio clip into slices by transients, equal count, or beats, then switches it to slice mode so each slice can trigger patterns and melodies. Use on short loops; undoable.
Instructions
Cut an audio clip into slices, as the sample editor's slice detection does: on transients (sensitivity), into equal parts (count) or on beats (division per beat at the clip's tempo). A clip holds at most 92 slices (notes 36-127): slice a short loop, not a whole song. Switches the clip to slice mode: each slice gets a note, so clips.write_slices can play patterns and melodies from them. Returns the slices. Undoable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | How to cut (default transients). | |
| slot | Yes | 0-based clip slot (scene row) on the track. | |
| count | No | equal: number of slices. | |
| track | Yes | Track id (UUID string from tracks.list, stable) or 0-based index (shifts when tracks are added or moved). | |
| division | No | beats: slices per beat, 1 = quarters, 2 = eighths, 4 = sixteenths. | |
| sensitivity | No | transients: how readily a hit starts a slice. |