i struggled with this but have had good experience using this combination (it's part of a larger script/action combo but i removed stuff that wasn't relevant to your request):
Quote:
custom action that assumes you're opening a midi item on 1 track:
xenakios/sws: Select items under edit cursor on selected tracks
SCRIPT: openMErunMEaction.eel (see below)
where the openME script does this:
Code:
function do_actions_from_main_and_midi_sections()
(
Main_OnCommand(40153, 0); // MAIN section action 40153: "open selected item in MIDI editor"
active_MIDI_editor = MIDIEditor_GetActive(); // Now the MIDI editor is opened -> get MIDI editor ID
MIDIEditor_OnCommand(active_MIDI_editor, 40006); // select all events
MIDIEditor_OnCommand(active_MIDI_editor, 40725); // zoom to selected notes
MIDIEditor_OnCommand(active_MIDI_editor, 40466); // zoom to content
MIDIEditor_OnCommand(active_MIDI_editor, 40214); // deselect all
);
do_actions_from_main_and_midi_sections();
|
you can pick either zoom to selected notes or zoom to content, whatever suits you better
in preferences, i set reaper to one midi editor for project and open all midi on the same track. all of my midi items are set to project beats timebase.