midi
Manage musical notes and control changes on a REAPER track item. Create, append, replace, update, or delete notes, and insert or read CC and program changes.
Instructions
MIDI on a track item. Times are absolute project beats. action: create_item | add | get | replace | update | delete | cc | get_cc. replace rewrites the whole take in one undo step; add only appends. cc inserts CC (cc+value) or program change (program) via ccs[]; get_cc reads CC, program and pitch_bend back in that shape. get omits index (use array offset), channel if 0, muted/selected if false.
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": {
"action": "<action>",
"track_index": "<track_index>"
},
"name": "midi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ccs | No | ||
| muted | No | ||
| notes | No | ||
| pitch | No | ||
| action | Yes | ||
| channel | No | ||
| velocity | No | ||
| item_index | No | ||
| note_index | No | ||
| start_beats | No | ||
| track_index | Yes | ||
| length_beats | No | ||
| note_indices | No |