fix midi controller dialog

This commit is contained in:
2026-05-10 13:37:38 +02:00
parent 255858cee8
commit 17b12fe3f1
2 changed files with 8 additions and 2 deletions
+8 -1
View File
@@ -306,6 +306,7 @@ void MidiCC_PopUp::buttonClicked (Button* buttonThatWasClicked)
} }
GetMin(); GetMin();
GetMax(); GetMax();
listeners.call (&MidiCC_PopUp_Listener::MidiCC_PopUp_event, POPUP_PARAM_CHANGED);
//[/UserButtonCode_button_move_sliders_enable] //[/UserButtonCode_button_move_sliders_enable]
} }
else if (buttonThatWasClicked == button_assign_enable) else if (buttonThatWasClicked == button_assign_enable)
@@ -321,6 +322,7 @@ void MidiCC_PopUp::buttonClicked (Button* buttonThatWasClicked)
currentParamValue = toParam(pMidiCC->getParam(pMidiCC_container), (synth_float_t)lastMidiCCvalue); currentParamValue = toParam(pMidiCC->getParam(pMidiCC_container), (synth_float_t)lastMidiCCvalue);
currentControlValue = toParam(pMidiCC->getControl(pMidiCC_container), (synth_float_t)lastMidiCCvalue); currentControlValue = toParam(pMidiCC->getControl(pMidiCC_container), (synth_float_t)lastMidiCCvalue);
} }
listeners.call (&MidiCC_PopUp_Listener::MidiCC_PopUp_event, POPUP_PARAM_CHANGED);
//[/UserButtonCode_button_assign_enable] //[/UserButtonCode_button_assign_enable]
} }
else if (buttonThatWasClicked == button_midi_learn) else if (buttonThatWasClicked == button_midi_learn)
@@ -333,6 +335,7 @@ void MidiCC_PopUp::buttonClicked (Button* buttonThatWasClicked)
//[UserButtonCode_button_apply_on_patch_init] -- add your button handler code here.. //[UserButtonCode_button_apply_on_patch_init] -- add your button handler code here..
state = buttonThatWasClicked->getToggleState(); state = buttonThatWasClicked->getToggleState();
pMidiCC->setDoApplyOnPatchInit(pMidiCC_container, state); pMidiCC->setDoApplyOnPatchInit(pMidiCC_container, state);
listeners.call (&MidiCC_PopUp_Listener::MidiCC_PopUp_event, POPUP_PARAM_CHANGED);
//[/UserButtonCode_button_apply_on_patch_init] //[/UserButtonCode_button_apply_on_patch_init]
} }
@@ -357,18 +360,21 @@ void MidiCC_PopUp::labelTextChanged (Label* labelThatHasChanged)
currentParamValue = toParam(pMidiCC->getParam(pMidiCC_container), (synth_float_t)lastMidiCCvalue); currentParamValue = toParam(pMidiCC->getParam(pMidiCC_container), (synth_float_t)lastMidiCCvalue);
currentControlValue = toParam(pMidiCC->getControl(pMidiCC_container), (synth_float_t)lastMidiCCvalue); currentControlValue = toParam(pMidiCC->getControl(pMidiCC_container), (synth_float_t)lastMidiCCvalue);
} }
listeners.call (&MidiCC_PopUp_Listener::MidiCC_PopUp_event, POPUP_PARAM_CHANGED);
//[/UserLabelCode_label_MidiCC_ID] //[/UserLabelCode_label_MidiCC_ID]
} }
else if (labelThatHasChanged == label_control_min) else if (labelThatHasChanged == label_control_min)
{ {
//[UserLabelCode_label_control_min] -- add your label text handling code here.. //[UserLabelCode_label_control_min] -- add your label text handling code here..
SetMin(); SetMin();
listeners.call (&MidiCC_PopUp_Listener::MidiCC_PopUp_event, POPUP_PARAM_CHANGED);
//[/UserLabelCode_label_control_min] //[/UserLabelCode_label_control_min]
} }
else if (labelThatHasChanged == label_control_max) else if (labelThatHasChanged == label_control_max)
{ {
//[UserLabelCode_label_control_max] -- add your label text handling code here.. //[UserLabelCode_label_control_max] -- add your label text handling code here..
SetMax(); SetMax();
listeners.call (&MidiCC_PopUp_Listener::MidiCC_PopUp_event, POPUP_PARAM_CHANGED);
//[/UserLabelCode_label_control_max] //[/UserLabelCode_label_control_max]
} }
@@ -395,7 +401,8 @@ void MidiCC_PopUp::sliderValueChanged (Slider* sliderThatWasMoved)
else else
slider_test->setTooltip (String(toParam(pMidiCC->getControl(pMidiCC_container), (synth_float_t)slider_test->getValue()))); slider_test->setTooltip (String(toParam(pMidiCC->getControl(pMidiCC_container), (synth_float_t)slider_test->getValue())));
} }
TestValueUpdate(); TestValueUpdate();
listeners.call (&MidiCC_PopUp_Listener::MidiCC_PopUp_event, POPUP_PARAM_CHANGED);
//[/UserSliderCode_slider_test] //[/UserSliderCode_slider_test]
} }
-1
View File
@@ -121,7 +121,6 @@ public:
currentParamValue = savedParamValue; currentParamValue = savedParamValue;
currentControlValue = toParam(pMidiCC->getControl(pMidiCC_container), (synth_float_t)slider_test->getValue()); currentControlValue = toParam(pMidiCC->getControl(pMidiCC_container), (synth_float_t)slider_test->getValue());
} }
listeners.call (&MidiCC_PopUp_Listener::MidiCC_PopUp_event, POPUP_PARAM_CHANGED);
} }
void restoreTestSlider() void restoreTestSlider()
{ {