Page 1 of 1
Posted: 03 Feb 2016, 01:03
by ahonoe
Can anyone tell me if there is a way to track the buttons in a VST plugin popup window? I'm trying to use left mouse down to prevent feedback.
Thanks!
Posted: 03 Feb 2016, 17:41
by Trogluddite
You can't read the mouse clicks directly, because the window doesn't really 'belong' to Usine. However, if the button corresponds to a plugin setting that can be automated, then you may be able to do what you need.
To check this, first get the plugin window open on screen, then open the Usine patch containing the plugin - so that you can see both at once.
Now click the button that you want to test for. If it can be automated, the 'plugin wrapper' module inside the Usine patch should grow a new input and output when you click the button on the plugin (hopefully with a sensible label, though some plugins are better than others in this respect!).
If the 'plugin wrapper' in the patch does grow a new output, the output value will be a value between zero and one, and you should be able to connect it to a "has changed" module in the patch to detect each click.
However, if the button doesn't expose itself for automation via the 'plugin wrapper' module, I don't think there's any simple way to detect the mouse click.
Posted: 03 Feb 2016, 21:15
by 23fx23
maybe also a possible solution would be a combinaison of 'simple' mouse module mousedown output combined to 'has changed' of the params array of the vst.
like "if mouse down and param change it affects 1, if was 1 and mouse release affect 0".
then this to a stop event flow to prevent feedback
Posted: 06 Feb 2016, 17:02
by ahonoe
Thanks for your thoughts Trogluddite and 23fx23. I can use "stop flow on output params if input changed" but I'd prefer to avoid the processor cost. It would be really useful to expose the "left mouse button down" property on the VST object.