midi_insert_notes_batch
Batch-insert notes into a MIDI item with full control over pitch, velocity, timing, and channel. Use it as the primary method for writing MIDI in REAPER.
Instructions
Batch-insert notes into a MIDI item. Primary tool for writing MIDI.
Args:
track_index: 0-based track index.
item_index: MIDI item index on that track.
notes: JSON array of {"pitch":60, "velocity":100, "start":0.0, "end":0.5, "channel":0}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| item_index | Yes | ||
| track_index | Yes |