Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER General Discussion Forum

Reply
 
Thread Tools Display Modes
Old 01-15-2017, 02:24 PM   #1
Masonic
Human being with feelings
 
Join Date: Mar 2010
Posts: 190
Default how to zoom into cursor position in MIDI editor

I can't figure this one out. The MIDI editor zooming function is really erratic. It goes all over the place no matter where I place the cursor.

What shall I do?

Thank you
Masonic is offline   Reply With Quote
Old 01-15-2017, 04:54 PM   #2
mccrabney
Human being with feelings
 
mccrabney's Avatar
 
Join Date: Aug 2015
Posts: 3,670
Default

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.
__________________
mccrabney scripts: MIDI edits from the Arrange screen ala jjos/MPC sequencer
|sis - - - anacru| isn't what we performed: pls no extra noteons in loop recording
| - - - - - anacru|sis <==this is what we actually performed.
mccrabney is online now   Reply With Quote
Old 01-15-2017, 06:11 PM   #3
Masonic
Human being with feelings
 
Join Date: Mar 2010
Posts: 190
Default

Thank you mccrabney!

Now, I just need to figure out how to take advantage of your message :-). So far, I didn't have any like with scripts. There is so much to learn.

I'm a bit surprised that such a basic function is not set to default in Reaper.
Masonic is offline   Reply With Quote
Old 01-15-2017, 07:13 PM   #4
Goldreap
Human being with feelings
 
Join Date: Feb 2009
Location: UK
Posts: 1,429
Default

What setting do you have selected in Preferences> Editing Behavior> Horizontal zoom center?
Goldreap is offline   Reply With Quote
Old 01-15-2017, 08:38 PM   #5
Masonic
Human being with feelings
 
Join Date: Mar 2010
Posts: 190
Default

Quote:
Originally Posted by Goldreap View Post
What setting do you have selected in Preferences> Editing Behavior> Horizontal zoom center?
Unfortunately, whatever choice I tried in the "Editing Behavior> Horizontal zoom center" it still zooms in to some wrong place. Really unintuitive.
Masonic is offline   Reply With Quote
Old 01-15-2017, 08:42 PM   #6
mccrabney
Human being with feelings
 
mccrabney's Avatar
 
Join Date: Aug 2015
Posts: 3,670
Default

me? edit cursor.
__________________
mccrabney scripts: MIDI edits from the Arrange screen ala jjos/MPC sequencer
|sis - - - anacru| isn't what we performed: pls no extra noteons in loop recording
| - - - - - anacru|sis <==this is what we actually performed.
mccrabney is online now   Reply With Quote
Old 01-15-2017, 09:49 PM   #7
Goldreap
Human being with feelings
 
Join Date: Feb 2009
Location: UK
Posts: 1,429
Default

Quote:
Originally Posted by Masonic View Post
Unfortunately, whatever choice I tried in the "Editing Behavior> Horizontal zoom center" it still zooms in to some wrong place. Really unintuitive.
Same as mccrabney, edit cursor here, zooms as expected...sorry, don't know what could be wrong.
Goldreap is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:46 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.