Go Back   Cockos Incorporated Forums > REAPER Forums > newbieland

Reply
 
Thread Tools Display Modes
Old 02-21-2019, 08:05 AM   #1
vsgrt
Human being with feelings
 
Join Date: May 2017
Posts: 19
Default MIDI Editor opens at random vertical zoom values

Hi!

When i record MIDI and then click on the media item, the MIDI editor opens on a seemingly random vertical zoom value. So sometimes the notes are not showing because they are either over or under the top/bottom range of the zoom.

Is this normal behavior of the editor or have i messed up a setting somewhere?

I would assume that the correct behavior would be to zoom the editor automatically so that the lowest MIDI note in a clip is placed at the bottom or near bottom whenever i open up the editor, so that i could always see the notes i recorded without having to manually zoom.

I have mapped "Z" to "zoom to content" in the MIDI Editor, which helps, but this entire behavior seems strange - maybe a bug? I couldn't find a way to add "zoom to content" to the mouse behavior whenever i open a midi clip either. I would like the editor to automatically zoom to content, or to have a zoom behavior that always shows all my notes, or at least most of them.


All help appreciated!
(I'm on macOS Mojave, if that matters)

Thanks community
vsgrt is offline   Reply With Quote
Old 02-23-2019, 01:48 AM   #2
dtr0q
Human being with feelings
 
dtr0q's Avatar
 
Join Date: Dec 2017
Posts: 69
Default

I use this script for media item left click modifier:
Code:
reaper.Undo_BeginBlock()
reaper.Main_OnCommand(40528, 0) -- select item
hwnd = reaper.MIDIEditor_GetActive() -- get active MIDI editor
reaper.MIDIEditor_OnCommand(hwnd, 40466) -- Zoom to content
reaper.Undo_EndBlock("Script: Select Item Zoom Midi ", -1 )
It works with "Active Item selection folows selection in arrange view" and "One editor per project". Also I always keep docked Midi editor.
To zoom with double click (open editor) replace "40528" with "40153"
dtr0q is offline   Reply With Quote
Old 02-23-2019, 11:37 AM   #3
JoMal
Human being with feelings
 
Join Date: Sep 2010
Location: Bayonne, NJ
Posts: 12
Default

Quote:
Originally Posted by dtr0q View Post
I use this script for media item left click modifier:
Code:
reaper.Undo_BeginBlock()
reaper.Main_OnCommand(40528, 0) -- select item
hwnd = reaper.MIDIEditor_GetActive() -- get active MIDI editor
reaper.MIDIEditor_OnCommand(hwnd, 40466) -- Zoom to content
reaper.Undo_EndBlock("Script: Select Item Zoom Midi ", -1 )
It works with "Active Item selection folows selection in arrange view" and "One editor per project". Also I always keep docked Midi editor.
To zoom with double click (open editor) replace "40528" with "40153"
Very helpful, thank you!
JoMal 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 02:03 AM.


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