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
VST parameter initialization with CONST modules
there is a module called On Initialization

another one would be On ActivationSends a 1 value when the patch is calculated for the first time. Useful to initialize values at the loading of the patch.
you might want to hook one of these with the Master Panel to update those parameters.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

-
imodularsynth
- Member
- Posts: 36
- Contact:
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
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
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:


-
imodularsynth
- Member
- Posts: 36
- Contact:
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
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
you're welcome..glad it all worked out..best, marco
Who is online
Users browsing this forum: No registered users and 20 guests
