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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"track_index": "<track_index>",
"item_index": "<item_index>"
},
"name": "select_midi_notes"
}
}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 |