Tag Archives: code

VST3 SDK 3.6.6: setMouseEnabled() – how to use it?

I like to set control B (AnimKnob) disabled if control A (OnOffButton) is set to ‘On’ (value 1.0f).

It works when I click control A.
It doesn’t work when
a) the plugin is loaded the first time
b) a preset is loaded
c) switching between generic editor – plugin editor (without changing a pramater value)

Code (VST3.6.6, VSTGUI4.3):

void ViewController::valueChanged(CControl* pControl)
{
float ctrlValue = pControl->getValue();
switch (pControl->getTag())
{
case kParamDriveMode:// control A
{
CControl* ct =getControlByTag(kParamDriveModeCoeff);// control B
if (ct) {
//ct->setVisible((ctrlValue == 1.0f));
ct->setMouseEnabled((ctrlValue == 1.0f));
}

break;
}

In debug mode (VS 2015, Win 10) I can see that in any case the values are setting correctly.
But even when I set the background image or call setDirty(), invalid(), valueChanged(): it doesn’t work.

setVisible() instead of setMouseEnabled() works – but I don’t like to hide the control.

What do I miss?

sdk.steinberg.net

VST3 SDK 3.6.5: VST2 wrapper & VSTGUI

Using the VST2 wrapper with VSTGUI 4.2.
It works for 64-bit VST2.

But the 32-bit VST2 plugin needs a refresh:
When I load another preset, the new data will be loaded (playing on the keyboard the new sound), but the GUI shows the old param values.
When I move the plugin window out of the screen & then back, the GUI is refreshed & shows the correct values.

This happens with plugin ‘note_expression_synth’ (SDK sample project).

If I use the new VSTGUI 4.3, the plugin shows an empty (white) window!
The same with the (new) SDK project ‘uidescription test’.

— obsolete: new VST SDK version 3.6.6 —

dexed

dexed

dexed

“Dexed is a multi platform, multi format plugin synth that is closely modeled on the Yamaha DX7. Under the hood, it uses music-synthesizer-for-android for the synth engine and JUCE as a plugin wrapper.

The goal of this project is to be a great tool/companion for the original DX7. Yes, the sound engine with ‘float’ values parameter; different waveform (a la TX81z) would be great but anything that goes beyond the DX7 should will be a fork of this project. This is to keep the compatiblity with the original synth.”