- port to minGw

git-svn-id: http://moon:8086/svn/software/trunk/projects/JaySynth@235 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2015-02-21 17:09:43 +00:00
parent 843c6e300c
commit cfc9645b0b
1093 changed files with 426078 additions and 143 deletions
+25 -25
View File
@@ -2191,9 +2191,9 @@ JaySynthAudioProcessorEditor::JaySynthAudioProcessorEditor (JaySynthAudioProcess
startTimer (500);
#ifdef DEBUG
m_label_synth_version->setText(String("V ") + String(JucePlugin_VersionString) + String(" (DEBUG)"), true);
m_label_synth_version->setText(String("V ") + String(JucePlugin_VersionString) + String(" (DEBUG)"), juce::NotificationType::sendNotification);
#else
m_label_synth_version->setText(String("V ") + String(JucePlugin_VersionString), true);
m_label_synth_version->setText(String("V ") + String(JucePlugin_VersionString), juce::NotificationType::sendNotification);
#endif
m_btn_noise_enable_led->addListener (this);
m_btn_noise_enable_led->setTriggeredOnMouseDown (true);
@@ -4210,7 +4210,7 @@ void JaySynthAudioProcessorEditor::labelTextChanged (Label* labelThatHasChanged)
if (labelThatHasChanged == m_label_patch_name)
{
getProcessor()->setCurrentProgramName(labelThatHasChanged->getText());
labelThatHasChanged->setText(getProcessor()->getCurrentProgramName(), false);
labelThatHasChanged->setText(getProcessor()->getCurrentProgramName(), juce::NotificationType::dontSendNotification);
return;
}
else if (labelThatHasChanged == m_label_patch_number)
@@ -5069,7 +5069,7 @@ void JaySynthAudioProcessorEditor::mouseDown (const MouseEvent &m)
if (m.mods.isRightButtonDown() && !m.mods.isShiftDown())
{
if (componentThatWasClicked->getComponentID().contains(L"SLIDER"))
if (componentThatWasClicked->getComponentID().contains(String("SLIDER")))
{
switch (paramID)
{
@@ -5093,7 +5093,7 @@ void JaySynthAudioProcessorEditor::mouseDown (const MouseEvent &m)
if (m.mods.isRightButtonDown() && m.mods.isShiftDown())
{
// Comboboxes don't support midicontroller assignments
if (componentThatWasClicked->getComponentID().contains(L"COMBOBOX"))
if (componentThatWasClicked->getComponentID().contains(String("COMBOBOX")))
{
return;
}
@@ -5151,14 +5151,14 @@ void JaySynthAudioProcessorEditor::VelKey_PopUp_event(int event)
{
case VelKey_PopUp::POPUP_OK:
paramID = m_VelKey_PopUp->getParamID();
m_label_patch_name->setText(getProcessor()->getCurrentProgramName(), false);
m_label_patch_name->setText(getProcessor()->getCurrentProgramName(), juce::NotificationType::dontSendNotification);
paramUpdate(paramID, false);
deleteAndZero (m_VelKey_PopUp);
break;
case VelKey_PopUp::POPUP_PARAM_CHANGED:
paramID = m_VelKey_PopUp->getParamID();
m_label_patch_name->setText(getProcessor()->getCurrentProgramName(), false);
m_label_patch_name->setText(getProcessor()->getCurrentProgramName(), juce::NotificationType::dontSendNotification);
getProcessor()->perVoiceControlChanged(paramID);
paramUpdate(paramID, false);
break;
@@ -5215,7 +5215,7 @@ void JaySynthAudioProcessorEditor::MidiCC_PopUp_event(int event)
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(), false);
m_label_patch_name->setText(getProcessor()->getCurrentProgramName(), juce::NotificationType::dontSendNotification);
deleteAndZero (m_MidiCC_PopUp);
break;
@@ -5257,7 +5257,7 @@ void JaySynthAudioProcessorEditor::actionListenerCallback (const String &message
if (paramID < 0)
break;
paramUpdate(paramID, false);
m_label_patch_name->setText(getProcessor()->getCurrentProgramName(), false);
m_label_patch_name->setText(getProcessor()->getCurrentProgramName(), juce::NotificationType::dontSendNotification);
if (m_VelKey_PopUp)
m_VelKey_PopUp->setCurrParam(paramID, (float)getProcessor()->getParam(paramID));
break;
@@ -5289,20 +5289,20 @@ void JaySynthAudioProcessorEditor::actionListenerCallback (const String &message
break;
case JaySynthActionListener::JAYSYNTH_CHANGED_PROGRAM:
m_label_patch_name->setText(getProcessor()->getCurrentProgramName(), false);
m_label_patch_number->setText(String::formatted("%02d", getProcessor()->getCurrentProgram()), false);
m_label_patch_name->setText(getProcessor()->getCurrentProgramName(), juce::NotificationType::dontSendNotification);
m_label_patch_number->setText(String::formatted("%02d", getProcessor()->getCurrentProgram()), juce::NotificationType::dontSendNotification);
break;
case JaySynthActionListener::JAYSYNTH_CHANGED_LIMITER:
limiter_on = spa.getValue("value", "-1").getIntValue();
m_btn_limiter_led->setToggleState(limiter_on != 0, false);
m_btn_limiter_led->setToggleState(limiter_on != 0, juce::NotificationType::dontSendNotification);
break;
case JaySynthActionListener::JAYSYNTH_CHANGED_NUM_VOICES_PLAYING:
paramID = spa.getValue("value", "-1").getIntValue();
if (paramID < 0)
break;
m_label_num_voices_playing->setText(String::formatted("%d", paramID), false);
m_label_num_voices_playing->setText(String::formatted("%d", paramID), juce::NotificationType::dontSendNotification);
break;
default:
@@ -5353,14 +5353,14 @@ void JaySynthAudioProcessorEditor::paramUpdate(int paramID, bool doHostUpdate)
pSlider = (Slider*)findChildWithID(String("SLIDER ") + String(paramID));
if (pSlider)
{
pSlider->setValue(getProcessor()->getParameter(paramID), false);
pSlider->setValue(getProcessor()->getParameter(paramID), juce::NotificationType::dontSendNotification);
pSlider->setColour (Slider::rotarySliderFillColourId, slider_colour);
}
pLabel = (Label*)findChildWithID(String("LABEL ") + String(paramID));
if (pLabel)
{
pLabel->setText((String)getProcessor()->getParameterText(paramID), false);
pLabel->setText((String)getProcessor()->getParameterText(paramID), juce::NotificationType::dontSendNotification);
pLabel->setColour (Label::textColourId, label_colour);
}
@@ -5370,32 +5370,32 @@ void JaySynthAudioProcessorEditor::paramUpdate(int paramID, bool doHostUpdate)
switch(paramID)
{
case SYNTH_PARAM_OSC_0_FM_SRC_1:
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_0_FM_SRC_OP)), true);
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_0_FM_SRC_OP)), juce::NotificationType::sendNotification);
break;
case SYNTH_PARAM_OSC_1_FM_SRC_1:
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_1_FM_SRC_OP)), true);
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_1_FM_SRC_OP)), juce::NotificationType::sendNotification);
break;
case SYNTH_PARAM_OSC_0_AM_SRC_1:
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_0_AM_SRC_OP)), true);
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_0_AM_SRC_OP)), juce::NotificationType::sendNotification);
break;
case SYNTH_PARAM_OSC_1_AM_SRC_1:
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_1_AM_SRC_OP)), true);
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_1_AM_SRC_OP)), juce::NotificationType::sendNotification);
break;
case SYNTH_PARAM_OSC_0_PWM_SRC_1:
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_0_PWM_SRC_OP)), true);
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_0_PWM_SRC_OP)), juce::NotificationType::sendNotification);
break;
case SYNTH_PARAM_OSC_1_PWM_SRC_1:
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_1_PWM_SRC_OP)), true);
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_OSC_1_PWM_SRC_OP)), juce::NotificationType::sendNotification);
break;
case SYNTH_PARAM_VCF_F_SRC_1:
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_VCF_F_SRC_OP)), true);
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_VCF_F_SRC_OP)), juce::NotificationType::sendNotification);
break;
case SYNTH_PARAM_VCF_Q_SRC_1:
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_VCF_Q_SRC_OP)), true);
pComboBox->setSelectedId(ModSrc1_CB_getIndex((int)getProcessor()->getParam(paramID), (int)getProcessor()->getParam(SYNTH_PARAM_VCF_Q_SRC_OP)), juce::NotificationType::sendNotification);
break;
default:
pComboBox->setSelectedId(1 + (int)getProcessor()->getParam(paramID), true);
pComboBox->setSelectedId(1 + (int)getProcessor()->getParam(paramID), juce::NotificationType::sendNotification);
break;
}
pComboBox->setColour (ComboBox:: backgroundColourId, combobox_colour);
@@ -5404,7 +5404,7 @@ void JaySynthAudioProcessorEditor::paramUpdate(int paramID, bool doHostUpdate)
pButton = (Button*)findChildWithID(String("BUTTON ") + String(paramID));
if (pButton)
{
pButton->setToggleState(getProcessor()->getParameter(paramID) > 0.5, false);
pButton->setToggleState(getProcessor()->getParameter(paramID) > 0.5, juce::NotificationType::dontSendNotification);
}
}