VCA slider and slide switches handled

This commit is contained in:
Gordon JC Pearce 2025-12-21 21:24:03 +00:00
parent 19e9125221
commit 36db28a11f
1 changed files with 13 additions and 1 deletions

View File

@ -178,7 +178,7 @@ DistrhoUIPeacock::DistrhoUIPeacock() : UI(Art::backgroundWidth, Art::backgroundH
xBtnCh2->setAbsolutePos(644, 293);
xBtnCh2->setId(btnCh2);
xBtnCh2->setCallback(this);
// programLoaded(0);
// programLoaded(0);
}
DistrhoUIPeacock::~DistrhoUIPeacock() {
@ -206,6 +206,9 @@ void DistrhoUIPeacock::parameterChanged(uint32_t index, float value) {
case pPWMDepth:
xSliderPWMDepth->setValue(value);
break;
case pPWMMode:
xSwitchPWM->setValue(value);
break;
case pSubLevel:
xSliderSubLevel->setValue(value);
break;
@ -221,6 +224,9 @@ void DistrhoUIPeacock::parameterChanged(uint32_t index, float value) {
case pRes:
xSliderRes->setValue(value);
break;
case pVCFPol:
xSwitchEnv->setValue(value);
break;
case pEnv:
xSliderEnv->setValue(value);
break;
@ -230,6 +236,12 @@ void DistrhoUIPeacock::parameterChanged(uint32_t index, float value) {
case pKyb:
xSliderKyb->setValue(value);
break;
case pVCALevel:
xSliderVCALevel->setValue(value);
break;
case pEnvGate:
xSwitchVCA->setValue(value);
break;
case pAttack:
xSliderAtk->setValue(value);
break;