add_midi_note
Insert a MIDI note into a REAPER item using beat-based timing, with pitch, velocity, start beat, and length in beats.
Instructions
Add a MIDI note to an item using musical timing (beats).
Args: pitch: MIDI note number (0-127, 60 = middle C). velocity: Note velocity (1-127). start_beat: Start position in beats from the item start (0 = first beat). length_beats: Note length in beats (0.25 = sixteenth, 0.5 = eighth, 1.0 = quarter).
Example: Four-on-the-floor kick: add_midi_note(0, 0, 36, 110, start_beat=0, length_beats=0.25) then start_beat=1, 2, 3.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pitch | Yes | ||
| channel | No | ||
| velocity | Yes | ||
| item_index | Yes | ||
| start_beat | Yes | ||
| track_index | Yes | ||
| length_beats | Yes |