Page 1 of 1

Posted: 21 Aug 2016, 09:57
by imodularsynth
Hello all,
I have a question which looks probably stupid, but after hours of testing, I can not find a solution for it
I have a patch with a VST plugin, and I need to send default values to some VST parameters when the patch is loaded. I have connected CONST modules to the VST parameters inputs. The CONST modules are programmed with values 0.5, 0, 1, 0.5, 0, 1 and are going to the six parameter inputs.
However, when the patch is loaded, the plugin does not receive anything. I have put a breakpoint on setParameter() function, it is not called, so I think something is missing on my patch to say "send the values at startup"
I know that the plugin is working correctly because when I use a knob on Usine patch, the plugin receives the calls to setParameter().

What should I do on the patch to send the const values to the VST plugin ?

Benoit

Posted: 21 Aug 2016, 12:55
by iococoi
there is a module called On Initialization
Sends a 1 value when the patch is calculated for the first time. Useful to initialize values at the loading of the patch.
another one would be On Activation
On Activation

Sends a 1 value when the patch is activated or starts its calculation:

when the main engine of Usine is switched ON
when the parent rack is activated in the The Grid Panel
you might want to hook one of these with the Master Panel to update those parameters.

Image

Posted: 21 Aug 2016, 13:11
by imodularsynth
Thank you for your help iococoi.
I tried them, but I probably made an error somewhere. When I connected the outputs of OnInitialization to input of Const, they were all sending 1 rather than the floating value of the const. I will try again this afternoon, it's certainly an error on my side

Posted: 21 Aug 2016, 13:15
by iococoi
sorry, updated post above..onactivation just sends a 1..and that will set you cons to 1 if you hook them up..you need to trigger an update. put a master panel module in your patch and trigger that with the oninit or onactiv..like so:

Image

Posted: 21 Aug 2016, 15:40
by imodularsynth
Just found the same solution on my side too :)
I wanted to find if its was an error on my patch, and I reached the same conclusion as you (about OnInitialization sending a 1 through the const)
Now it works like a charm, thank you again for your help iococoi

Posted: 21 Aug 2016, 18:40
by iococoi
you're welcome..glad it all worked out..best, marco