insert_midi_notes
Batch insert multiple MIDI notes into a REAPER track in a single round-trip with tempo and PPQ correction, avoiding per-note performance bottlenecks and audio thread stalling.
Instructions
Batch-write notes into a take, PPQ/tempo-correct, in ONE bridge round-trip.
Notes are in beats (pitch, start_beat, duration_beats, velocity). Batched because per-note round-trips would hit the ~10 ops/sec file-IPC ceiling. Capped per call (see BridgeClient.MAX_NOTES_PER_CALL) so REAPER's audio thread never stalls.
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": "<track>",
"notes": "<notes>"
},
"name": "insert_midi_notes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track | Yes | ||
| notes | Yes | ||
| at_bar | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||