Quote:
Originally Posted by boreg
However, there is a problem - the zoom is not centered around the current position, which "runs away" (especially noticeable when zooming in). The adjustZoom() SDK function has "centermode" parameter, but I couldn't find a magic value to make it work properly (well, I tried -1, 0 and 1 )
|
centermode values: -1 = mode set in preferences, 0 = edit or play cursor, 1 = edit cursor, 2 = center of view, 3 = mouse cursor. Maybe try 2? Let me know if you still have troubles and I can post some code to reposition the horizontal position as you please.
Quote:
- It would be great to implement drag zoom in the MIDI editor as well, but I'm not sure if it's possible.
|
I don't believe this is possible to do
You should lock the time selection / loop points with the locking system before calling adjust zoom, that will solve your problem. You need to use some undocumented stuff for this, let me dig it up and I'll post later.