get_midi_notes
Retrieve all MIDI notes from a REAPER item using its track index or direct item ID. Optionally include invisible notes that lie outside item bounds.
Instructions
Get all MIDI notes from a MIDI item.
By default, returns only visible notes (within item bounds). Invisible notes exist in the MIDI data but won't sound during playback.
Item Identification - Accepts BOTH types:
track_pos_idx (integer): Simple index like 0, 1, 2
direct_item_id (string): Internal ID like "MediaItem*0x..."
Args: track_index: Index of the track item_id: EITHER integer track_pos_idx OR string direct_item_id include_invisible: If True, include notes outside item bounds (won't sound). Default: False
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | ||
| track_index | Yes | ||
| include_invisible | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |