Create VST, VST3 and Audio Units with Plug'n Script 3.1

Official support for: bluecataudio.com
ilyaorlov
KVRer
25 posts since 28 May, 2011

Post Wed Jan 23, 2019 12:19 am

And a few fresh questions, please:

1) How to display multiline text?
Somewhy this example from the manual doesn't work

<TEXT multiline="true" width="100" font_face="Tahoma" value="This is a skin. Hello World!"
text_h_align="left" word_break="true" />

2) Can we somehow display arbitrary messagebox (with text generated in KUML script)? As It seems DisplayMessageBox can only display "fixed" strings?

--- and not so important, but still interested --

3) Can we modify FORMULA_CURVE.formula from KUIML Script?
The manual says formula is represented in a script as a simple function y(x). So I thought maybe we can take an arbitrary function "double y(double x)" and assign it to FORMULA_CURVE? :)

User avatar
Blue Cat Audio
KVRAF
3668 posts since 8 Sep, 2004 from Paris (France)

Re: Create VST, VST3 and Audio Units with Plug'n Script 3.1

Post Mon Jan 28, 2019 5:34 pm

For (1) it should be marked as deprecated. It used to be available only on Windows, then we deprecated the feature (we'd like to add it back in the future). Maybe the doc has to be updated, I will double check.

For (2) it is not possible at this stage. We should indeed add an option to use STRING objects instead of static strings in the future. For some reason we have never had the need for it...

Regarding (3), you cannot modify a formula curve from a string at runtime, but this could be added in a future release. The problem is that you may have runtime issues if the syntax is incorrect. Using scripting to define more complex functions is in our plans, but it has its own problems too, as you cannot reference external variables inside the script that defines the function - Unless they are manually listing so that the compiler can generate smart proxies for them. So there is a bit of work here too :-)

ilyaorlov
KVRer
25 posts since 28 May, 2011

Re: Create VST, VST3 and Audio Units with Plug'n Script 3.1

Post Mon Jan 28, 2019 11:37 pm

Yea, I understand! Thanks for answer, appreciate your work!

ilyaorlov
KVRer
25 posts since 28 May, 2011

Re: Create VST, VST3 and Audio Units with Plug'n Script 3.1

Post Mon Feb 11, 2019 8:31 am

Added a few examples of FFT analyzer based on Plug-N-Script.

It's still not very optimised and linear (not log scale, as we're used to), but maybe a helpful piece of code for someone learning and moving on.

First version is very simple and uses available 32 outputs.

Second version uses more complex data sending from CXX to KUIML, so array of arbitrary size can be transmitted, and more that 32 bars we can have as output. It also lets click on frequency band to see it's values.

Added to examples:
https://github.com/ilyaorlovru/plug-n-script-examples
You do not have the required permissions to view the files attached to this post.

ilyaorlov
KVRer
25 posts since 28 May, 2011

Re: Create VST, VST3 and Audio Units with Plug'n Script 3.1

Post Mon Feb 18, 2019 4:57 am

By the way, linear bar-based FFT seems to be convenient for examining and measuring harmonics.
You do not have the required permissions to view the files attached to this post.

User avatar
Blue Cat Audio
KVRAF
3668 posts since 8 Sep, 2004 from Paris (France)

Re: Create VST, VST3 and Audio Units with Plug'n Script 3.1

Post Wed Feb 20, 2019 2:37 am

Very nice!!

Return to “Blue Cat Audio”