Status LED

A user interface toolkit mainly for audio plug-ins (VST, AudioUnit, etc).
Post Reply
oscill
Posts: 3
Joined: Thu May 04, 2017 9:32 pm

Status LED

Post by oscill » Tue Sep 24, 2019 5:58 pm

Hi - New to VSTGUI and need help with a basic question. I'd like to have a GUI element similar to an LED that displays the status of one of my VST parameters. It's a simple bool param, so e.g. a green circle bitmap if true and a grey circle bitmap if false. I already have the parameter working (it queries via MIDI to detect if certain hardware is connected or not; it works properly with a generic gui (setting slider to 0 or 1 on startup).

Which view class should I use to implement this? I tried COnOffButton, with a read-only parameterFlag to prevent the user from changing the value. But I don't know how to have the GUI element reflect the internal parameter value. The control-tag is already set to the parameter ID.

I suspect I need some sort of listener to inform the GUI or host that the parameter value has changed. Or is there a specific GUI view element that is made for this purpose?

Thanks for any help.

Arne Scheffler
Posts: 302
Joined: Mon Jun 20, 2016 7:53 am

Re: Status LED

Post by Arne Scheffler » Wed Sep 25, 2019 9:03 am

Welcome,
there's a little bit of information missing from you. How do you have integrated VSTGUI in your plug-in? There are many ways in how to do it. Are you using the VST3Editor binding class and use the WYSIWYG editor, or do you have coded the integration yourself ?

Cheers,
Arne

programaudio
Posts: 8
Joined: Mon Oct 03, 2016 4:09 am
Location: Chicago
Contact:

Re: Status LED

Post by programaudio » Sun Sep 29, 2019 7:19 pm

I have a similar question regarding how to display feedback from a read only parameter.

My controller inherits from VSTGUI::VST3EditorDelegate, similar to the again and helloworldWithVSTGUI samples.

I am using the WYSIWIG editor with an XML file, and have set the control tag to the corresponding VST3 parameter, after syncing the parameter tags.

In debugging mode, the host provides my editor with callbacks to the setParamNormalized() method, but I am not seeing the value updated in the VSTGUI.
I have tried using VU Meter and Text Label objects within the WYSIWYG editor.
You do not have the required permissions to view the files attached to this post.

Arne Scheffler
Posts: 302
Joined: Mon Jun 20, 2016 7:53 am

Re: Status LED

Post by Arne Scheffler » Mon Sep 30, 2019 9:09 am

Hi,
according to your description you are doing it correctly. The again example uses the same mechanism, maybe you can spot the difference to your code. Look at the parameter with the kVuPPMId identifier.

Cheers,
Arne

Post Reply