- combo boxes have midi controller dialog

- reduce update of parameter sliders during Midi Controller Dialog
This commit is contained in:
2026-05-10 13:08:35 +02:00
parent 15bcf87529
commit 255858cee8
3 changed files with 0 additions and 21 deletions
@@ -5045,10 +5045,6 @@ void JaySynthAudioProcessorEditor::mouseDown (const MouseEvent &m)
if (m.mods.isRightButtonDown() && m.mods.isShiftDown()) if (m.mods.isRightButtonDown() && m.mods.isShiftDown())
{ {
// Comboboxes don't support midicontroller assignments // Comboboxes don't support midicontroller assignments
if (componentThatWasClicked->getComponentID().contains(String("PARAM_COMBOBOX")))
{
return;
}
MidiCC_PopUp_show(componentThatWasClicked); MidiCC_PopUp_show(componentThatWasClicked);
} }
} }
@@ -5164,10 +5160,6 @@ void JaySynthAudioProcessorEditor::MidiCC_PopUp_event(int event)
switch (event) switch (event)
{ {
case MidiCC_PopUp::POPUP_OK: case MidiCC_PopUp::POPUP_OK:
paramID = m_MidiCC_PopUp->getParamID();
getProcessor()->setParam(paramID, m_MidiCC_PopUp->getCurrentParamValue(), false, false);
getProcessor()->controlParam(paramID, m_MidiCC_PopUp->getCurrentControlValue());
m_label_patch_name->setText(getProcessor()->getCurrentProgramName(), juce::NotificationType::dontSendNotification);
deleteAndZero (m_MidiCC_PopUp); deleteAndZero (m_MidiCC_PopUp);
break; break;
-12
View File
@@ -306,8 +306,6 @@ void MidiCC_PopUp::buttonClicked (Button* buttonThatWasClicked)
} }
GetMin(); GetMin();
GetMax(); GetMax();
restoreTestSlider();
TestValueUpdate();
//[/UserButtonCode_button_move_sliders_enable] //[/UserButtonCode_button_move_sliders_enable]
} }
else if (buttonThatWasClicked == button_assign_enable) else if (buttonThatWasClicked == button_assign_enable)
@@ -323,8 +321,6 @@ 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);
} }
restoreTestSlider();
TestValueUpdate();
//[/UserButtonCode_button_assign_enable] //[/UserButtonCode_button_assign_enable]
} }
else if (buttonThatWasClicked == button_midi_learn) else if (buttonThatWasClicked == button_midi_learn)
@@ -337,8 +333,6 @@ 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);
restoreTestSlider();
TestValueUpdate();
//[/UserButtonCode_button_apply_on_patch_init] //[/UserButtonCode_button_apply_on_patch_init]
} }
@@ -363,24 +357,18 @@ 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);
} }
restoreTestSlider();
TestValueUpdate();
//[/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();
restoreTestSlider();
TestValueUpdate();
//[/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();
restoreTestSlider();
TestValueUpdate();
//[/UserLabelCode_label_control_max] //[/UserLabelCode_label_control_max]
} }
-1
View File
@@ -91,7 +91,6 @@ public:
currentControlValue = toParam(pMidiCC->getControl(pMidiCC_container), (synth_float_t)lastMidiCCvalue); currentControlValue = toParam(pMidiCC->getControl(pMidiCC_container), (synth_float_t)lastMidiCCvalue);
} }
restoreTestSlider(); restoreTestSlider();
TestValueUpdate();
if (!button_midi_learn->getToggleState()) if (!button_midi_learn->getToggleState())
return; return;