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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track | Yes | ||
| notes | Yes | ||
| at_bar | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||