From b5dbbc066b25b6ed8c5b9cb0a9193b1b3b58d87a Mon Sep 17 00:00:00 2001 From: bsutherland Date: Mon, 10 Oct 2016 22:56:52 +0900 Subject: [PATCH] Apply and tweak UI changes from gdreyband. --- JuceOPLVSTi.jucer | 6 +- Source/OPLLookAndFeel.cpp | 34 + Source/OPLLookAndFeel.h | 43 + Source/PluginGui.cpp | 1780 +++++++++++++++++++++++++++++++------ Source/PluginGui.h | 91 +- img/Two-OP AM.png | Bin 0 -> 1872 bytes img/Two-OP FM.png | Bin 0 -> 1203 bytes img/algo_switch_off.png | Bin 0 -> 162 bytes img/algo_switch_on.png | Bin 0 -> 168 bytes img/algo_switch_on2.png | Bin 0 -> 169 bytes img/algo_switch_on3.png | Bin 0 -> 151 bytes img/line_border_horiz.png | Bin 0 -> 108 bytes img/line_border_vert.png | Bin 0 -> 107 bytes img/toggle_off_sq.png | Bin 0 -> 118 bytes img/toggle_on_sq.png | Bin 0 -> 134 bytes 15 files changed, 1683 insertions(+), 271 deletions(-) create mode 100644 Source/OPLLookAndFeel.cpp create mode 100644 Source/OPLLookAndFeel.h create mode 100644 img/Two-OP AM.png create mode 100644 img/Two-OP FM.png create mode 100644 img/algo_switch_off.png create mode 100644 img/algo_switch_on.png create mode 100644 img/algo_switch_on2.png create mode 100644 img/algo_switch_on3.png create mode 100644 img/line_border_horiz.png create mode 100644 img/line_border_vert.png create mode 100644 img/toggle_off_sq.png create mode 100644 img/toggle_on_sq.png diff --git a/JuceOPLVSTi.jucer b/JuceOPLVSTi.jucer index 6081210..eec510f 100644 --- a/JuceOPLVSTi.jucer +++ b/JuceOPLVSTi.jucer @@ -1,6 +1,6 @@ - + + ((float)toggleOff.getWidth(), (float)toggleOn.getHeight()); +} + +void OPLLookAndFeel::drawTickBox(Graphics &g, + Component &c, + float x, + float y, + float w, + float h, + bool ticked, + bool isEnabled, + bool isMouseOverButton, + bool isButtonDown +) { + g.drawImage(ticked ? toggleOn : toggleOff, toggleRect.withY(y + 2)); +} + diff --git a/Source/OPLLookAndFeel.h b/Source/OPLLookAndFeel.h new file mode 100644 index 0000000..f0c54ea --- /dev/null +++ b/Source/OPLLookAndFeel.h @@ -0,0 +1,43 @@ +/* + ============================================================================== + + OPLLookAndFeel.h + Created: 10 Oct 2016 9:38:20pm + Author: bruce + + ============================================================================== +*/ + +#ifndef OPLLOOKANDFEEL_H_INCLUDED +#define OPLLOOKANDFEEL_H_INCLUDED + +#include "JuceHeader.h" + +class OPLLookAndFeel : public LookAndFeel_V3 +{ +private: + Image toggleOff; + Image toggleOn; + Rectangle toggleRect; + +public: + OPLLookAndFeel(); + + void drawTickBox(Graphics &g, + Component &c, + float x, + float y, + float w, + float h, + bool ticked, + bool isEnabled, + bool isMouseOverButton, + bool isButtonDown + ); + +}; + + + + +#endif // OPLLOOKANDFEEL_H_INCLUDED diff --git a/Source/PluginGui.cpp b/Source/PluginGui.cpp index 7fb399f..168f54a 100644 --- a/Source/PluginGui.cpp +++ b/Source/PluginGui.cpp @@ -7,7 +7,7 @@ the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded and re-saved. - Created with Projucer version: 4.2.3 + Created with Projucer version: 4.2.4 ------------------------------------------------------------------------------ @@ -18,6 +18,7 @@ */ //[Headers] You can add your own extra header files here... +#include "OPLLookAndFeel.h" //[/Headers] #include "PluginGui.h" @@ -169,7 +170,7 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) frequencyComboBox->addListener (this); addAndMakeVisible (frequencyLabel = new Label ("frequency label", - TRANS("Frequency"))); + TRANS("Base Frequency"))); frequencyLabel->setTooltip (TRANS("Multiplier applied to base note frequency")); frequencyLabel->setFont (Font (15.00f, Font::plain)); frequencyLabel->setJustificationType (Justification::centredLeft); @@ -182,7 +183,7 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) aSlider->setTooltip (TRANS("Envelope attack rate")); aSlider->setRange (0, 15, 1); aSlider->setSliderStyle (Slider::LinearVertical); - aSlider->setTextBoxStyle (Slider::TextBoxBelow, false, 40, 20); + aSlider->setTextBoxStyle (Slider::TextBoxBelow, false, 30, 20); aSlider->setColour (Slider::thumbColourId, Colour (0xff00af00)); aSlider->setColour (Slider::trackColourId, Colour (0x7f007f00)); aSlider->setColour (Slider::textBoxTextColourId, Colour (0xff007f00)); @@ -204,7 +205,7 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) dSlider->setTooltip (TRANS("Envelope decay rate")); dSlider->setRange (0, 15, 1); dSlider->setSliderStyle (Slider::LinearVertical); - dSlider->setTextBoxStyle (Slider::TextBoxBelow, false, 40, 20); + dSlider->setTextBoxStyle (Slider::TextBoxBelow, false, 30, 20); dSlider->setColour (Slider::thumbColourId, Colour (0xff00af00)); dSlider->setColour (Slider::trackColourId, Colour (0x7f007f00)); dSlider->setColour (Slider::textBoxTextColourId, Colour (0xff007f00)); @@ -226,7 +227,7 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) sSlider->setTooltip (TRANS("Envelope sustain level")); sSlider->setRange (0, 15, 1); sSlider->setSliderStyle (Slider::LinearVertical); - sSlider->setTextBoxStyle (Slider::TextBoxBelow, false, 40, 20); + sSlider->setTextBoxStyle (Slider::TextBoxBelow, false, 30, 20); sSlider->setColour (Slider::thumbColourId, Colour (0xff00af00)); sSlider->setColour (Slider::trackColourId, Colour (0x7f007f00)); sSlider->setColour (Slider::textBoxTextColourId, Colour (0xff007f00)); @@ -248,7 +249,7 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) rSlider->setTooltip (TRANS("Envelope release rate")); rSlider->setRange (0, 15, 1); rSlider->setSliderStyle (Slider::LinearVertical); - rSlider->setTextBoxStyle (Slider::TextBoxBelow, false, 40, 20); + rSlider->setTextBoxStyle (Slider::TextBoxBelow, false, 30, 20); rSlider->setColour (Slider::thumbColourId, Colour (0xff00af00)); rSlider->setColour (Slider::trackColourId, Colour (0x7f007f00)); rSlider->setColour (Slider::textBoxTextColourId, Colour (0xff007f00)); @@ -268,8 +269,8 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) addAndMakeVisible (attenuationSlider = new Slider ("attenuation slider")); attenuationSlider->setRange (-47.25, 0, 0.75); - attenuationSlider->setSliderStyle (Slider::LinearVertical); - attenuationSlider->setTextBoxStyle (Slider::TextBoxBelow, false, 64, 20); + attenuationSlider->setSliderStyle (Slider::LinearHorizontal); + attenuationSlider->setTextBoxStyle (Slider::TextBoxRight, false, 64, 20); attenuationSlider->setColour (Slider::thumbColourId, Colour (0xff00af00)); attenuationSlider->setColour (Slider::trackColourId, Colour (0x7f007f00)); attenuationSlider->setColour (Slider::textBoxTextColourId, Colour (0xff007f00)); @@ -343,11 +344,13 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) waveLabel->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); addAndMakeVisible (tremoloButton = new ToggleButton ("tremolo button")); + tremoloButton->setTooltip (TRANS("Modulate amplitude at 3.7 Hz")); tremoloButton->setButtonText (TRANS("Tremolo")); tremoloButton->addListener (this); tremoloButton->setColour (ToggleButton::textColourId, Colour (0xff007f00)); addAndMakeVisible (vibratoButton = new ToggleButton ("vibrato button")); + vibratoButton->setTooltip (TRANS("Modulate frequency at 6.1 Hz")); vibratoButton->setButtonText (TRANS("Vibrato")); vibratoButton->addListener (this); vibratoButton->setColour (ToggleButton::textColourId, Colour (0xff007f00)); @@ -360,20 +363,10 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) addAndMakeVisible (keyscaleEnvButton = new ToggleButton ("keyscale env button")); keyscaleEnvButton->setTooltip (TRANS("Speed up envelope rate with note frequency")); - keyscaleEnvButton->setButtonText (TRANS("Keyscale Envelope Rate")); + keyscaleEnvButton->setButtonText (TRANS("Keyscale Env. Rate")); keyscaleEnvButton->addListener (this); keyscaleEnvButton->setColour (ToggleButton::textColourId, Colour (0xff007f00)); - addAndMakeVisible (frequencyLabel2 = new Label ("frequency label", - TRANS("Keyscale Attenuation"))); - frequencyLabel2->setTooltip (TRANS("Attenuate amplitude with note frequency")); - frequencyLabel2->setFont (Font (15.00f, Font::plain)); - frequencyLabel2->setJustificationType (Justification::centred); - frequencyLabel2->setEditable (false, false, false); - frequencyLabel2->setColour (Label::textColourId, Colour (0xff007f00)); - frequencyLabel2->setColour (TextEditor::textColourId, Colours::black); - frequencyLabel2->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); - addAndMakeVisible (dbLabel2 = new Label ("db label", TRANS("dB/8ve\n"))); dbLabel2->setFont (Font (15.00f, Font::plain)); @@ -398,7 +391,7 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) frequencyComboBox2->addListener (this); addAndMakeVisible (frequencyLabel3 = new Label ("frequency label", - TRANS("Frequency"))); + TRANS("Base Frequency"))); frequencyLabel3->setTooltip (TRANS("Multiplier applied to base note frequency")); frequencyLabel3->setFont (Font (15.00f, Font::plain)); frequencyLabel3->setJustificationType (Justification::centredLeft); @@ -493,8 +486,8 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) addAndMakeVisible (attenuationSlider2 = new Slider ("attenuation slider")); attenuationSlider2->setRange (-47.25, 0, 0.75); - attenuationSlider2->setSliderStyle (Slider::LinearVertical); - attenuationSlider2->setTextBoxStyle (Slider::TextBoxBelow, false, 64, 20); + attenuationSlider2->setSliderStyle (Slider::LinearHorizontal); + attenuationSlider2->setTextBoxStyle (Slider::TextBoxRight, false, 64, 20); attenuationSlider2->setColour (Slider::thumbColourId, Colour (0xff00af00)); attenuationSlider2->setColour (Slider::trackColourId, Colour (0x7f007f00)); attenuationSlider2->setColour (Slider::textBoxTextColourId, Colour (0xff007f00)); @@ -568,11 +561,13 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) waveLabel2->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); addAndMakeVisible (tremoloButton2 = new ToggleButton ("tremolo button")); + tremoloButton2->setTooltip (TRANS("Modulate amplitude at 3.7 Hz")); tremoloButton2->setButtonText (TRANS("Tremolo")); tremoloButton2->addListener (this); tremoloButton2->setColour (ToggleButton::textColourId, Colour (0xff007f00)); addAndMakeVisible (vibratoButton2 = new ToggleButton ("vibrato button")); + vibratoButton2->setTooltip (TRANS("Modulate frequency at 6.1 Hz")); vibratoButton2->setButtonText (TRANS("Vibrato")); vibratoButton2->addListener (this); vibratoButton2->setColour (ToggleButton::textColourId, Colour (0xff007f00)); @@ -585,13 +580,13 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) addAndMakeVisible (keyscaleEnvButton2 = new ToggleButton ("keyscale env button")); keyscaleEnvButton2->setTooltip (TRANS("Speed up envelope rate with note frequency")); - keyscaleEnvButton2->setButtonText (TRANS("Keyscale Envelope Rate")); + keyscaleEnvButton2->setButtonText (TRANS("Keyscale Env. Rate")); keyscaleEnvButton2->addListener (this); keyscaleEnvButton2->setColour (ToggleButton::textColourId, Colour (0xff007f00)); addAndMakeVisible (frequencyLabel4 = new Label ("frequency label", - TRANS("Keyscale Attenuation"))); - frequencyLabel4->setTooltip (TRANS("Attenuate amplitude with note frequency")); + TRANS("Keyscale Attenuation (db/8ve)"))); + frequencyLabel4->setTooltip (TRANS("Attenuate amplitude with note frequency in db/8ve")); frequencyLabel4->setFont (Font (15.00f, Font::plain)); frequencyLabel4->setJustificationType (Justification::centred); frequencyLabel4->setEditable (false, false, false); @@ -608,7 +603,7 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) addAndMakeVisible (tremoloSlider = new Slider ("tremolo slider")); tremoloSlider->setRange (1, 4.8, 3.8); tremoloSlider->setSliderStyle (Slider::LinearHorizontal); - tremoloSlider->setTextBoxStyle (Slider::TextBoxLeft, false, 44, 20); + tremoloSlider->setTextBoxStyle (Slider::TextBoxRight, false, 32, 20); tremoloSlider->setColour (Slider::thumbColourId, Colour (0xff00af00)); tremoloSlider->setColour (Slider::trackColourId, Colour (0x7f007f00)); tremoloSlider->setColour (Slider::textBoxTextColourId, Colour (0xff007f00)); @@ -639,7 +634,7 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) addAndMakeVisible (vibratoSlider = new Slider ("vibrato slider")); vibratoSlider->setRange (7, 14, 7); vibratoSlider->setSliderStyle (Slider::LinearHorizontal); - vibratoSlider->setTextBoxStyle (Slider::TextBoxLeft, false, 44, 20); + vibratoSlider->setTextBoxStyle (Slider::TextBoxRight, false, 32, 20); vibratoSlider->setColour (Slider::thumbColourId, Colour (0xff00af00)); vibratoSlider->setColour (Slider::trackColourId, Colour (0x7f007f00)); vibratoSlider->setColour (Slider::textBoxTextColourId, Colour (0xff007f00)); @@ -670,8 +665,8 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) addAndMakeVisible (feedbackSlider = new Slider ("feedback slider")); feedbackSlider->setRange (0, 7, 1); - feedbackSlider->setSliderStyle (Slider::LinearHorizontal); - feedbackSlider->setTextBoxStyle (Slider::TextBoxRight, false, 44, 20); + feedbackSlider->setSliderStyle (Slider::LinearVertical); + feedbackSlider->setTextBoxStyle (Slider::TextBoxBelow, false, 30, 20); feedbackSlider->setColour (Slider::thumbColourId, Colour (0xff00af00)); feedbackSlider->setColour (Slider::trackColourId, Colour (0x7f007f00)); feedbackSlider->setColour (Slider::textBoxTextColourId, Colour (0xff007f00)); @@ -680,10 +675,10 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) feedbackSlider->addListener (this); addAndMakeVisible (frequencyLabel7 = new Label ("frequency label", - TRANS("Feedback"))); + TRANS("F"))); frequencyLabel7->setTooltip (TRANS("Extent to which modulator output is fed back into itself")); frequencyLabel7->setFont (Font (15.00f, Font::plain)); - frequencyLabel7->setJustificationType (Justification::centredLeft); + frequencyLabel7->setJustificationType (Justification::centred); frequencyLabel7->setEditable (false, false, false); frequencyLabel7->setColour (Label::textColourId, Colour (0xff007f00)); frequencyLabel7->setColour (TextEditor::textColourId, Colours::black); @@ -699,16 +694,6 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) velocityComboBox->addItem (TRANS("Heavy"), 3); velocityComboBox->addListener (this); - addAndMakeVisible (attenuationLabel3 = new Label ("attenuation label", - TRANS("Velocity"))); - attenuationLabel3->setTooltip (TRANS("Set or disable velocity senstivity")); - attenuationLabel3->setFont (Font (15.00f, Font::plain)); - attenuationLabel3->setJustificationType (Justification::centredLeft); - attenuationLabel3->setEditable (false, false, false); - attenuationLabel3->setColour (Label::textColourId, Colour (0xff007f00)); - attenuationLabel3->setColour (TextEditor::textColourId, Colours::black); - attenuationLabel3->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); - addAndMakeVisible (velocityComboBox2 = new ComboBox ("velocity combo box")); velocityComboBox2->setEditableText (false); velocityComboBox2->setJustificationType (Justification::centredLeft); @@ -720,10 +705,10 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) velocityComboBox2->addListener (this); addAndMakeVisible (attenuationLabel4 = new Label ("attenuation label", - TRANS("Velocity"))); + TRANS("Velocity Sensitivity"))); attenuationLabel4->setTooltip (TRANS("Set or disable velocity senstivity")); attenuationLabel4->setFont (Font (15.00f, Font::plain)); - attenuationLabel4->setJustificationType (Justification::centredLeft); + attenuationLabel4->setJustificationType (Justification::centred); attenuationLabel4->setEditable (false, false, false); attenuationLabel4->setColour (Label::textColourId, Colour (0xff007f00)); attenuationLabel4->setColour (TextEditor::textColourId, Colours::black); @@ -814,7 +799,7 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) TRANS("Algorithm"))); frequencyLabel8->setTooltip (TRANS("In additive mode, carrier and modulator output are simply summed rather than modulated")); frequencyLabel8->setFont (Font (15.00f, Font::plain)); - frequencyLabel8->setJustificationType (Justification::centredLeft); + frequencyLabel8->setJustificationType (Justification::centred); frequencyLabel8->setEditable (false, false, false); frequencyLabel8->setColour (Label::textColourId, Colour (0xff007f00)); frequencyLabel8->setColour (TextEditor::textColourId, Colours::black); @@ -915,10 +900,10 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) percussionComboBox->addListener (this); addAndMakeVisible (percussionLabel = new Label ("percussion label", - TRANS("Percussion mode"))); + TRANS("Percussion Mode"))); percussionLabel->setTooltip (TRANS("Enable percussion instruments instead of oscillators")); percussionLabel->setFont (Font (15.00f, Font::plain)); - percussionLabel->setJustificationType (Justification::centredLeft); + percussionLabel->setJustificationType (Justification::centred); percussionLabel->setEditable (false, false, false); percussionLabel->setColour (Label::textColourId, Colour (0xff007f00)); percussionLabel->setColour (TextEditor::textColourId, Colours::black); @@ -926,12 +911,14 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) addAndMakeVisible (exportButton = new TextButton ("export button")); exportButton->setButtonText (TRANS("Export .SBI instrument")); + exportButton->setConnectedEdges (Button::ConnectedOnLeft | Button::ConnectedOnRight); exportButton->addListener (this); exportButton->setColour (TextButton::buttonColourId, Colour (0xff007f00)); exportButton->setColour (TextButton::buttonOnColourId, Colours::lime); addAndMakeVisible (loadButton = new TextButton ("load button")); loadButton->setButtonText (TRANS("Load .SBI instrument")); + loadButton->setConnectedEdges (Button::ConnectedOnLeft | Button::ConnectedOnRight); loadButton->addListener (this); loadButton->setColour (TextButton::buttonColourId, Colour (0xff007f00)); loadButton->setColour (TextButton::buttonOnColourId, Colours::lime); @@ -945,8 +932,551 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) versionLabel->setColour (TextEditor::textColourId, Colours::black); versionLabel->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + addAndMakeVisible (ToggleButtonOffExample = new ImageButton ("Toggle Button Off Example")); + ToggleButtonOffExample->setButtonText (TRANS("new button")); + ToggleButtonOffExample->addListener (this); + + ToggleButtonOffExample->setImages (false, true, true, + ImageCache::getFromMemory (toggle_off_sq_png, toggle_off_sq_pngSize), 1.000f, Colour (0x00000000), + Image(), 1.000f, Colour (0x00000000), + Image(), 1.000f, Colour (0x00000000)); + addAndMakeVisible (ToggleButtonOnExample = new ImageButton ("Toggle Button On Example")); + ToggleButtonOnExample->setButtonText (TRANS("new button")); + ToggleButtonOnExample->addListener (this); + + ToggleButtonOnExample->setImages (false, true, true, + ImageCache::getFromMemory (toggle_on_sq_png, toggle_on_sq_pngSize), 1.000f, Colour (0x00000000), + Image(), 1.000f, Colour (0x00000000), + Image(), 1.000f, Colour (0x00000000)); + addAndMakeVisible (label = new Label ("new label", + TRANS("Toggle buttons"))); + label->setFont (Font (15.00f, Font::plain)); + label->setJustificationType (Justification::centred); + label->setEditable (false, false, false); + label->setColour (Label::textColourId, Colours::green); + label->setColour (TextEditor::textColourId, Colours::black); + label->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (label2 = new Label ("new label", + TRANS("Line borders"))); + label2->setFont (Font (15.00f, Font::plain)); + label2->setJustificationType (Justification::centred); + label2->setEditable (false, false, false); + label2->setColour (Label::textColourId, Colours::green); + label2->setColour (TextEditor::textColourId, Colours::black); + label2->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (LineBorderButton1C = new ImageButton ("Line Border 1C")); + LineBorderButton1C->setButtonText (TRANS("new button")); + + LineBorderButton1C->setImages (false, true, false, + ImageCache::getFromMemory (line_border_horiz_png, line_border_horiz_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_horiz_png, line_border_horiz_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_horiz_png, line_border_horiz_pngSize), 0.600f, Colour (0x00000000)); + addAndMakeVisible (LineBorderButton1A = new ImageButton ("Line Border 1A")); + LineBorderButton1A->setButtonText (TRANS("new button")); + + LineBorderButton1A->setImages (false, true, false, + ImageCache::getFromMemory (line_border_horiz_png, line_border_horiz_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_horiz_png, line_border_horiz_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_horiz_png, line_border_horiz_pngSize), 0.600f, Colour (0x00000000)); + addAndMakeVisible (LineBorderButton1B = new ImageButton ("Line Border 1B")); + LineBorderButton1B->setButtonText (TRANS("new button")); + + LineBorderButton1B->setImages (false, true, false, + ImageCache::getFromMemory (line_border_vert_png, line_border_vert_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_vert_png, line_border_vert_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_vert_png, line_border_vert_pngSize), 0.600f, Colour (0x00000000)); + addAndMakeVisible (label3 = new Label ("new label", + TRANS("Temporarily removed labels to avoid making wider boxes."))); + label3->setFont (Font (15.00f, Font::plain)); + label3->setJustificationType (Justification::centred); + label3->setEditable (false, false, false); + label3->setColour (Label::textColourId, Colours::green); + label3->setColour (TextEditor::textColourId, Colours::black); + label3->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (LineBorderButton3A = new ImageButton ("Line Border 3A")); + LineBorderButton3A->setButtonText (TRANS("new button")); + + LineBorderButton3A->setImages (false, true, false, + ImageCache::getFromMemory (line_border_vert_png, line_border_vert_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_vert_png, line_border_vert_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_vert_png, line_border_vert_pngSize), 0.600f, Colour (0x00000000)); + addAndMakeVisible (LineBorderButton3B = new ImageButton ("Line Border 3B")); + LineBorderButton3B->setButtonText (TRANS("new button")); + + LineBorderButton3B->setImages (false, true, false, + ImageCache::getFromMemory (line_border_vert_png, line_border_vert_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_vert_png, line_border_vert_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_vert_png, line_border_vert_pngSize), 0.600f, Colour (0x00000000)); + addAndMakeVisible (LineBorderButton3B2 = new ImageButton ("Line Border 3B")); + LineBorderButton3B2->setButtonText (TRANS("new button")); + + LineBorderButton3B2->setImages (false, true, false, + ImageCache::getFromMemory (line_border_vert_png, line_border_vert_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_vert_png, line_border_vert_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_vert_png, line_border_vert_pngSize), 0.600f, Colour (0x00000000)); + addAndMakeVisible (LineBorderButton1C2 = new ImageButton ("Line Border 1C")); + LineBorderButton1C2->setButtonText (TRANS("new button")); + + LineBorderButton1C2->setImages (false, true, false, + ImageCache::getFromMemory (line_border_horiz_png, line_border_horiz_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_horiz_png, line_border_horiz_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_horiz_png, line_border_horiz_pngSize), 0.600f, Colour (0x00000000)); + addAndMakeVisible (LineBorderButton1A2 = new ImageButton ("Line Border 1A")); + LineBorderButton1A2->setButtonText (TRANS("new button")); + + LineBorderButton1A2->setImages (false, true, false, + ImageCache::getFromMemory (line_border_horiz_png, line_border_horiz_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_horiz_png, line_border_horiz_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_horiz_png, line_border_horiz_pngSize), 0.600f, Colour (0x00000000)); + addAndMakeVisible (LineBorderButton1B2 = new ImageButton ("Line Border 1B")); + LineBorderButton1B2->setButtonText (TRANS("new button")); + + LineBorderButton1B2->setImages (false, true, false, + ImageCache::getFromMemory (line_border_vert_png, line_border_vert_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_vert_png, line_border_vert_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_vert_png, line_border_vert_pngSize), 0.600f, Colour (0x00000000)); + addAndMakeVisible (LineBorderButton1C3 = new ImageButton ("Line Border 1C")); + LineBorderButton1C3->setButtonText (TRANS("new button")); + + LineBorderButton1C3->setImages (false, true, false, + ImageCache::getFromMemory (line_border_horiz_png, line_border_horiz_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_horiz_png, line_border_horiz_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_horiz_png, line_border_horiz_pngSize), 0.600f, Colour (0x00000000)); + addAndMakeVisible (LineBorderButton1B3 = new ImageButton ("Line Border 1B")); + LineBorderButton1B3->setButtonText (TRANS("new button")); + + LineBorderButton1B3->setImages (false, true, false, + ImageCache::getFromMemory (line_border_vert_png, line_border_vert_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_vert_png, line_border_vert_pngSize), 0.600f, Colour (0x00000000), + ImageCache::getFromMemory (line_border_vert_png, line_border_vert_pngSize), 0.600f, Colour (0x00000000)); + addAndMakeVisible (algoSwitchButtonOffEx1 = new ImageButton ("Algorithm Switch Off AM")); + algoSwitchButtonOffEx1->setButtonText (TRANS("new button")); + algoSwitchButtonOffEx1->addListener (this); + + algoSwitchButtonOffEx1->setImages (false, true, true, + ImageCache::getFromMemory (algo_switch_off_png, algo_switch_off_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_off_png, algo_switch_off_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_off_png, algo_switch_off_pngSize), 1.000f, Colour (0x00000000)); + addAndMakeVisible (algoSwitchButtonOffEx2 = new ImageButton ("Algorithm Switch Off FM")); + algoSwitchButtonOffEx2->setButtonText (TRANS("new button")); + algoSwitchButtonOffEx2->addListener (this); + + algoSwitchButtonOffEx2->setImages (false, true, true, + ImageCache::getFromMemory (algo_switch_off_png, algo_switch_off_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_off_png, algo_switch_off_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_off_png, algo_switch_off_pngSize), 1.000f, Colour (0x00000000)); + addAndMakeVisible (algoSwitchButtonOnEx1 = new ImageButton ("Algorithm Switch On AM")); + algoSwitchButtonOnEx1->setButtonText (TRANS("new button")); + algoSwitchButtonOnEx1->addListener (this); + + algoSwitchButtonOnEx1->setImages (false, true, true, + ImageCache::getFromMemory (algo_switch_on_png, algo_switch_on_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_on_png, algo_switch_on_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_on_png, algo_switch_on_pngSize), 1.000f, Colour (0x00000000)); + addAndMakeVisible (algoSwitchButtonOnEx2 = new ImageButton ("Algorithm Switch On FM")); + algoSwitchButtonOnEx2->setButtonText (TRANS("new button")); + algoSwitchButtonOnEx2->addListener (this); + + algoSwitchButtonOnEx2->setImages (false, true, true, + ImageCache::getFromMemory (algo_switch_on_png, algo_switch_on_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_on_png, algo_switch_on_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_on_png, algo_switch_on_pngSize), 1.000f, Colour (0x00000000)); + addAndMakeVisible (label4 = new Label ("new label", + TRANS("AM"))); + label4->setFont (Font (15.00f, Font::plain)); + label4->setJustificationType (Justification::centredLeft); + label4->setEditable (false, false, false); + label4->setColour (Label::textColourId, Colours::green); + label4->setColour (TextEditor::textColourId, Colours::black); + label4->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (label5 = new Label ("new label", + TRANS("FM"))); + label5->setFont (Font (15.00f, Font::plain)); + label5->setJustificationType (Justification::centredLeft); + label5->setEditable (false, false, false); + label5->setColour (Label::textColourId, Colours::green); + label5->setColour (TextEditor::textColourId, Colours::black); + label5->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (label6 = new Label ("new label", + TRANS("AM"))); + label6->setFont (Font (15.00f, Font::plain)); + label6->setJustificationType (Justification::centredLeft); + label6->setEditable (false, false, false); + label6->setColour (Label::textColourId, Colours::black); + label6->setColour (TextEditor::textColourId, Colours::black); + label6->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (label7 = new Label ("new label", + TRANS("FM"))); + label7->setFont (Font (15.00f, Font::plain)); + label7->setJustificationType (Justification::centredLeft); + label7->setEditable (false, false, false); + label7->setColour (Label::textColourId, Colours::black); + label7->setColour (TextEditor::textColourId, Colours::black); + label7->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (label8 = new Label ("new label", + TRANS("Example AM/FM switches"))); + label8->setFont (Font (15.00f, Font::plain)); + label8->setJustificationType (Justification::centred); + label8->setEditable (false, false, false); + label8->setColour (Label::textColourId, Colours::green); + label8->setColour (TextEditor::textColourId, Colours::black); + label8->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (algoSwitchButtonOn2Ex1 = new ImageButton ("Algorithm Switch On2 AM")); + algoSwitchButtonOn2Ex1->setButtonText (TRANS("new button")); + algoSwitchButtonOn2Ex1->addListener (this); + + algoSwitchButtonOn2Ex1->setImages (false, true, true, + ImageCache::getFromMemory (algo_switch_on2_png, algo_switch_on2_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_on2_png, algo_switch_on2_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_on2_png, algo_switch_on2_pngSize), 1.000f, Colour (0x00000000)); + addAndMakeVisible (algoSwitchButtonOn2Ex2 = new ImageButton ("Algorithm Switch On2 FM")); + algoSwitchButtonOn2Ex2->setButtonText (TRANS("new button")); + algoSwitchButtonOn2Ex2->addListener (this); + + algoSwitchButtonOn2Ex2->setImages (false, true, true, + ImageCache::getFromMemory (algo_switch_on2_png, algo_switch_on2_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_on2_png, algo_switch_on2_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_on2_png, algo_switch_on2_pngSize), 1.000f, Colour (0x00000000)); + addAndMakeVisible (label9 = new Label ("new label", + TRANS("AM"))); + label9->setFont (Font (15.00f, Font::plain)); + label9->setJustificationType (Justification::centredLeft); + label9->setEditable (false, false, false); + label9->setColour (Label::textColourId, Colours::black); + label9->setColour (TextEditor::textColourId, Colours::black); + label9->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (label10 = new Label ("new label", + TRANS("FM"))); + label10->setFont (Font (15.00f, Font::plain)); + label10->setJustificationType (Justification::centredLeft); + label10->setEditable (false, false, false); + label10->setColour (Label::textColourId, Colours::black); + label10->setColour (TextEditor::textColourId, Colours::black); + label10->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (algoSwitchButtonOn3Ex1 = new ImageButton ("Algorithm Switch On3 AM")); + algoSwitchButtonOn3Ex1->setButtonText (TRANS("new button")); + algoSwitchButtonOn3Ex1->addListener (this); + + algoSwitchButtonOn3Ex1->setImages (false, true, true, + ImageCache::getFromMemory (algo_switch_on3_png, algo_switch_on3_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_on3_png, algo_switch_on3_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_on3_png, algo_switch_on3_pngSize), 1.000f, Colour (0x00000000)); + addAndMakeVisible (algoSwitchButtonOn3Ex2 = new ImageButton ("Algorithm Switch On3 FM")); + algoSwitchButtonOn3Ex2->setButtonText (TRANS("new button")); + algoSwitchButtonOn3Ex2->addListener (this); + + algoSwitchButtonOn3Ex2->setImages (false, true, true, + ImageCache::getFromMemory (algo_switch_on3_png, algo_switch_on3_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_on3_png, algo_switch_on3_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_on3_png, algo_switch_on3_pngSize), 1.000f, Colour (0x00000000)); + addAndMakeVisible (label11 = new Label ("new label", + TRANS("AM"))); + label11->setFont (Font (15.00f, Font::plain)); + label11->setJustificationType (Justification::centredLeft); + label11->setEditable (false, false, false); + label11->setColour (Label::textColourId, Colours::black); + label11->setColour (TextEditor::textColourId, Colours::black); + label11->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (label12 = new Label ("new label", + TRANS("FM"))); + label12->setFont (Font (15.00f, Font::plain)); + label12->setJustificationType (Justification::centredLeft); + label12->setEditable (false, false, false); + label12->setColour (Label::textColourId, Colours::black); + label12->setColour (TextEditor::textColourId, Colours::black); + label12->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (TwoOpAMButton = new ImageButton ("Two OP AM Button")); + TwoOpAMButton->setButtonText (TRANS("new button")); + TwoOpAMButton->addListener (this); + + TwoOpAMButton->setImages (false, true, false, + ImageCache::getFromMemory (twoopAm_png, twoopAm_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (twoopAm_png, twoopAm_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (twoopAm_png, twoopAm_pngSize), 1.000f, Colour (0x00000000)); + addAndMakeVisible (TwoOpFMButton = new ImageButton ("Two OP FM Button")); + TwoOpFMButton->setButtonText (TRANS("new button")); + TwoOpFMButton->addListener (this); + + TwoOpFMButton->setImages (false, true, true, + ImageCache::getFromMemory (twoopFm_png, twoopFm_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (twoopFm_png, twoopFm_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (twoopFm_png, twoopFm_pngSize), 1.000f, Colour (0x00000000)); + addAndMakeVisible (label13 = new Label ("new label", + TRANS("M"))); + label13->setFont (Font (15.00f, Font::plain)); + label13->setJustificationType (Justification::centred); + label13->setEditable (false, false, false); + label13->setColour (TextEditor::textColourId, Colours::black); + label13->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (label14 = new Label ("new label", + TRANS("C"))); + label14->setFont (Font (15.00f, Font::plain)); + label14->setJustificationType (Justification::centred); + label14->setEditable (false, false, false); + label14->setColour (TextEditor::textColourId, Colours::black); + label14->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (label15 = new Label ("new label", + TRANS("M"))); + label15->setFont (Font (15.00f, Font::plain)); + label15->setJustificationType (Justification::centred); + label15->setEditable (false, false, false); + label15->setColour (TextEditor::textColourId, Colours::black); + label15->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (label16 = new Label ("new label", + TRANS("C"))); + label16->setFont (Font (15.00f, Font::plain)); + label16->setJustificationType (Justification::centred); + label16->setEditable (false, false, false); + label16->setColour (TextEditor::textColourId, Colours::black); + label16->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (label17 = new Label ("new label", + TRANS("Example Algorithms"))); + label17->setFont (Font (15.00f, Font::plain)); + label17->setJustificationType (Justification::centred); + label17->setEditable (false, false, false); + label17->setColour (Label::textColourId, Colours::green); + label17->setColour (TextEditor::textColourId, Colours::black); + label17->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (groupComponent6 = new GroupComponent ("new group", + String())); + groupComponent6->setColour (GroupComponent::outlineColourId, Colours::green); + + addAndMakeVisible (algoSwitchButtonOnEx3 = new ImageButton ("Algorithm Switch On AM")); + algoSwitchButtonOnEx3->setButtonText (TRANS("new button")); + algoSwitchButtonOnEx3->addListener (this); + + algoSwitchButtonOnEx3->setImages (false, true, true, + ImageCache::getFromMemory (algo_switch_on_png, algo_switch_on_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_on_png, algo_switch_on_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_on_png, algo_switch_on_pngSize), 1.000f, Colour (0x00000000)); + addAndMakeVisible (label18 = new Label ("new label", + TRANS("AM"))); + label18->setFont (Font (15.00f, Font::plain)); + label18->setJustificationType (Justification::centredLeft); + label18->setEditable (false, false, false); + label18->setColour (Label::textColourId, Colours::black); + label18->setColour (TextEditor::textColourId, Colours::black); + label18->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (algoSwitchButtonOffEx3 = new ImageButton ("Algorithm Switch Off FM")); + algoSwitchButtonOffEx3->setButtonText (TRANS("new button")); + algoSwitchButtonOffEx3->addListener (this); + + algoSwitchButtonOffEx3->setImages (false, true, true, + ImageCache::getFromMemory (algo_switch_off_png, algo_switch_off_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_off_png, algo_switch_off_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_off_png, algo_switch_off_pngSize), 1.000f, Colour (0x00000000)); + addAndMakeVisible (label19 = new Label ("new label", + TRANS("FM"))); + label19->setFont (Font (15.00f, Font::plain)); + label19->setJustificationType (Justification::centredLeft); + label19->setEditable (false, false, false); + label19->setColour (Label::textColourId, Colours::green); + label19->setColour (TextEditor::textColourId, Colours::black); + label19->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (TwoOpAMButton2 = new ImageButton ("Two OP AM Button")); + TwoOpAMButton2->setButtonText (TRANS("new button")); + TwoOpAMButton2->addListener (this); + + TwoOpAMButton2->setImages (false, true, false, + ImageCache::getFromMemory (twoopAm_png, twoopAm_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (twoopAm_png, twoopAm_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (twoopAm_png, twoopAm_pngSize), 1.000f, Colour (0x00000000)); + addAndMakeVisible (label20 = new Label ("new label", + TRANS("M"))); + label20->setFont (Font (15.00f, Font::plain)); + label20->setJustificationType (Justification::centred); + label20->setEditable (false, false, false); + label20->setColour (TextEditor::textColourId, Colours::black); + label20->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (label21 = new Label ("new label", + TRANS("C"))); + label21->setFont (Font (15.00f, Font::plain)); + label21->setJustificationType (Justification::centred); + label21->setEditable (false, false, false); + label21->setColour (TextEditor::textColourId, Colours::black); + label21->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (label22 = new Label ("new label", + TRANS("Example Algo Sections w/ Diagram"))); + label22->setFont (Font (15.00f, Font::plain)); + label22->setJustificationType (Justification::centred); + label22->setEditable (false, false, false); + label22->setColour (Label::textColourId, Colours::green); + label22->setColour (TextEditor::textColourId, Colours::black); + label22->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (algoSwitchButtonOffEx4 = new ImageButton ("Algorithm Switch Off AM")); + algoSwitchButtonOffEx4->setButtonText (TRANS("new button")); + algoSwitchButtonOffEx4->addListener (this); + + algoSwitchButtonOffEx4->setImages (false, true, true, + ImageCache::getFromMemory (algo_switch_off_png, algo_switch_off_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_off_png, algo_switch_off_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_off_png, algo_switch_off_pngSize), 1.000f, Colour (0x00000000)); + addAndMakeVisible (label23 = new Label ("new label", + TRANS("AM"))); + label23->setFont (Font (15.00f, Font::plain)); + label23->setJustificationType (Justification::centredLeft); + label23->setEditable (false, false, false); + label23->setColour (Label::textColourId, Colours::green); + label23->setColour (TextEditor::textColourId, Colours::black); + label23->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (algoSwitchButtonOn3Ex3 = new ImageButton ("Algorithm Switch On3 FM")); + algoSwitchButtonOn3Ex3->setButtonText (TRANS("new button")); + algoSwitchButtonOn3Ex3->addListener (this); + + algoSwitchButtonOn3Ex3->setImages (false, true, true, + ImageCache::getFromMemory (algo_switch_on3_png, algo_switch_on3_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_on3_png, algo_switch_on3_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_on3_png, algo_switch_on3_pngSize), 1.000f, Colour (0x00000000)); + addAndMakeVisible (label24 = new Label ("new label", + TRANS("FM"))); + label24->setFont (Font (15.00f, Font::plain)); + label24->setJustificationType (Justification::centredLeft); + label24->setEditable (false, false, false); + label24->setColour (Label::textColourId, Colours::black); + label24->setColour (TextEditor::textColourId, Colours::black); + label24->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (TwoOpFMButton2 = new ImageButton ("Two OP FM Button")); + TwoOpFMButton2->setButtonText (TRANS("new button")); + TwoOpFMButton2->addListener (this); + + TwoOpFMButton2->setImages (false, true, true, + ImageCache::getFromMemory (twoopFm_png, twoopFm_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (twoopFm_png, twoopFm_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (twoopFm_png, twoopFm_pngSize), 1.000f, Colour (0x00000000)); + addAndMakeVisible (label25 = new Label ("new label", + TRANS("M"))); + label25->setFont (Font (15.00f, Font::plain)); + label25->setJustificationType (Justification::centred); + label25->setEditable (false, false, false); + label25->setColour (TextEditor::textColourId, Colours::black); + label25->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (label26 = new Label ("new label", + TRANS("C"))); + label26->setFont (Font (15.00f, Font::plain)); + label26->setJustificationType (Justification::centred); + label26->setEditable (false, false, false); + label26->setColour (TextEditor::textColourId, Colours::black); + label26->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (groupComponent7 = new GroupComponent ("new group", + String())); + groupComponent7->setColour (GroupComponent::outlineColourId, Colours::green); + + addAndMakeVisible (algoSwitchButtonOffEx5 = new ImageButton ("Algorithm Switch Off AM")); + algoSwitchButtonOffEx5->setButtonText (TRANS("new button")); + algoSwitchButtonOffEx5->addListener (this); + + algoSwitchButtonOffEx5->setImages (false, true, true, + ImageCache::getFromMemory (algo_switch_off_png, algo_switch_off_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_off_png, algo_switch_off_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_off_png, algo_switch_off_pngSize), 1.000f, Colour (0x00000000)); + addAndMakeVisible (label27 = new Label ("new label", + TRANS("AM"))); + label27->setFont (Font (15.00f, Font::plain)); + label27->setJustificationType (Justification::centredLeft); + label27->setEditable (false, false, false); + label27->setColour (Label::textColourId, Colours::green); + label27->setColour (TextEditor::textColourId, Colours::black); + label27->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (algoSwitchButtonOn3Ex4 = new ImageButton ("Algorithm Switch On3 FM")); + algoSwitchButtonOn3Ex4->setButtonText (TRANS("new button")); + algoSwitchButtonOn3Ex4->addListener (this); + + algoSwitchButtonOn3Ex4->setImages (false, true, true, + ImageCache::getFromMemory (algo_switch_on3_png, algo_switch_on3_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_on3_png, algo_switch_on3_pngSize), 1.000f, Colour (0x00000000), + ImageCache::getFromMemory (algo_switch_on3_png, algo_switch_on3_pngSize), 1.000f, Colour (0x00000000)); + addAndMakeVisible (label28 = new Label ("new label", + TRANS("FM"))); + label28->setFont (Font (15.00f, Font::plain)); + label28->setJustificationType (Justification::centredLeft); + label28->setEditable (false, false, false); + label28->setColour (Label::textColourId, Colours::black); + label28->setColour (TextEditor::textColourId, Colours::black); + label28->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (groupComponent8 = new GroupComponent ("new group", + String())); + groupComponent8->setColour (GroupComponent::outlineColourId, Colours::green); + + addAndMakeVisible (frequencyLabel9 = new Label ("frequency label", + TRANS("Algorithm"))); + frequencyLabel9->setTooltip (TRANS("In additive mode, carrier and modulator output are simply summed rather than modulated")); + frequencyLabel9->setFont (Font (15.00f, Font::plain)); + frequencyLabel9->setJustificationType (Justification::centredLeft); + frequencyLabel9->setEditable (false, false, false); + frequencyLabel9->setColour (Label::textColourId, Colour (0xff007f00)); + frequencyLabel9->setColour (TextEditor::textColourId, Colours::black); + frequencyLabel9->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (label29 = new Label ("new label", + TRANS("Example Algo Section w/o Diagram"))); + label29->setFont (Font (15.00f, Font::plain)); + label29->setJustificationType (Justification::centred); + label29->setEditable (false, false, false); + label29->setColour (Label::textColourId, Colours::green); + label29->setColour (TextEditor::textColourId, Colours::black); + label29->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (label30 = new Label ("new label", + TRANS("Off On (Bright) On (Dark) On (Solid)"))); + label30->setFont (Font (15.00f, Font::plain)); + label30->setJustificationType (Justification::centred); + label30->setEditable (false, false, false); + label30->setColour (Label::textColourId, Colours::green); + label30->setColour (TextEditor::textColourId, Colours::black); + label30->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (frequencyLabel10 = new Label ("frequency label", + TRANS("Keyscale Attenuation (db/8ve)"))); + frequencyLabel10->setTooltip (TRANS("Attenuate amplitude with note frequency in db/8ve")); + frequencyLabel10->setFont (Font (15.00f, Font::plain)); + frequencyLabel10->setJustificationType (Justification::centred); + frequencyLabel10->setEditable (false, false, false); + frequencyLabel10->setColour (Label::textColourId, Colour (0xff007f00)); + frequencyLabel10->setColour (TextEditor::textColourId, Colours::black); + frequencyLabel10->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + + addAndMakeVisible (attenuationLabel5 = new Label ("attenuation label", + TRANS("Velocity Sensitivity"))); + attenuationLabel5->setTooltip (TRANS("Set or disable velocity senstivity")); + attenuationLabel5->setFont (Font (15.00f, Font::plain)); + attenuationLabel5->setJustificationType (Justification::centred); + attenuationLabel5->setEditable (false, false, false); + attenuationLabel5->setColour (Label::textColourId, Colour (0xff007f00)); + attenuationLabel5->setColour (TextEditor::textColourId, Colours::black); + attenuationLabel5->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); + //[UserPreSize] + LookAndFeel::setDefaultLookAndFeel(new OPLLookAndFeel()); + frequencyComboBox->setColour (ComboBox::textColourId, Colour (COLOUR_MID)); frequencyComboBox->setColour (ComboBox::outlineColourId, Colour (COLOUR_MID)); frequencyComboBox->setColour (ComboBox::arrowColourId, Colour (COLOUR_MID)); @@ -1076,7 +1606,7 @@ PluginGui::PluginGui (AdlibBlasterAudioProcessor* ownerFilter) versionLabel->setText(String(ProjectInfo::versionString), NotificationType::dontSendNotification); //[/UserPreSize] - setSize (860, 550); + setSize (860, 520); //[Constructor] You can add your own custom stuff here.. @@ -1113,7 +1643,6 @@ PluginGui::~PluginGui() vibratoButton = nullptr; sustainButton = nullptr; keyscaleEnvButton = nullptr; - frequencyLabel2 = nullptr; dbLabel2 = nullptr; groupComponent2 = nullptr; frequencyComboBox2 = nullptr; @@ -1149,7 +1678,6 @@ PluginGui::~PluginGui() feedbackSlider = nullptr; frequencyLabel7 = nullptr; velocityComboBox = nullptr; - attenuationLabel3 = nullptr; velocityComboBox2 = nullptr; attenuationLabel4 = nullptr; alternatingsineImageButton = nullptr; @@ -1176,6 +1704,73 @@ PluginGui::~PluginGui() exportButton = nullptr; loadButton = nullptr; versionLabel = nullptr; + ToggleButtonOffExample = nullptr; + ToggleButtonOnExample = nullptr; + label = nullptr; + label2 = nullptr; + LineBorderButton1C = nullptr; + LineBorderButton1A = nullptr; + LineBorderButton1B = nullptr; + label3 = nullptr; + LineBorderButton3A = nullptr; + LineBorderButton3B = nullptr; + LineBorderButton3B2 = nullptr; + LineBorderButton1C2 = nullptr; + LineBorderButton1A2 = nullptr; + LineBorderButton1B2 = nullptr; + LineBorderButton1C3 = nullptr; + LineBorderButton1B3 = nullptr; + algoSwitchButtonOffEx1 = nullptr; + algoSwitchButtonOffEx2 = nullptr; + algoSwitchButtonOnEx1 = nullptr; + algoSwitchButtonOnEx2 = nullptr; + label4 = nullptr; + label5 = nullptr; + label6 = nullptr; + label7 = nullptr; + label8 = nullptr; + algoSwitchButtonOn2Ex1 = nullptr; + algoSwitchButtonOn2Ex2 = nullptr; + label9 = nullptr; + label10 = nullptr; + algoSwitchButtonOn3Ex1 = nullptr; + algoSwitchButtonOn3Ex2 = nullptr; + label11 = nullptr; + label12 = nullptr; + TwoOpAMButton = nullptr; + TwoOpFMButton = nullptr; + label13 = nullptr; + label14 = nullptr; + label15 = nullptr; + label16 = nullptr; + label17 = nullptr; + groupComponent6 = nullptr; + algoSwitchButtonOnEx3 = nullptr; + label18 = nullptr; + algoSwitchButtonOffEx3 = nullptr; + label19 = nullptr; + TwoOpAMButton2 = nullptr; + label20 = nullptr; + label21 = nullptr; + label22 = nullptr; + algoSwitchButtonOffEx4 = nullptr; + label23 = nullptr; + algoSwitchButtonOn3Ex3 = nullptr; + label24 = nullptr; + TwoOpFMButton2 = nullptr; + label25 = nullptr; + label26 = nullptr; + groupComponent7 = nullptr; + algoSwitchButtonOffEx5 = nullptr; + label27 = nullptr; + algoSwitchButtonOn3Ex4 = nullptr; + label28 = nullptr; + groupComponent8 = nullptr; + frequencyLabel9 = nullptr; + label29 = nullptr; + label30 = nullptr; + frequencyLabel10 = nullptr; + attenuationLabel5 = nullptr; //[Destructor]. You can add your own custom destruction code here.. @@ -1199,92 +1794,157 @@ void PluginGui::resized() //[UserPreResize] Add your own custom resize code here.. //[/UserPreResize] - groupComponent->setBounds (16, 80, 408, 344); - frequencyComboBox->setBounds (128, 152, 72, 24); - frequencyLabel->setBounds (32, 152, 80, 24); - aSlider->setBounds (40, 280, 48, 72); - aLabel->setBounds (40, 352, 48, 24); - dSlider->setBounds (104, 280, 48, 72); - dLabel->setBounds (104, 352, 48, 24); - sSlider->setBounds (168, 280, 48, 72); - dLabel2->setBounds (168, 352, 48, 24); - rSlider->setBounds (232, 280, 48, 72); - rLabel->setBounds (232, 352, 48, 24); - attenuationSlider->setBounds (312, 280, 72, 96); - attenuationLabel->setBounds (312, 384, 96, 24); - dbLabel->setBounds (376, 352, 40, 24); - sineImageButton->setBounds (88, 112, 34, 30); - halfsineImageButton->setBounds (128, 112, 34, 30); - abssineImageButton->setBounds (168, 112, 34, 30); - quartersineImageButton->setBounds (208, 112, 34, 30); - waveLabel->setBounds (32, 112, 48, 24); - tremoloButton->setBounds (144, 192, 96, 24); - vibratoButton->setBounds (40, 192, 96, 24); - sustainButton->setBounds (40, 384, 96, 24); - keyscaleEnvButton->setBounds (128, 384, 184, 24); - frequencyLabel2->setBounds (248, 184, 152, 24); - dbLabel2->setBounds (336, 156, 72, 16); - groupComponent2->setBounds (440, 80, 408, 344); - frequencyComboBox2->setBounds (552, 152, 72, 24); - frequencyLabel3->setBounds (456, 152, 80, 24); - aSlider2->setBounds (464, 280, 48, 72); - aLabel2->setBounds (464, 352, 48, 24); - dSlider2->setBounds (528, 280, 48, 72); - dLabel3->setBounds (528, 352, 48, 24); - sSlider2->setBounds (592, 280, 48, 72); - dLabel4->setBounds (592, 352, 48, 24); - rSlider2->setBounds (656, 280, 48, 72); - rLabel2->setBounds (656, 352, 48, 24); - attenuationSlider2->setBounds (736, 280, 72, 96); - attenuationLabel2->setBounds (736, 384, 96, 24); - dbLabel3->setBounds (800, 352, 40, 24); - sineImageButton2->setBounds (512, 112, 34, 30); - halfsineImageButton2->setBounds (552, 112, 34, 30); - abssineImageButton2->setBounds (592, 112, 34, 30); - quartersineImageButton2->setBounds (632, 112, 34, 30); - waveLabel2->setBounds (456, 112, 48, 24); - tremoloButton2->setBounds (576, 192, 96, 24); - vibratoButton2->setBounds (464, 192, 96, 24); - sustainButton2->setBounds (464, 384, 96, 24); - keyscaleEnvButton2->setBounds (552, 384, 184, 24); - frequencyLabel4->setBounds (672, 184, 152, 24); - groupComponent3->setBounds (16, 432, 832, 96); - tremoloSlider->setBounds (632, 456, 112, 24); - frequencyLabel5->setBounds (472, 456, 152, 24); - dbLabel5->setBounds (752, 448, 40, 40); - vibratoSlider->setBounds (632, 488, 112, 24); - frequencyLabel6->setBounds (472, 488, 152, 24); - dbLabel6->setBounds (752, 480, 47, 40); - feedbackSlider->setBounds (112, 232, 136, 24); - frequencyLabel7->setBounds (32, 232, 80, 24); - velocityComboBox->setBounds (336, 232, 72, 24); - attenuationLabel3->setBounds (272, 232, 64, 24); - velocityComboBox2->setBounds (760, 232, 72, 24); - attenuationLabel4->setBounds (696, 232, 64, 24); - alternatingsineImageButton->setBounds (288, 112, 34, 30); - camelsineImageButton->setBounds (248, 112, 34, 30); - squareImageButton->setBounds (328, 112, 34, 30); - logsawImageButton->setBounds (368, 112, 34, 30); - alternatingsineImageButton2->setBounds (714, 113, 34, 30); - camelsineImageButton2->setBounds (674, 113, 34, 30); - squareImageButton2->setBounds (754, 113, 34, 30); - logsawImageButton2->setBounds (794, 113, 34, 30); - algorithmComboBox->setBounds (552, 232, 112, 24); - frequencyLabel8->setBounds (456, 232, 80, 24); - dbLabel4->setBounds (760, 156, 72, 16); - keyscaleAttenuationComboBox2->setBounds (688, 152, 72, 24); - keyscaleAttenuationComboBox->setBounds (264, 152, 72, 24); + groupComponent->setBounds (16, 80, 408, 312); + frequencyComboBox->setBounds (149, 165, 66, 24); + frequencyLabel->setBounds (32, 165, 112, 24); + aSlider->setBounds (30, 203, 30, 88); + aLabel->setBounds (30, 293, 30, 24); + dSlider->setBounds (70, 203, 30, 88); + dLabel->setBounds (70, 293, 30, 24); + sSlider->setBounds (110, 203, 30, 88); + dLabel2->setBounds (110, 293, 30, 24); + rSlider->setBounds (150, 203, 30, 88); + rLabel->setBounds (150, 293, 30, 24); + attenuationSlider->setBounds (130, 350, 232, 24); + attenuationLabel->setBounds (32, 350, 106, 24); + dbLabel->setBounds (362, 350, 32, 24); + sineImageButton->setBounds (88, 105, 34, 30); + halfsineImageButton->setBounds (128, 105, 34, 30); + abssineImageButton->setBounds (168, 105, 34, 30); + quartersineImageButton->setBounds (208, 105, 34, 30); + waveLabel->setBounds (32, 107, 48, 24); + tremoloButton->setBounds (323, 162, 80, 24); + vibratoButton->setBounds (243, 162, 72, 24); + sustainButton->setBounds (243, 198, 70, 24); + keyscaleEnvButton->setBounds (323, 186, 101, 48); + dbLabel2->setBounds (792, 712, 72, 16); + groupComponent2->setBounds (440, 80, 408, 312); + frequencyComboBox2->setBounds (573, 165, 66, 24); + frequencyLabel3->setBounds (456, 165, 112, 24); + aSlider2->setBounds (462, 203, 30, 88); + aLabel2->setBounds (462, 293, 30, 24); + dSlider2->setBounds (510, 203, 30, 88); + dLabel3->setBounds (510, 293, 30, 24); + sSlider2->setBounds (558, 203, 30, 88); + dLabel4->setBounds (558, 293, 30, 24); + rSlider2->setBounds (606, 203, 30, 88); + rLabel2->setBounds (606, 293, 30, 24); + attenuationSlider2->setBounds (554, 350, 232, 24); + attenuationLabel2->setBounds (456, 350, 106, 24); + dbLabel3->setBounds (782, 350, 40, 24); + sineImageButton2->setBounds (512, 105, 34, 30); + halfsineImageButton2->setBounds (552, 105, 34, 30); + abssineImageButton2->setBounds (592, 105, 34, 30); + quartersineImageButton2->setBounds (632, 105, 34, 30); + waveLabel2->setBounds (456, 107, 48, 24); + tremoloButton2->setBounds (746, 162, 80, 24); + vibratoButton2->setBounds (666, 162, 72, 24); + sustainButton2->setBounds (666, 198, 70, 24); + keyscaleEnvButton2->setBounds (746, 186, 102, 48); + frequencyLabel4->setBounds (752, 280, 88, 48); + groupComponent3->setBounds (16, 400, 832, 96); + tremoloSlider->setBounds (149, 424, 80, 24); + frequencyLabel5->setBounds (40, 424, 104, 24); + dbLabel5->setBounds (230, 416, 32, 40); + vibratoSlider->setBounds (149, 456, 80, 24); + frequencyLabel6->setBounds (40, 456, 96, 24); + dbLabel6->setBounds (230, 448, 48, 40); + feedbackSlider->setBounds (190, 203, 30, 88); + frequencyLabel7->setBounds (190, 293, 30, 24); + velocityComboBox->setBounds (244, 249, 72, 24); + velocityComboBox2->setBounds (672, 249, 72, 24); + attenuationLabel4->setBounds (664, 280, 80, 48); + alternatingsineImageButton->setBounds (288, 105, 34, 30); + camelsineImageButton->setBounds (248, 105, 34, 30); + squareImageButton->setBounds (328, 105, 34, 30); + logsawImageButton->setBounds (368, 105, 34, 30); + alternatingsineImageButton2->setBounds (714, 106, 34, 30); + camelsineImageButton2->setBounds (674, 106, 34, 30); + squareImageButton2->setBounds (754, 106, 34, 30); + logsawImageButton2->setBounds (794, 106, 34, 30); + algorithmComboBox->setBounds (314, 450, 112, 24); + frequencyLabel8->setBounds (304, 422, 136, 24); + dbLabel4->setBounds (792, 688, 72, 16); + keyscaleAttenuationComboBox2->setBounds (763, 249, 60, 24); + keyscaleAttenuationComboBox->setBounds (338, 249, 60, 24); groupComponent4->setBounds (16, 8, 832, 64); - groupComponent5->setBounds (24, 624, 408, 64); - emulatorSlider->setBounds (208, 648, 40, 24); - emulatorLabel->setBounds (120, 648, 72, 24); - emulatorLabel2->setBounds (256, 648, 72, 24); - recordButton->setBounds (24, 560, 296, 24); - percussionComboBox->setBounds (256, 488, 112, 24); - percussionLabel->setBounds (40, 488, 163, 24); - exportButton->setBounds (40, 456, 168, 24); - loadButton->setBounds (232, 456, 168, 24); - versionLabel->setBounds (640, 528, 198, 16); + groupComponent5->setBounds (24, 712, 408, 64); + emulatorSlider->setBounds (208, 736, 40, 24); + emulatorLabel->setBounds (120, 736, 72, 24); + emulatorLabel2->setBounds (256, 736, 72, 24); + recordButton->setBounds (32, 680, 224, 24); + percussionComboBox->setBounds (476, 450, 112, 24); + percussionLabel->setBounds (456, 422, 152, 24); + exportButton->setBounds (644, 455, 168, 24); + loadButton->setBounds (644, 422, 168, 24); + versionLabel->setBounds (640, 496, 198, 16); + ToggleButtonOffExample->setBounds (1032, 584, 12, 12); + ToggleButtonOnExample->setBounds (1064, 584, 12, 12); + label->setBounds (1000, 608, 104, 24); + label2->setBounds (872, 608, 104, 24); + LineBorderButton1C->setBounds (20, 332, 400, 6); + LineBorderButton1A->setBounds (20, 144, 400, 6); + LineBorderButton1B->setBounds (230, 148, 6, 186); + label3->setBounds (776, 736, 104, 56); + LineBorderButton3A->setBounds (288, 410, 6, 82); + LineBorderButton3B->setBounds (450, 410, 6, 82); + LineBorderButton3B2->setBounds (612, 410, 6, 82); + LineBorderButton1C2->setBounds (444, 332, 400, 6); + LineBorderButton1A2->setBounds (444, 144, 400, 6); + LineBorderButton1B2->setBounds (654, 148, 6, 186); + LineBorderButton1C3->setBounds (892, 584, 20, 6); + LineBorderButton1B3->setBounds (936, 576, 6, 20); + algoSwitchButtonOffEx1->setBounds (952, 701, 64, 24); + algoSwitchButtonOffEx2->setBounds (952, 727, 64, 24); + algoSwitchButtonOnEx1->setBounds (1040, 701, 64, 24); + algoSwitchButtonOnEx2->setBounds (1040, 727, 64, 24); + label4->setBounds (970, 701, 32, 24); + label5->setBounds (971, 727, 32, 24); + label6->setBounds (1057, 701, 32, 24); + label7->setBounds (1058, 727, 32, 24); + label8->setBounds (944, 816, 320, 24); + algoSwitchButtonOn2Ex1->setBounds (1128, 700, 64, 24); + algoSwitchButtonOn2Ex2->setBounds (1128, 727, 64, 24); + label9->setBounds (1145, 700, 32, 24); + label10->setBounds (1146, 727, 32, 24); + algoSwitchButtonOn3Ex1->setBounds (1216, 700, 64, 24); + algoSwitchButtonOn3Ex2->setBounds (1216, 727, 64, 24); + label11->setBounds (1233, 700, 31, 24); + label12->setBounds (1234, 727, 32, 24); + TwoOpAMButton->setBounds (1173, 484, 60, 56); + TwoOpFMButton->setBounds (1156, 568, 80, 26); + label13->setBounds (1179, 489, 24, 24); + label14->setBounds (1179, 518, 24, 24); + label15->setBounds (1166, 572, 24, 24); + label16->setBounds (1195, 572, 24, 24); + label17->setBounds (1128, 608, 136, 24); + groupComponent6->setBounds (933, 56, 168, 95); + algoSwitchButtonOnEx3->setBounds (949, 82, 64, 24); + label18->setBounds (966, 82, 32, 24); + algoSwitchButtonOffEx3->setBounds (949, 108, 64, 24); + label19->setBounds (968, 108, 32, 24); + TwoOpAMButton2->setBounds (1029, 77, 60, 56); + label20->setBounds (1035, 82, 24, 24); + label21->setBounds (1035, 111, 24, 24); + label22->setBounds (952, 160, 328, 40); + algoSwitchButtonOffEx4->setBounds (1125, 82, 64, 24); + label23->setBounds (1143, 82, 32, 24); + algoSwitchButtonOn3Ex3->setBounds (1125, 109, 64, 24); + label24->setBounds (1143, 109, 32, 24); + TwoOpFMButton2->setBounds (1196, 94, 80, 26); + label25->setBounds (1206, 98, 24, 24); + label26->setBounds (1235, 98, 24, 24); + groupComponent7->setBounds (1112, 56, 168, 95); + algoSwitchButtonOffEx5->setBounds (1037, 250, 64, 24); + label27->setBounds (1055, 250, 32, 24); + algoSwitchButtonOn3Ex4->setBounds (1103, 250, 64, 24); + label28->setBounds (1121, 250, 32, 24); + groupComponent8->setBounds (1018, 200, 168, 95); + frequencyLabel9->setBounds (1067, 216, 72, 24); + label29->setBounds (944, 304, 328, 40); + label30->setBounds (961, 768, 319, 24); + frequencyLabel10->setBounds (328, 280, 88, 48); + attenuationLabel5->setBounds (240, 280, 80, 48); //[UserResized] Add your own custom resize handling here.. for (unsigned int i = 0; i < channels.size(); ++i) channels[i]->setBounds(68+88*i, 36, 20, 20); @@ -1323,8 +1983,6 @@ void PluginGui::comboBoxChanged (ComboBox* comboBoxThatHasChanged) else if (comboBoxThatHasChanged == velocityComboBox2) { //[UserComboBoxCode_velocityComboBox2] -- add your combo box handling code here.. - int id = comboBoxThatHasChanged->getSelectedId() - 1; - processor->setEnumParameter("Carrier Velocity Sensitivity", id); //[/UserComboBoxCode_velocityComboBox2] } else if (comboBoxThatHasChanged == algorithmComboBox) @@ -1337,8 +1995,6 @@ void PluginGui::comboBoxChanged (ComboBox* comboBoxThatHasChanged) else if (comboBoxThatHasChanged == keyscaleAttenuationComboBox2) { //[UserComboBoxCode_keyscaleAttenuationComboBox2] -- add your combo box handling code here.. - int id = comboBoxThatHasChanged->getSelectedId() - 1; - processor->setEnumParameter("Carrier Keyscale Level", id); //[/UserComboBoxCode_keyscaleAttenuationComboBox2] } else if (comboBoxThatHasChanged == keyscaleAttenuationComboBox) @@ -1649,6 +2305,106 @@ void PluginGui::buttonClicked (Button* buttonThatWasClicked) } //[/UserButtonCode_loadButton] } + else if (buttonThatWasClicked == ToggleButtonOffExample) + { + //[UserButtonCode_ToggleButtonOffExample] -- add your button handler code here.. + //[/UserButtonCode_ToggleButtonOffExample] + } + else if (buttonThatWasClicked == ToggleButtonOnExample) + { + //[UserButtonCode_ToggleButtonOnExample] -- add your button handler code here.. + //[/UserButtonCode_ToggleButtonOnExample] + } + else if (buttonThatWasClicked == algoSwitchButtonOffEx1) + { + //[UserButtonCode_algoSwitchButtonOffEx1] -- add your button handler code here.. + //[/UserButtonCode_algoSwitchButtonOffEx1] + } + else if (buttonThatWasClicked == algoSwitchButtonOffEx2) + { + //[UserButtonCode_algoSwitchButtonOffEx2] -- add your button handler code here.. + //[/UserButtonCode_algoSwitchButtonOffEx2] + } + else if (buttonThatWasClicked == algoSwitchButtonOnEx1) + { + //[UserButtonCode_algoSwitchButtonOnEx1] -- add your button handler code here.. + //[/UserButtonCode_algoSwitchButtonOnEx1] + } + else if (buttonThatWasClicked == algoSwitchButtonOnEx2) + { + //[UserButtonCode_algoSwitchButtonOnEx2] -- add your button handler code here.. + //[/UserButtonCode_algoSwitchButtonOnEx2] + } + else if (buttonThatWasClicked == algoSwitchButtonOn2Ex1) + { + //[UserButtonCode_algoSwitchButtonOn2Ex1] -- add your button handler code here.. + //[/UserButtonCode_algoSwitchButtonOn2Ex1] + } + else if (buttonThatWasClicked == algoSwitchButtonOn2Ex2) + { + //[UserButtonCode_algoSwitchButtonOn2Ex2] -- add your button handler code here.. + //[/UserButtonCode_algoSwitchButtonOn2Ex2] + } + else if (buttonThatWasClicked == algoSwitchButtonOn3Ex1) + { + //[UserButtonCode_algoSwitchButtonOn3Ex1] -- add your button handler code here.. + //[/UserButtonCode_algoSwitchButtonOn3Ex1] + } + else if (buttonThatWasClicked == algoSwitchButtonOn3Ex2) + { + //[UserButtonCode_algoSwitchButtonOn3Ex2] -- add your button handler code here.. + //[/UserButtonCode_algoSwitchButtonOn3Ex2] + } + else if (buttonThatWasClicked == TwoOpAMButton) + { + //[UserButtonCode_TwoOpAMButton] -- add your button handler code here.. + //[/UserButtonCode_TwoOpAMButton] + } + else if (buttonThatWasClicked == TwoOpFMButton) + { + //[UserButtonCode_TwoOpFMButton] -- add your button handler code here.. + //[/UserButtonCode_TwoOpFMButton] + } + else if (buttonThatWasClicked == algoSwitchButtonOnEx3) + { + //[UserButtonCode_algoSwitchButtonOnEx3] -- add your button handler code here.. + //[/UserButtonCode_algoSwitchButtonOnEx3] + } + else if (buttonThatWasClicked == algoSwitchButtonOffEx3) + { + //[UserButtonCode_algoSwitchButtonOffEx3] -- add your button handler code here.. + //[/UserButtonCode_algoSwitchButtonOffEx3] + } + else if (buttonThatWasClicked == TwoOpAMButton2) + { + //[UserButtonCode_TwoOpAMButton2] -- add your button handler code here.. + //[/UserButtonCode_TwoOpAMButton2] + } + else if (buttonThatWasClicked == algoSwitchButtonOffEx4) + { + //[UserButtonCode_algoSwitchButtonOffEx4] -- add your button handler code here.. + //[/UserButtonCode_algoSwitchButtonOffEx4] + } + else if (buttonThatWasClicked == algoSwitchButtonOn3Ex3) + { + //[UserButtonCode_algoSwitchButtonOn3Ex3] -- add your button handler code here.. + //[/UserButtonCode_algoSwitchButtonOn3Ex3] + } + else if (buttonThatWasClicked == TwoOpFMButton2) + { + //[UserButtonCode_TwoOpFMButton2] -- add your button handler code here.. + //[/UserButtonCode_TwoOpFMButton2] + } + else if (buttonThatWasClicked == algoSwitchButtonOffEx5) + { + //[UserButtonCode_algoSwitchButtonOffEx5] -- add your button handler code here.. + //[/UserButtonCode_algoSwitchButtonOffEx5] + } + else if (buttonThatWasClicked == algoSwitchButtonOn3Ex4) + { + //[UserButtonCode_algoSwitchButtonOn3Ex4] -- add your button handler code here.. + //[/UserButtonCode_algoSwitchButtonOn3Ex4] + } //[UserbuttonClicked_Post] //[/UserbuttonClicked_Post] @@ -1712,438 +2468,799 @@ BEGIN_JUCER_METADATA parentClasses="public AudioProcessorEditor, public FileDragAndDropTarget, public DragAndDropContainer, public Timer" constructorParams="AdlibBlasterAudioProcessor* ownerFilter" variableInitialisers=" AudioProcessorEditor (ownerFilter)" snapPixels="8" snapActive="1" snapShown="1" overlayOpacity="0.330" - fixedSize="0" initialWidth="860" initialHeight="550"> + fixedSize="1" initialWidth="860" initialHeight="520">