Welcome to %s forums

BrainModular Users Forum

Login Register

Tracking mouse buttons in plugin window

I need help on a Patch
Post Reply
ahonoe
Member
Posts: 161
Location: Toronto
Contact:

Unread post by ahonoe » 03 Feb 2016, 01:03

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!
Regards,

Scott

Trogluddite
Member
Posts: 16
Contact:

Unread post by Trogluddite » 03 Feb 2016, 17:41

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.

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 03 Feb 2016, 21:15

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

ahonoe
Member
Posts: 161
Location: Toronto
Contact:

Unread post by ahonoe » 06 Feb 2016, 17:02

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.
Regards,

Scott

Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests