add_midi_note
Adds a MIDI note to an existing MIDI item by specifying pitch, start time, length, and channel, enabling precise MIDI composition within REAPER projects.
Instructions
Add a MIDI note to an existing MIDI item. pitch: MIDI note number 0–127 (60 = middle C, 69 = A4). start/length: seconds, relative to the item's start. channel: MIDI channel 0–15 (use 9 for drums).
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>",
"item_index": "<item_index>",
"pitch": "<pitch>",
"start": "<start>",
"length": "<length>"
},
"name": "add_midi_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pitch | Yes | ||
| start | Yes | ||
| length | Yes | ||
| channel | No | ||
| velocity | No | ||
| item_index | Yes | ||
| track_index | Yes |