edit_item
Modify an audio or MIDI item in REAPER: move, trim, fade, re-pitch, loop, mute, rename, recolor, or adjust volume, timing, pitch, and track placement.
Instructions
Moves, trims, fades, re-pitches or otherwise edits an audio or MIDI item.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loop | No | Loop the source when the item is longer than it | |
| mute | No | ||
| name | No | ||
| color | No | #RRGGBB | |
| track | No | Move the item to this track | |
| item_id | Yes | Item id (audio or MIDI) from get_track_details, or "selected" | |
| playrate | No | Audio items: speed, 1 = normal | |
| length_qn | No | ||
| start_bar | No | Move the item to this bar | |
| volume_db | No | ||
| start_beat | No | Beat within the bar, 1-based (default 1) | |
| length_bars | No | ||
| preserve_pitch | No | Audio items: keep pitch when changing playrate | |
| fade_in_seconds | No | ||
| pitch_semitones | No | Audio items: transpose | |
| fade_out_seconds | No | ||
| trim_start_seconds | No | Trim this much off the start, keeping the content in place (negative extends) |