select_midi_notes
Select or deselect MIDI notes in REAPER by filtering pitch, channel, and beat range. Use exclusive mode to replace the current selection with matching notes.
Instructions
Select the MIDI notes matching the filter, as if clicked in REAPER's MIDI editor.
Args: selected: False deselects the matching notes instead; with no filter, clears the selection. exclusive: When selecting, deselect every note that does not match.
notes_changed counts notes whose selection flipped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | ||
| channel | No | ||
| end_beat | No | ||
| selected | No | ||
| exclusive | No | ||
| pitch_low | No | ||
| item_index | Yes | ||
| pitch_high | No | ||
| start_beat | No | ||
| track_index | Yes | ||
| return_notes | No |