reaper_insert_midi_item
Create an empty MIDI item on a track at a specified time range. Returns item index, position, and length for adding notes later.
Instructions
Create an empty MIDI item on a track spanning [start, end] seconds.
Returns {item_index, position_sec, length_sec}. Add notes with
reaper_add_midi_note.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes | 0-based track index | |
| start_sec | Yes | Item start in seconds | |
| end_sec | Yes | Item end in seconds (must be > start) |