Create MIDI item
reaper_create_midi_itemCreate an empty MIDI item on a track at a specified beat position and length. Returns the item index to use for adding MIDI notes.
Instructions
Create an empty MIDI item on a track, positioned and sized in beats (quarter notes). Returns the item's index on that track, which you pass to reaper_add_midi_notes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"track_index": "<track_index>"
},
"name": "reaper_create_midi_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start_beat | No | Start position in beats | |
| length_beat | No | Length in beats | |
| track_index | Yes |