Plugnscript: Change control values and reflect in gui

Official support for: bluecataudio.com
Post Reply New Topic
RELATED
PRODUCTS

Post

Hi - Just bought PnS a few days ago...

I am writing a midi effects plugin for storing and manipulating incoming midi. Ideally after the plugin "learns" the incoming midi, I would like to update some control parameter values in the script and have those reflected on the gui. Simply changing the input parameter values in the script does not do this... could someone give me some steps/an example please?

thanks in advance,
michael

Post

Input parameters indeed cannot be changed by the DSP. You can however create output parameters which changes are reflected in the GUI:

Code: Select all

 array<string> outputParametersNames={"Out1","Out2"}; 
 array<double> outputParameters(outputParametersNames.length); 
 void computeOutputData() 
 { 
     outputParameters[0]=// TODO... 
     outputParameters[1]=// TODO... 
 } 

Post

Oh, ok... thanks for the info.

A couple more questions:

1. Is there a way to see the source of the generated KUIML gui script in order to use it as a basis for creating a custom one?

2. is it possible to define a simple button in the dsp script that would then be generated in the gui? I am looking for just a push and release type button in order to perform an action without leaving the button in the second state.

once again, thanks in advance,
michael

Post

There is currently no access to the generated GUI (it's only in memory), but it would indeed be nice to give access to it so that you can use it as a basis for your own.

Buttons are a user interface thing, so it is not defined in the DSP. If you write your own KUIML file for the GUI, you could use a toggle switch (IMAGE_PARAM_TOGGLE_SWITCH) to control the parameter.

Post Reply

Return to “Blue Cat Audio”