RomanKubiak / ctrlr

Ctrlr
BSD 3-Clause "New" or "Revised" License
497 stars 58 forks source link

VST/AU plugin instances not resizable #339

Open damiensellier opened 2 years ago

damiensellier commented 2 years ago

Hi, That would be so nice to have the option to make the VST/AU container resizeable. Right now the restricted instance frames are locked by default. Nowadays people use either HD displays or HiDPI 4K+ screens, it's either too big or too small. Being able to apply zoom factors and resizing the container proportionally would be a nice added value instead of having to export 2 different size instances.

JUCE functions is available in the class WIndow >>> Resizable Window "ResizableCornerComponent" (for VST2 and AU) lets the user the possibility to drag the corner to resize the container. "setResizable(true, true)" enables the resize. "setResizeLimits(minWidth, minHeight, maxWidth, maxHeight)" sets the min/max values.

Implementing those functions would be really nice!

Thanks

bijlevel commented 2 years ago

Yes, I support that request fully!

bijlevel commented 2 years ago

I did manage to compile for Mac a CTRLR version with resizable windows for AU/VST3 plugins. For windows it seemed also to succeed, but then the VST3 won't open the needed midi device for input or output :-(

dobo365 commented 2 years ago

Excellent. I would be glad to have a version able to export VST3 correctly. Is there one? With 5.3.201 it is VST2. Thx

bijlevel commented 2 years ago

Only for Mac, but not yet fully tested. CTRLR v5.6.23

damiensellier commented 2 years ago

Hi @bijlevel that sounds good! Can you please let us know how do you set the window resizable or not? Is it via Lua when the pannel loads or with a checkbox in the global variables? Or something else? thanks

bijlevel commented 2 years ago

Hi @bijlevel that sounds good! Can you please let us know how do you set the window resizable or not? Is it via Lua when the pannel loads or with a checkbox in the global variables? Or something else? thanks

I have explained in discussion #336 how I did it. Try to compile, using my guide, the Mac version for CTRLR. Would be a good excercise 😉! OTOH I can upload the app on the website of Godlike Productions, see discussion #278.

damiensellier commented 2 years ago

@bijlevel oh yeah I remember, you already gave me the details. Sure , if godlike can host it I'll download it. Have a nice day

Godlike-Productions commented 2 years ago

I've uploaded it.

You can find them all here - https://godlike.com.au/index.php?id=361

damiensellier commented 2 years ago

@Godlike-Productions I just downloaded the files on your website. Just for the info, what do you mean about "pace compatible"? thanks ;)

Godlike-Productions commented 2 years ago

I use iLok (Pace) to secure my Jupiter 8 Plugin, that I sell. The PACE wrapper requires some space in the header, that by default isn't available in the AU version. This version has a compile flag allowing this. It is otherwise identical.

If you want to add iLok support for anti-piracy and registration, then you must use the PACE compatible version.

damiensellier commented 2 years ago

@Godlike-Productions Thanks for your reply. I'll have a phone call with Derek from Pace next week. He is supposed to tell me all the secrets about the iLok system ;) The Space required in the header is only for the AU version not the VST that's right?

Godlike-Productions commented 2 years ago

Yes, that is correct. If you get an agreement with PACE, and Derek is OK with it, I can run you through the process or getting ctrlr stuff wrapped, though I'm far from an expert. PACE has an NDA clause, so can't really discuss the nuts and bolts in a public forum.

damiensellier commented 2 years ago

@Godlike-Productions Thanks for the reply. Yes I'll talk to Derek this week and will see what it's all about. We'll have to respect the NDA for sure. However, I don't think there will be no problem to discuss about the methods required to wrap plugins and apps specifically for ctrlr. I'll send you an email through your website next weekend when I'll get more info. Thanks again! Damien