diff --git a/plugin/parameters.cpp b/plugin/parameters.cpp index 7677e94..e0460a4 100644 --- a/plugin/parameters.cpp +++ b/plugin/parameters.cpp @@ -60,7 +60,6 @@ void Peacock::initParameter(uint32_t index, Parameter& parameter) { enumValues[2].label = "4'"; parameter.enumValues.values = enumValues; } - break; case pLFODepth: @@ -310,7 +309,6 @@ void Peacock::initParameter(uint32_t index, Parameter& parameter) { enumValues[2].label = "Fast"; parameter.enumValues.values = enumValues; } - /* case pModWheel: parameter.hints = kParameterIsAutomatable | kParameterIsHidden; @@ -403,7 +401,6 @@ void Peacock::setParameterValue(uint32_t index, float value) { case pChorusMode: m->patchRam.switch1 &= 0x9f; - switch ((int)value) { case 0: m->patchRam.switch1 |= 0x60; // both off @@ -529,7 +526,6 @@ float Peacock::getParameterValue(uint32_t index) const { return m->patchRam.vca; break; case pChorusMode: - switch (m->patchRam.switch1 & 0x60) { case 0x60: return 0; diff --git a/plugin/ui.cpp b/plugin/ui.cpp index c15ad38..cc49be4 100644 --- a/plugin/ui.cpp +++ b/plugin/ui.cpp @@ -258,6 +258,7 @@ void DistrhoUIPeacock::parameterChanged(uint32_t index, float value) { sw1 &= 0xf8; // mask if (value > 2) value = 2; sw1 |= (1 << (int)value); + xBtn16ft->repaint(); // will repaint all the panel break; case pSqr: sw1 &= 0xf7;