insert_midi_events
Create MIDI items in REAPER from notes, CC, pitch bend, and program changes, with dry-run preview and drum rule validation.
Instructions
Create a MIDI item from notes, CC, pitch bend and program changes. Times are seconds relative to item start; channels are 0..15. For drums, enforce drum-apparatus goldenrule before sending.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track | No | Exact track name (case-insensitive). | |
| events | Yes | ||
| dry_run | No | Preview: return what would run without changing the project. | |
| fx_guid | No | ||
| fx_index | No | ||
| fx_scope | No | ||
| start_seconds | Yes | ||
| length_seconds | Yes | ||
| track_contains | No | Case-insensitive substring; errors if it matches more than one track. | |
| fx_name_contains | No | ||
| target_track_guid | No | Stable REAPER track GUID; preferred when available. | |
| use_selected_track | No | Target the currently selected track instead of naming one. |