Update PluginGui.cpp
This commit is contained in:
parent
e7c820caf4
commit
3e720f32a8
1 changed files with 29 additions and 7 deletions
|
@ -88,12 +88,34 @@ void PluginGui::updateFromParameters()
|
||||||
case 5: hiHatButton->setToggleState(true, dontSendNotification); break;
|
case 5: hiHatButton->setToggleState(true, dontSendNotification); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
frequencyComboBox->setSelectedItemIndex (
|
//DBG(" multipler " << processor->getEnumParameter("Modulator Frequency Multiplier"));
|
||||||
processor->getEnumParameter("Modulator Frequency Multiplier"),
|
|
||||||
sendNotificationAsync);
|
int val = processor->getEnumParameter("Modulator Frequency Multiplier");
|
||||||
frequencyComboBox2->setSelectedItemIndex (
|
if (val <=10 ){
|
||||||
processor->getEnumParameter("Carrier Frequency Multiplier"),
|
frequencyComboBox->setSelectedItemIndex (val,
|
||||||
sendNotificationAsync);
|
sendNotificationAsync);
|
||||||
|
}
|
||||||
|
else if (val == 12){
|
||||||
|
frequencyComboBox->setSelectedItemIndex (11,
|
||||||
|
sendNotificationAsync);
|
||||||
|
}
|
||||||
|
else if (val == 15){
|
||||||
|
frequencyComboBox->setSelectedItemIndex (12,
|
||||||
|
sendNotificationAsync);
|
||||||
|
}
|
||||||
|
val = processor->getEnumParameter("Carrier Frequency Multiplier");
|
||||||
|
if (val <=10 ){
|
||||||
|
frequencyComboBox2->setSelectedItemIndex (val,
|
||||||
|
sendNotificationAsync);
|
||||||
|
}
|
||||||
|
else if (val == 12){
|
||||||
|
frequencyComboBox2->setSelectedItemIndex (11,
|
||||||
|
sendNotificationAsync);
|
||||||
|
}
|
||||||
|
else if (val == 15){
|
||||||
|
frequencyComboBox2->setSelectedItemIndex (12,
|
||||||
|
sendNotificationAsync);
|
||||||
|
}
|
||||||
|
|
||||||
attenuationSlider->setValue(processor->getEnumParameter("Modulator Attenuation") * -0.75, juce::NotificationType::dontSendNotification);
|
attenuationSlider->setValue(processor->getEnumParameter("Modulator Attenuation") * -0.75, juce::NotificationType::dontSendNotification);
|
||||||
attenuationSlider2->setValue(processor->getEnumParameter("Carrier Attenuation") * -0.75, juce::NotificationType::dontSendNotification);
|
attenuationSlider2->setValue(processor->getEnumParameter("Carrier Attenuation") * -0.75, juce::NotificationType::dontSendNotification);
|
||||||
|
|
Loading…
Reference in a new issue