item_duplicate
Clone any REAPER item N times at fixed spacing for stutter, riser, or rhythmic repeats. Preserves all source properties and returns new item indices for further manipulation.
Instructions
Copy an item N times at fixed spacing.
Each copy is a full clone — same source, same take properties (pitch, playrate, FX, fades). Used for the Porter Robinson 1/16 stutter, EDM build-up risers, percussive vocal repeats.
With default spacing (0), copies are placed back-to-back at the
original item's length. For tight stutters, pass a small spacing
like 60/bpm/4 for 1/16-note repeats at the project's tempo.
Args: item_index: Global 0-based source item index. count: Number of copies to make. Range 1-100. spacing_sec: Time between copy starts in seconds. 0 = use item length (back-to-back). Default 0.
Returns the new clones with their item_index so the AI can
manipulate them (pitch, fade, etc.) directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| item_index | Yes | ||
| spacing_sec | No |