fix midi controller dialog
This commit is contained in:
@@ -306,6 +306,7 @@ void MidiCC_PopUp::buttonClicked (Button* buttonThatWasClicked)
|
||||
}
|
||||
GetMin();
|
||||
GetMax();
|
||||
listeners.call (&MidiCC_PopUp_Listener::MidiCC_PopUp_event, POPUP_PARAM_CHANGED);
|
||||
//[/UserButtonCode_button_move_sliders_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);
|
||||
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]
|
||||
}
|
||||
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..
|
||||
state = buttonThatWasClicked->getToggleState();
|
||||
pMidiCC->setDoApplyOnPatchInit(pMidiCC_container, state);
|
||||
listeners.call (&MidiCC_PopUp_Listener::MidiCC_PopUp_event, POPUP_PARAM_CHANGED);
|
||||
//[/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);
|
||||
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]
|
||||
}
|
||||
else if (labelThatHasChanged == label_control_min)
|
||||
{
|
||||
//[UserLabelCode_label_control_min] -- add your label text handling code here..
|
||||
SetMin();
|
||||
listeners.call (&MidiCC_PopUp_Listener::MidiCC_PopUp_event, POPUP_PARAM_CHANGED);
|
||||
//[/UserLabelCode_label_control_min]
|
||||
}
|
||||
else if (labelThatHasChanged == label_control_max)
|
||||
{
|
||||
//[UserLabelCode_label_control_max] -- add your label text handling code here..
|
||||
SetMax();
|
||||
listeners.call (&MidiCC_PopUp_Listener::MidiCC_PopUp_event, POPUP_PARAM_CHANGED);
|
||||
//[/UserLabelCode_label_control_max]
|
||||
}
|
||||
|
||||
@@ -395,7 +401,8 @@ void MidiCC_PopUp::sliderValueChanged (Slider* sliderThatWasMoved)
|
||||
else
|
||||
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]
|
||||
}
|
||||
|
||||
|
||||
@@ -121,7 +121,6 @@ public:
|
||||
currentParamValue = savedParamValue;
|
||||
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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user