Compare commits
No commits in common. "4317f15f4e182ac3a4a8d52753bc7bcd5a9952fc" and "ad7b7f440561c3eee4cc8ec0b44373b320a0f56e" have entirely different histories.
4317f15f4e
...
ad7b7f4405
|
|
@ -60,6 +60,7 @@ void Peacock::initParameter(uint32_t index, Parameter& parameter) {
|
||||||
enumValues[2].label = "4'";
|
enumValues[2].label = "4'";
|
||||||
parameter.enumValues.values = enumValues;
|
parameter.enumValues.values = enumValues;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case pLFODepth:
|
case pLFODepth:
|
||||||
|
|
@ -309,6 +310,7 @@ void Peacock::initParameter(uint32_t index, Parameter& parameter) {
|
||||||
enumValues[2].label = "Fast";
|
enumValues[2].label = "Fast";
|
||||||
parameter.enumValues.values = enumValues;
|
parameter.enumValues.values = enumValues;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
case pModWheel:
|
case pModWheel:
|
||||||
parameter.hints = kParameterIsAutomatable | kParameterIsHidden;
|
parameter.hints = kParameterIsAutomatable | kParameterIsHidden;
|
||||||
|
|
@ -401,6 +403,7 @@ void Peacock::setParameterValue(uint32_t index, float value) {
|
||||||
|
|
||||||
case pChorusMode:
|
case pChorusMode:
|
||||||
m->patchRam.switch1 &= 0x9f;
|
m->patchRam.switch1 &= 0x9f;
|
||||||
|
|
||||||
switch ((int)value) {
|
switch ((int)value) {
|
||||||
case 0:
|
case 0:
|
||||||
m->patchRam.switch1 |= 0x60; // both off
|
m->patchRam.switch1 |= 0x60; // both off
|
||||||
|
|
@ -526,6 +529,7 @@ float Peacock::getParameterValue(uint32_t index) const {
|
||||||
return m->patchRam.vca;
|
return m->patchRam.vca;
|
||||||
break;
|
break;
|
||||||
case pChorusMode:
|
case pChorusMode:
|
||||||
|
|
||||||
switch (m->patchRam.switch1 & 0x60) {
|
switch (m->patchRam.switch1 & 0x60) {
|
||||||
case 0x60:
|
case 0x60:
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
|
|
@ -258,7 +258,6 @@ void DistrhoUIPeacock::parameterChanged(uint32_t index, float value) {
|
||||||
sw1 &= 0xf8; // mask
|
sw1 &= 0xf8; // mask
|
||||||
if (value > 2) value = 2;
|
if (value > 2) value = 2;
|
||||||
sw1 |= (1 << (int)value);
|
sw1 |= (1 << (int)value);
|
||||||
xBtn16ft->repaint(); // will repaint all the panel
|
|
||||||
break;
|
break;
|
||||||
case pSqr:
|
case pSqr:
|
||||||
sw1 &= 0xf7;
|
sw1 &= 0xf7;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue