-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zoom Revisited #305
Comments
VST3 has a IPlugViewContentScaleSupport interface with the following method typedef float ScaleFactor; For VST2, Presonus has added some extensions which are also used by some other hosts, which you can get http://www.presonussoftware.com/en_US/index.php?id=developer. |
Thank you. Very useful! It seems AUV2 doesn't have that build in but I'm still looking. |
I think on macOS you just ask the OS directly if you want retina or not. |
Oh yeah that’s there. I was more thinking I don’t see how auv2 tells the host it is resizing other than just whacking the size of the nsframe (which is how zoom works now) |
Alright I'm going to start my path here. I've decided to go the 'menu' route rather than the 'drag' route for now, so am adding that, then changing the way I deal with vector assets, then doing a cleaner zoom in vst2 and au, then vst3 is my rough plan. I won't add each diff and PR to this issue but will make a suite of issues I will tag "path to zoom" as I go. |
im running VST2 x64 still (Ableton will soon update i hope) on windows 10 x64, but is there a reason the zoom value is not saved? i set zoom to 150% and close the plugin window and open it, the zoom is back on 100% again. i didnt wanted to open a new issue for that, maybe its already in the works? |
What version are you running? I fixed that a week or so ago. Can you let us know the version from menu / about? Or try with the 16beta5? If you are trying with 16beta5 then that’s a bug we can look at sure! Thanks so much |
ableton was somehow still loading the old version from 18.2, now it works. (thats really annoying in ableton, it doesnt show you two dlls, but it rather keeps the first one for you to load - grrrrr) thank you so much for fixing this! (16beta5!) |
You are welcome! Thanks for confirming It doesn’t stick beteeen sessions. That is if you close and restart abelton everything goes back to 100%. I’m still debating how to solve that. |
yeah i just noticed that too. so when you remove surge from ableton in the same session and re-add it, the zoom level is also reset. i am wondering is there a setting save file? or where are settings saved for surge? |
Yes that is in beta5. Set zoom to 125 then do menu / zoom / set 125 as default zoom and every surge forever will be 125 |
So now we are getting bugs squashed and linux building and scalable assets, the most requested feature is zoom. I did a sorta-hack version of zoom in the audio unit and that's in the builds now, but we want a zoom which works all hosts all platforms so I plan to rip out and re-implement the audio unit zoom. I'm going to use this ticket as a place to store notes to myself. I'm also going to tag this for the 1.6 milestone. And, when the time comes, I think I will need help on windows.
Right now we have
So we know that we can resize (in some cases) and we can scale properly in vstgui. Good.
So my plan of attach is
If the drag-to-resize proves to hard I may also just do fixed sizes. I note that Roli Equator has drag to resize but the Arturia V6 collection instead has click scale to resize. So step one above might be "replace the about button with a menu button which contains about and zoom". I'll see as I go.
As far as informing hosts of resize here's my prelim notes to self.
audioeffectx::sizeWindow
which requests the host resize. I think to use it you have to respond positively to the canDo message "sizeWindow"Also this article seems to have loads of useful information.
I'll probably take a swing at some code on Thursday. If any of you read this and have things to add about how to code it up, please add them to this issue.
Finally the way I code it should work on windows if we can get the resources; but how to get this plethora of bitmap resources into the windows build is far trickier. Once I get it working reliably on mac I will probably need some help there.
The text was updated successfully, but these errors were encountered: