Merge pull request #21 from yokemura/refactor/JUCEAutomaticUpdate

JUCE automatic updates
This commit is contained in:
Takeshi Yokemura 2021-08-07 18:51:13 +09:00 committed by GitHub
commit 095e6a8c11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 211 additions and 211 deletions

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -37,14 +37,14 @@ AdvancedParamsComponent::AdvancedParamsComponent (Magical8bitPlug2AudioProcessor
addAndMakeVisible (volumeCompo.get()); addAndMakeVisible (volumeCompo.get());
volumeCompo->setName ("volume component"); volumeCompo->setName ("volume component");
label5.reset (new Label ("new label", label5.reset (new juce::Label ("new label",
TRANS("Custom Envelopes"))); TRANS("Custom Envelopes")));
addAndMakeVisible (label5.get()); addAndMakeVisible (label5.get());
label5->setFont (Font (17.00f, Font::plain).withTypefaceStyle ("Regular")); label5->setFont (juce::Font (17.00f, juce::Font::plain).withTypefaceStyle ("Regular"));
label5->setJustificationType (Justification::centredLeft); label5->setJustificationType (juce::Justification::centredLeft);
label5->setEditable (false, false, false); label5->setEditable (false, false, false);
label5->setColour (TextEditor::textColourId, Colours::black); label5->setColour (juce::TextEditor::textColourId, juce::Colours::black);
label5->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); label5->setColour (juce::TextEditor::backgroundColourId, juce::Colour (0x00000000));
label5->setBounds (0, 4, 150, 24); label5->setBounds (0, 4, 150, 24);
@ -91,7 +91,7 @@ AdvancedParamsComponent::~AdvancedParamsComponent()
} }
//============================================================================== //==============================================================================
void AdvancedParamsComponent::paint (Graphics& g) void AdvancedParamsComponent::paint (juce::Graphics& g)
{ {
//[UserPrePaint] Add your own custom painting code here.. //[UserPrePaint] Add your own custom painting code here..
//[/UserPrePaint] //[/UserPrePaint]

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -40,13 +40,13 @@ class AdvancedParamsComponent : public Component
public: public:
//============================================================================== //==============================================================================
AdvancedParamsComponent (Magical8bitPlug2AudioProcessor& p); AdvancedParamsComponent (Magical8bitPlug2AudioProcessor& p);
~AdvancedParamsComponent(); ~AdvancedParamsComponent() override;
//============================================================================== //==============================================================================
//[UserMethods] -- You can add your own custom methods in this section. //[UserMethods] -- You can add your own custom methods in this section.
//[/UserMethods] //[/UserMethods]
void paint (Graphics& g) override; void paint (juce::Graphics& g) override;
void resized() override; void resized() override;
@ -58,7 +58,7 @@ private:
//============================================================================== //==============================================================================
std::unique_ptr<CustomEnvelopeComponent> volumeCompo; std::unique_ptr<CustomEnvelopeComponent> volumeCompo;
std::unique_ptr<Label> label5; std::unique_ptr<juce::Label> label5;
std::unique_ptr<CustomEnvelopeComponent> pitchCompo; std::unique_ptr<CustomEnvelopeComponent> pitchCompo;
std::unique_ptr<CustomEnvelopeComponent> dutyCompo; std::unique_ptr<CustomEnvelopeComponent> dutyCompo;
std::unique_ptr<ChoiceComponent> coarseOrFineChoice; std::unique_ptr<ChoiceComponent> coarseOrFineChoice;

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -34,14 +34,14 @@ BasicParamsComponent::BasicParamsComponent (Magical8bitPlug2AudioProcessor& p, M
//[Constructor_pre] You can add your own custom stuff here.. //[Constructor_pre] You can add your own custom stuff here..
//[/Constructor_pre] //[/Constructor_pre]
polyLabel.reset (new Label ("label", polyLabel.reset (new juce::Label ("label",
TRANS("Poly"))); TRANS("Poly")));
addAndMakeVisible (polyLabel.get()); addAndMakeVisible (polyLabel.get());
polyLabel->setFont (Font (15.00f, Font::plain).withTypefaceStyle ("Regular")); polyLabel->setFont (juce::Font (15.00f, juce::Font::plain).withTypefaceStyle ("Regular"));
polyLabel->setJustificationType (Justification::centredLeft); polyLabel->setJustificationType (juce::Justification::centredLeft);
polyLabel->setEditable (false, false, false); polyLabel->setEditable (false, false, false);
polyLabel->setColour (TextEditor::textColourId, Colours::black); polyLabel->setColour (juce::TextEditor::textColourId, juce::Colours::black);
polyLabel->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); polyLabel->setColour (juce::TextEditor::backgroundColourId, juce::Colour (0x00000000));
polyLabel->setBounds (232, 8, 40, 15); polyLabel->setBounds (232, 8, 40, 15);
@ -57,11 +57,11 @@ BasicParamsComponent::BasicParamsComponent (Magical8bitPlug2AudioProcessor& p, M
oscChoice->setBounds (0, 4, 224, 28); oscChoice->setBounds (0, 4, 224, 28);
polyNumberInput.reset (new Slider ("poly number input")); polyNumberInput.reset (new juce::Slider ("poly number input"));
addAndMakeVisible (polyNumberInput.get()); addAndMakeVisible (polyNumberInput.get());
polyNumberInput->setRange (0, 32, 1); polyNumberInput->setRange (0, 32, 1);
polyNumberInput->setSliderStyle (Slider::IncDecButtons); polyNumberInput->setSliderStyle (juce::Slider::IncDecButtons);
polyNumberInput->setTextBoxStyle (Slider::TextBoxLeft, false, 30, 20); polyNumberInput->setTextBoxStyle (juce::Slider::TextBoxLeft, false, 30, 20);
polyNumberInput->addListener (this); polyNumberInput->addListener (this);
polyNumberInput->setBounds (268, 4, 86, 24); polyNumberInput->setBounds (268, 4, 86, 24);
@ -111,7 +111,7 @@ BasicParamsComponent::~BasicParamsComponent()
} }
//============================================================================== //==============================================================================
void BasicParamsComponent::paint (Graphics& g) void BasicParamsComponent::paint (juce::Graphics& g)
{ {
//[UserPrePaint] Add your own custom painting code here.. //[UserPrePaint] Add your own custom painting code here..
//[/UserPrePaint] //[/UserPrePaint]
@ -131,7 +131,7 @@ void BasicParamsComponent::resized()
//[/UserResized] //[/UserResized]
} }
void BasicParamsComponent::sliderValueChanged (Slider* sliderThatWasMoved) void BasicParamsComponent::sliderValueChanged (juce::Slider* sliderThatWasMoved)
{ {
//[UsersliderValueChanged_Pre] //[UsersliderValueChanged_Pre]
//[/UsersliderValueChanged_Pre] //[/UsersliderValueChanged_Pre]

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -41,12 +41,12 @@ class Magical8bitPlug2AudioProcessorEditor;
class BasicParamsComponent : public Component, class BasicParamsComponent : public Component,
public ComboBox::Listener, public ComboBox::Listener,
public Button::Listener, public Button::Listener,
public Slider::Listener public juce::Slider::Listener
{ {
public: public:
//============================================================================== //==============================================================================
BasicParamsComponent (Magical8bitPlug2AudioProcessor& p, Magical8bitPlug2AudioProcessorEditor& e); BasicParamsComponent (Magical8bitPlug2AudioProcessor& p, Magical8bitPlug2AudioProcessorEditor& e);
~BasicParamsComponent(); ~BasicParamsComponent() override;
//============================================================================== //==============================================================================
//[UserMethods] -- You can add your own custom methods in this section. //[UserMethods] -- You can add your own custom methods in this section.
@ -54,9 +54,9 @@ public:
void buttonClicked (Button* buttonThatWasClicked) override; void buttonClicked (Button* buttonThatWasClicked) override;
//[/UserMethods] //[/UserMethods]
void paint (Graphics& g) override; void paint (juce::Graphics& g) override;
void resized() override; void resized() override;
void sliderValueChanged (Slider* sliderThatWasMoved) override; void sliderValueChanged (juce::Slider* sliderThatWasMoved) override;
@ -69,10 +69,10 @@ private:
//[/UserVariables] //[/UserVariables]
//============================================================================== //==============================================================================
std::unique_ptr<Label> polyLabel; std::unique_ptr<juce::Label> polyLabel;
std::unique_ptr<SliderComponent> gainSlider; std::unique_ptr<SliderComponent> gainSlider;
std::unique_ptr<ChoiceComponent> oscChoice; std::unique_ptr<ChoiceComponent> oscChoice;
std::unique_ptr<Slider> polyNumberInput; std::unique_ptr<juce::Slider> polyNumberInput;
std::unique_ptr<CheckBoxComponent> advancedSwitch; std::unique_ptr<CheckBoxComponent> advancedSwitch;
std::unique_ptr<ChoiceComponent> colorSchemeChoice; std::unique_ptr<ChoiceComponent> colorSchemeChoice;

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -32,14 +32,14 @@ BendParamsComponent::BendParamsComponent (Magical8bitPlug2AudioProcessor& p)
//[Constructor_pre] You can add your own custom stuff here.. //[Constructor_pre] You can add your own custom stuff here..
//[/Constructor_pre] //[/Constructor_pre]
label.reset (new Label ("label", label.reset (new juce::Label ("label",
TRANS("Bend Range"))); TRANS("Bend Range")));
addAndMakeVisible (label.get()); addAndMakeVisible (label.get());
label->setFont (Font (17.00f, Font::plain).withTypefaceStyle ("Regular")); label->setFont (juce::Font (17.00f, juce::Font::plain).withTypefaceStyle ("Regular"));
label->setJustificationType (Justification::centredLeft); label->setJustificationType (juce::Justification::centredLeft);
label->setEditable (false, false, false); label->setEditable (false, false, false);
label->setColour (TextEditor::textColourId, Colours::black); label->setColour (juce::TextEditor::textColourId, juce::Colours::black);
label->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); label->setColour (juce::TextEditor::backgroundColourId, juce::Colour (0x00000000));
label->setBounds (0, 4, 150, 22); label->setBounds (0, 4, 150, 22);
@ -72,7 +72,7 @@ BendParamsComponent::~BendParamsComponent()
} }
//============================================================================== //==============================================================================
void BendParamsComponent::paint (Graphics& g) void BendParamsComponent::paint (juce::Graphics& g)
{ {
//[UserPrePaint] Add your own custom painting code here.. //[UserPrePaint] Add your own custom painting code here..
//[/UserPrePaint] //[/UserPrePaint]

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -39,13 +39,13 @@ class BendParamsComponent : public Component
public: public:
//============================================================================== //==============================================================================
BendParamsComponent (Magical8bitPlug2AudioProcessor& p); BendParamsComponent (Magical8bitPlug2AudioProcessor& p);
~BendParamsComponent(); ~BendParamsComponent() override;
//============================================================================== //==============================================================================
//[UserMethods] -- You can add your own custom methods in this section. //[UserMethods] -- You can add your own custom methods in this section.
//[/UserMethods] //[/UserMethods]
void paint (Graphics& g) override; void paint (juce::Graphics& g) override;
void resized() override; void resized() override;
@ -55,7 +55,7 @@ private:
//[/UserVariables] //[/UserVariables]
//============================================================================== //==============================================================================
std::unique_ptr<Label> label; std::unique_ptr<juce::Label> label;
std::unique_ptr<SliderComponent> sliderCompo; std::unique_ptr<SliderComponent> sliderCompo;

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -33,7 +33,7 @@ CheckBoxComponent::CheckBoxComponent (Magical8bitPlug2AudioProcessor& p, String
//[Constructor_pre] You can add your own custom stuff here.. //[Constructor_pre] You can add your own custom stuff here..
//[/Constructor_pre] //[/Constructor_pre]
toggleButton.reset (new ToggleButton ("toggle button")); toggleButton.reset (new juce::ToggleButton ("toggle button"));
addAndMakeVisible (toggleButton.get()); addAndMakeVisible (toggleButton.get());
toggleButton->setButtonText (TRANS("new toggle button")); toggleButton->setButtonText (TRANS("new toggle button"));
toggleButton->addListener (this); toggleButton->addListener (this);
@ -66,7 +66,7 @@ CheckBoxComponent::~CheckBoxComponent()
} }
//============================================================================== //==============================================================================
void CheckBoxComponent::paint (Graphics& g) void CheckBoxComponent::paint (juce::Graphics& g)
{ {
//[UserPrePaint] Add your own custom painting code here.. //[UserPrePaint] Add your own custom painting code here..
//[/UserPrePaint] //[/UserPrePaint]
@ -85,7 +85,7 @@ void CheckBoxComponent::resized()
//[/UserResized] //[/UserResized]
} }
void CheckBoxComponent::buttonClicked (Button* buttonThatWasClicked) void CheckBoxComponent::buttonClicked (juce::Button* buttonThatWasClicked)
{ {
//[UserbuttonClicked_Pre] //[UserbuttonClicked_Pre]
//[/UserbuttonClicked_Pre] //[/UserbuttonClicked_Pre]

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -35,12 +35,12 @@
//[/Comments] //[/Comments]
*/ */
class CheckBoxComponent : public Component, class CheckBoxComponent : public Component,
public Button::Listener public juce::Button::Listener
{ {
public: public:
//============================================================================== //==============================================================================
CheckBoxComponent (Magical8bitPlug2AudioProcessor& p, String paramId, String name); CheckBoxComponent (Magical8bitPlug2AudioProcessor& p, String paramId, String name);
~CheckBoxComponent(); ~CheckBoxComponent() override;
//============================================================================== //==============================================================================
//[UserMethods] -- You can add your own custom methods in this section. //[UserMethods] -- You can add your own custom methods in this section.
@ -48,9 +48,9 @@ public:
void removeListener(); void removeListener();
//[/UserMethods] //[/UserMethods]
void paint (Graphics& g) override; void paint (juce::Graphics& g) override;
void resized() override; void resized() override;
void buttonClicked (Button* buttonThatWasClicked) override; void buttonClicked (juce::Button* buttonThatWasClicked) override;
@ -61,7 +61,7 @@ private:
//[/UserVariables] //[/UserVariables]
//============================================================================== //==============================================================================
std::unique_ptr<ToggleButton> toggleButton; std::unique_ptr<juce::ToggleButton> toggleButton;
//============================================================================== //==============================================================================

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -32,22 +32,22 @@ ChoiceComponent::ChoiceComponent (Magical8bitPlug2AudioProcessor& p, String para
//[Constructor_pre] You can add your own custom stuff here.. //[Constructor_pre] You can add your own custom stuff here..
//[/Constructor_pre] //[/Constructor_pre]
comboBox.reset (new ComboBox ("combo box")); comboBox.reset (new juce::ComboBox ("combo box"));
addAndMakeVisible (comboBox.get()); addAndMakeVisible (comboBox.get());
comboBox->setEditableText (false); comboBox->setEditableText (false);
comboBox->setJustificationType (Justification::centredLeft); comboBox->setJustificationType (juce::Justification::centredLeft);
comboBox->setTextWhenNothingSelected (String()); comboBox->setTextWhenNothingSelected (juce::String());
comboBox->setTextWhenNoChoicesAvailable (TRANS("(no choices)")); comboBox->setTextWhenNoChoicesAvailable (TRANS("(no choices)"));
comboBox->addListener (this); comboBox->addListener (this);
label.reset (new Label ("label", label.reset (new juce::Label ("label",
TRANS("Label"))); TRANS("Label")));
addAndMakeVisible (label.get()); addAndMakeVisible (label.get());
label->setFont (Font (14.00f, Font::plain).withTypefaceStyle ("Regular")); label->setFont (juce::Font (14.00f, juce::Font::plain).withTypefaceStyle ("Regular"));
label->setJustificationType (Justification::centredRight); label->setJustificationType (juce::Justification::centredRight);
label->setEditable (false, false, false); label->setEditable (false, false, false);
label->setColour (TextEditor::textColourId, Colours::black); label->setColour (juce::TextEditor::textColourId, juce::Colours::black);
label->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); label->setColour (juce::TextEditor::backgroundColourId, juce::Colour (0x00000000));
label->setBounds (8, 1, 60, 24); label->setBounds (8, 1, 60, 24);
@ -88,7 +88,7 @@ ChoiceComponent::~ChoiceComponent()
} }
//============================================================================== //==============================================================================
void ChoiceComponent::paint (Graphics& g) void ChoiceComponent::paint (juce::Graphics& g)
{ {
//[UserPrePaint] Add your own custom painting code here.. //[UserPrePaint] Add your own custom painting code here..
//[/UserPrePaint] //[/UserPrePaint]
@ -107,7 +107,7 @@ void ChoiceComponent::resized()
//[/UserResized] //[/UserResized]
} }
void ChoiceComponent::comboBoxChanged (ComboBox* comboBoxThatHasChanged) void ChoiceComponent::comboBoxChanged (juce::ComboBox* comboBoxThatHasChanged)
{ {
//[UsercomboBoxChanged_Pre] //[UsercomboBoxChanged_Pre]
//[/UsercomboBoxChanged_Pre] //[/UsercomboBoxChanged_Pre]

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -36,12 +36,12 @@
//[/Comments] //[/Comments]
*/ */
class ChoiceComponent : public Component, class ChoiceComponent : public Component,
public ComboBox::Listener public juce::ComboBox::Listener
{ {
public: public:
//============================================================================== //==============================================================================
ChoiceComponent (Magical8bitPlug2AudioProcessor& p, String paramId, String name); ChoiceComponent (Magical8bitPlug2AudioProcessor& p, String paramId, String name);
~ChoiceComponent(); ~ChoiceComponent() override;
//============================================================================== //==============================================================================
//[UserMethods] -- You can add your own custom methods in this section. //[UserMethods] -- You can add your own custom methods in this section.
@ -49,9 +49,9 @@ public:
void removeListener(); void removeListener();
//[/UserMethods] //[/UserMethods]
void paint (Graphics& g) override; void paint (juce::Graphics& g) override;
void resized() override; void resized() override;
void comboBoxChanged (ComboBox* comboBoxThatHasChanged) override; void comboBoxChanged (juce::ComboBox* comboBoxThatHasChanged) override;
@ -62,8 +62,8 @@ private:
//[/UserVariables] //[/UserVariables]
//============================================================================== //==============================================================================
std::unique_ptr<ComboBox> comboBox; std::unique_ptr<juce::ComboBox> comboBox;
std::unique_ptr<Label> label; std::unique_ptr<juce::Label> label;
//============================================================================== //==============================================================================

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -35,7 +35,7 @@ CustomEnvelopeComponent::CustomEnvelopeComponent (Magical8bitPlug2AudioProcessor
//[Constructor_pre] You can add your own custom stuff here.. //[Constructor_pre] You can add your own custom stuff here..
//[/Constructor_pre] //[/Constructor_pre]
textEditor.reset (new TextEditor ("text editor")); textEditor.reset (new juce::TextEditor ("text editor"));
addAndMakeVisible (textEditor.get()); addAndMakeVisible (textEditor.get());
textEditor->setMultiLine (false); textEditor->setMultiLine (false);
textEditor->setReturnKeyStartsNewLine (false); textEditor->setReturnKeyStartsNewLine (false);
@ -43,23 +43,23 @@ CustomEnvelopeComponent::CustomEnvelopeComponent (Magical8bitPlug2AudioProcessor
textEditor->setScrollbarsShown (false); textEditor->setScrollbarsShown (false);
textEditor->setCaretVisible (true); textEditor->setCaretVisible (true);
textEditor->setPopupMenuEnabled (true); textEditor->setPopupMenuEnabled (true);
textEditor->setText (String()); textEditor->setText (juce::String());
toggleButton.reset (new ToggleButton ("toggle button")); toggleButton.reset (new juce::ToggleButton ("toggle button"));
addAndMakeVisible (toggleButton.get()); addAndMakeVisible (toggleButton.get());
toggleButton->setButtonText (TRANS("Enabled")); toggleButton->setButtonText (TRANS("Enabled"));
toggleButton->addListener (this); toggleButton->addListener (this);
toggleButton->setBounds (8, 4, 104, 24); toggleButton->setBounds (8, 4, 104, 24);
label.reset (new Label ("new label", label.reset (new juce::Label ("new label",
String())); juce::String()));
addAndMakeVisible (label.get()); addAndMakeVisible (label.get());
label->setFont (Font (12.00f, Font::plain).withTypefaceStyle ("Regular")); label->setFont (juce::Font (12.00f, juce::Font::plain).withTypefaceStyle ("Regular"));
label->setJustificationType (Justification::centredLeft); label->setJustificationType (juce::Justification::centredLeft);
label->setEditable (false, false, false); label->setEditable (false, false, false);
label->setColour (TextEditor::textColourId, Colours::black); label->setColour (juce::TextEditor::textColourId, juce::Colours::black);
label->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); label->setColour (juce::TextEditor::backgroundColourId, juce::Colour (0x00000000));
//[UserPreSize] //[UserPreSize]
@ -95,7 +95,7 @@ CustomEnvelopeComponent::~CustomEnvelopeComponent()
} }
//============================================================================== //==============================================================================
void CustomEnvelopeComponent::paint (Graphics& g) void CustomEnvelopeComponent::paint (juce::Graphics& g)
{ {
//[UserPrePaint] Add your own custom painting code here.. //[UserPrePaint] Add your own custom painting code here..
//[/UserPrePaint] //[/UserPrePaint]
@ -115,7 +115,7 @@ void CustomEnvelopeComponent::resized()
//[/UserResized] //[/UserResized]
} }
void CustomEnvelopeComponent::buttonClicked (Button* buttonThatWasClicked) void CustomEnvelopeComponent::buttonClicked (juce::Button* buttonThatWasClicked)
{ {
//[UserbuttonClicked_Pre] //[UserbuttonClicked_Pre]
//[/UserbuttonClicked_Pre] //[/UserbuttonClicked_Pre]

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -38,12 +38,12 @@
class CustomEnvelopeComponent : public Component, class CustomEnvelopeComponent : public Component,
TextEditor::Listener, TextEditor::Listener,
FrameSequenceChangeListener, FrameSequenceChangeListener,
public Button::Listener public juce::Button::Listener
{ {
public: public:
//============================================================================== //==============================================================================
CustomEnvelopeComponent (Magical8bitPlug2AudioProcessor& p, String type, String displayName, String flagParameterName); CustomEnvelopeComponent (Magical8bitPlug2AudioProcessor& p, String type, String displayName, String flagParameterName);
~CustomEnvelopeComponent(); ~CustomEnvelopeComponent() override;
//============================================================================== //==============================================================================
//[UserMethods] -- You can add your own custom methods in this section. //[UserMethods] -- You can add your own custom methods in this section.
@ -51,9 +51,9 @@ public:
void sequenceChanged (String& str) override; void sequenceChanged (String& str) override;
//[/UserMethods] //[/UserMethods]
void paint (Graphics& g) override; void paint (juce::Graphics& g) override;
void resized() override; void resized() override;
void buttonClicked (Button* buttonThatWasClicked) override; void buttonClicked (juce::Button* buttonThatWasClicked) override;
void lookAndFeelChanged() override; void lookAndFeelChanged() override;
@ -67,9 +67,9 @@ private:
//[/UserVariables] //[/UserVariables]
//============================================================================== //==============================================================================
std::unique_ptr<TextEditor> textEditor; std::unique_ptr<juce::TextEditor> textEditor;
std::unique_ptr<ToggleButton> toggleButton; std::unique_ptr<juce::ToggleButton> toggleButton;
std::unique_ptr<Label> label; std::unique_ptr<juce::Label> label;
//============================================================================== //==============================================================================

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -32,14 +32,14 @@ EnvelopeParamsComponent::EnvelopeParamsComponent (Magical8bitPlug2AudioProcessor
//[Constructor_pre] You can add your own custom stuff here.. //[Constructor_pre] You can add your own custom stuff here..
//[/Constructor_pre] //[/Constructor_pre]
label.reset (new Label ("label", label.reset (new juce::Label ("label",
TRANS("Envelope"))); TRANS("Envelope")));
addAndMakeVisible (label.get()); addAndMakeVisible (label.get());
label->setFont (Font (17.00f, Font::plain).withTypefaceStyle ("Regular")); label->setFont (juce::Font (17.00f, juce::Font::plain).withTypefaceStyle ("Regular"));
label->setJustificationType (Justification::centredLeft); label->setJustificationType (juce::Justification::centredLeft);
label->setEditable (false, false, false); label->setEditable (false, false, false);
label->setColour (TextEditor::textColourId, Colours::black); label->setColour (juce::TextEditor::textColourId, juce::Colours::black);
label->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); label->setColour (juce::TextEditor::backgroundColourId, juce::Colour (0x00000000));
label->setBounds (0, 4, 150, 22); label->setBounds (0, 4, 150, 22);
@ -59,15 +59,15 @@ EnvelopeParamsComponent::EnvelopeParamsComponent (Magical8bitPlug2AudioProcessor
addAndMakeVisible (releaseSlider.get()); addAndMakeVisible (releaseSlider.get());
releaseSlider->setName ("release slider"); releaseSlider->setName ("release slider");
warningLabel.reset (new Label ("warning label", warningLabel.reset (new juce::Label ("warning label",
String())); juce::String()));
addAndMakeVisible (warningLabel.get()); addAndMakeVisible (warningLabel.get());
warningLabel->setFont (Font (15.00f, Font::plain).withTypefaceStyle ("Regular")); warningLabel->setFont (juce::Font (15.00f, juce::Font::plain).withTypefaceStyle ("Regular"));
warningLabel->setJustificationType (Justification::centredRight); warningLabel->setJustificationType (juce::Justification::centredRight);
warningLabel->setEditable (false, false, false); warningLabel->setEditable (false, false, false);
warningLabel->setColour (Label::textColourId, Colour (0xffe22be0)); warningLabel->setColour (juce::Label::textColourId, juce::Colour (0xffe22be0));
warningLabel->setColour (TextEditor::textColourId, Colours::black); warningLabel->setColour (juce::TextEditor::textColourId, juce::Colours::black);
warningLabel->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); warningLabel->setColour (juce::TextEditor::backgroundColourId, juce::Colour (0x00000000));
//[UserPreSize] //[UserPreSize]
@ -101,7 +101,7 @@ EnvelopeParamsComponent::~EnvelopeParamsComponent()
} }
//============================================================================== //==============================================================================
void EnvelopeParamsComponent::paint (Graphics& g) void EnvelopeParamsComponent::paint (juce::Graphics& g)
{ {
//[UserPrePaint] Add your own custom painting code here.. //[UserPrePaint] Add your own custom painting code here..
//[/UserPrePaint] //[/UserPrePaint]

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -39,13 +39,13 @@ class EnvelopeParamsComponent : public Component
public: public:
//============================================================================== //==============================================================================
EnvelopeParamsComponent (Magical8bitPlug2AudioProcessor& p); EnvelopeParamsComponent (Magical8bitPlug2AudioProcessor& p);
~EnvelopeParamsComponent(); ~EnvelopeParamsComponent() override;
//============================================================================== //==============================================================================
//[UserMethods] -- You can add your own custom methods in this section. //[UserMethods] -- You can add your own custom methods in this section.
//[/UserMethods] //[/UserMethods]
void paint (Graphics& g) override; void paint (juce::Graphics& g) override;
void resized() override; void resized() override;
void enablementChanged() override; void enablementChanged() override;
@ -57,12 +57,12 @@ private:
//[/UserVariables] //[/UserVariables]
//============================================================================== //==============================================================================
std::unique_ptr<Label> label; std::unique_ptr<juce::Label> label;
std::unique_ptr<SliderComponent> attackSlider; std::unique_ptr<SliderComponent> attackSlider;
std::unique_ptr<SliderComponent> decaySlider; std::unique_ptr<SliderComponent> decaySlider;
std::unique_ptr<SliderComponent> sustainSlider; std::unique_ptr<SliderComponent> sustainSlider;
std::unique_ptr<SliderComponent> releaseSlider; std::unique_ptr<SliderComponent> releaseSlider;
std::unique_ptr<Label> warningLabel; std::unique_ptr<juce::Label> warningLabel;
//============================================================================== //==============================================================================

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -32,14 +32,14 @@ NoiseParamsComponent::NoiseParamsComponent (Magical8bitPlug2AudioProcessor& p)
//[Constructor_pre] You can add your own custom stuff here.. //[Constructor_pre] You can add your own custom stuff here..
//[/Constructor_pre] //[/Constructor_pre]
label.reset (new Label ("label", label.reset (new juce::Label ("label",
TRANS("Noise"))); TRANS("Noise")));
addAndMakeVisible (label.get()); addAndMakeVisible (label.get());
label->setFont (Font (17.00f, Font::plain).withTypefaceStyle ("Regular")); label->setFont (juce::Font (17.00f, juce::Font::plain).withTypefaceStyle ("Regular"));
label->setJustificationType (Justification::centredLeft); label->setJustificationType (juce::Justification::centredLeft);
label->setEditable (false, false, false); label->setEditable (false, false, false);
label->setColour (TextEditor::textColourId, Colours::black); label->setColour (juce::TextEditor::textColourId, juce::Colours::black);
label->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); label->setColour (juce::TextEditor::backgroundColourId, juce::Colour (0x00000000));
label->setBounds (0, 4, 150, 22); label->setBounds (0, 4, 150, 22);
@ -72,7 +72,7 @@ NoiseParamsComponent::~NoiseParamsComponent()
} }
//============================================================================== //==============================================================================
void NoiseParamsComponent::paint (Graphics& g) void NoiseParamsComponent::paint (juce::Graphics& g)
{ {
//[UserPrePaint] Add your own custom painting code here.. //[UserPrePaint] Add your own custom painting code here..
//[/UserPrePaint] //[/UserPrePaint]

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -39,13 +39,13 @@ class NoiseParamsComponent : public Component
public: public:
//============================================================================== //==============================================================================
NoiseParamsComponent (Magical8bitPlug2AudioProcessor& p); NoiseParamsComponent (Magical8bitPlug2AudioProcessor& p);
~NoiseParamsComponent(); ~NoiseParamsComponent() override;
//============================================================================== //==============================================================================
//[UserMethods] -- You can add your own custom methods in this section. //[UserMethods] -- You can add your own custom methods in this section.
//[/UserMethods] //[/UserMethods]
void paint (Graphics& g) override; void paint (juce::Graphics& g) override;
void resized() override; void resized() override;
@ -55,7 +55,7 @@ private:
//[/UserVariables] //[/UserVariables]
//============================================================================== //==============================================================================
std::unique_ptr<Label> label; std::unique_ptr<juce::Label> label;
std::unique_ptr<ChoiceComponent> algorithmSelector; std::unique_ptr<ChoiceComponent> algorithmSelector;

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -32,14 +32,14 @@ PulseParamsComponent::PulseParamsComponent (Magical8bitPlug2AudioProcessor& p)
//[Constructor_pre] You can add your own custom stuff here.. //[Constructor_pre] You can add your own custom stuff here..
//[/Constructor_pre] //[/Constructor_pre]
label.reset (new Label ("label", label.reset (new juce::Label ("label",
TRANS("Pulse"))); TRANS("Pulse")));
addAndMakeVisible (label.get()); addAndMakeVisible (label.get());
label->setFont (Font (17.00f, Font::plain).withTypefaceStyle ("Regular")); label->setFont (juce::Font (17.00f, juce::Font::plain).withTypefaceStyle ("Regular"));
label->setJustificationType (Justification::centredLeft); label->setJustificationType (juce::Justification::centredLeft);
label->setEditable (false, false, false); label->setEditable (false, false, false);
label->setColour (TextEditor::textColourId, Colours::black); label->setColour (juce::TextEditor::textColourId, juce::Colours::black);
label->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); label->setColour (juce::TextEditor::backgroundColourId, juce::Colour (0x00000000));
label->setBounds (0, 4, 150, 22); label->setBounds (0, 4, 150, 22);
@ -47,14 +47,14 @@ PulseParamsComponent::PulseParamsComponent (Magical8bitPlug2AudioProcessor& p)
addAndMakeVisible (dutySelector.get()); addAndMakeVisible (dutySelector.get());
dutySelector->setName ("duty selector"); dutySelector->setName ("duty selector");
warningLabel.reset (new Label ("warning label", warningLabel.reset (new juce::Label ("warning label",
String())); juce::String()));
addAndMakeVisible (warningLabel.get()); addAndMakeVisible (warningLabel.get());
warningLabel->setFont (Font (15.00f, Font::plain).withTypefaceStyle ("Regular")); warningLabel->setFont (juce::Font (15.00f, juce::Font::plain).withTypefaceStyle ("Regular"));
warningLabel->setJustificationType (Justification::centredRight); warningLabel->setJustificationType (juce::Justification::centredRight);
warningLabel->setEditable (false, false, false); warningLabel->setEditable (false, false, false);
warningLabel->setColour (TextEditor::textColourId, Colours::black); warningLabel->setColour (juce::TextEditor::textColourId, juce::Colours::black);
warningLabel->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); warningLabel->setColour (juce::TextEditor::backgroundColourId, juce::Colour (0x00000000));
//[UserPreSize] //[UserPreSize]
@ -85,7 +85,7 @@ PulseParamsComponent::~PulseParamsComponent()
} }
//============================================================================== //==============================================================================
void PulseParamsComponent::paint (Graphics& g) void PulseParamsComponent::paint (juce::Graphics& g)
{ {
//[UserPrePaint] Add your own custom painting code here.. //[UserPrePaint] Add your own custom painting code here..
//[/UserPrePaint] //[/UserPrePaint]

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -39,13 +39,13 @@ class PulseParamsComponent : public Component
public: public:
//============================================================================== //==============================================================================
PulseParamsComponent (Magical8bitPlug2AudioProcessor& p); PulseParamsComponent (Magical8bitPlug2AudioProcessor& p);
~PulseParamsComponent(); ~PulseParamsComponent() override;
//============================================================================== //==============================================================================
//[UserMethods] -- You can add your own custom methods in this section. //[UserMethods] -- You can add your own custom methods in this section.
//[/UserMethods] //[/UserMethods]
void paint (Graphics& g) override; void paint (juce::Graphics& g) override;
void resized() override; void resized() override;
void enablementChanged() override; void enablementChanged() override;
@ -57,9 +57,9 @@ private:
//[/UserVariables] //[/UserVariables]
//============================================================================== //==============================================================================
std::unique_ptr<Label> label; std::unique_ptr<juce::Label> label;
std::unique_ptr<ChoiceComponent> dutySelector; std::unique_ptr<ChoiceComponent> dutySelector;
std::unique_ptr<Label> warningLabel; std::unique_ptr<juce::Label> warningLabel;
//============================================================================== //==============================================================================

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -32,22 +32,22 @@ SliderComponent::SliderComponent (Magical8bitPlug2AudioProcessor& p, String para
//[Constructor_pre] You can add your own custom stuff here.. //[Constructor_pre] You can add your own custom stuff here..
//[/Constructor_pre] //[/Constructor_pre]
label.reset (new Label ("label", label.reset (new juce::Label ("label",
TRANS("Label"))); TRANS("Label")));
addAndMakeVisible (label.get()); addAndMakeVisible (label.get());
label->setFont (Font (14.00f, Font::plain).withTypefaceStyle ("Regular")); label->setFont (juce::Font (14.00f, juce::Font::plain).withTypefaceStyle ("Regular"));
label->setJustificationType (Justification::centredRight); label->setJustificationType (juce::Justification::centredRight);
label->setEditable (false, false, false); label->setEditable (false, false, false);
label->setColour (TextEditor::textColourId, Colours::black); label->setColour (juce::TextEditor::textColourId, juce::Colours::black);
label->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); label->setColour (juce::TextEditor::backgroundColourId, juce::Colour (0x00000000));
label->setBounds (8, 1, 60, 24); label->setBounds (8, 1, 60, 24);
slider.reset (new Slider ("slider")); slider.reset (new juce::Slider ("slider"));
addAndMakeVisible (slider.get()); addAndMakeVisible (slider.get());
slider->setRange (0, 10, 0.01); slider->setRange (0, 10, 0.01);
slider->setSliderStyle (Slider::LinearHorizontal); slider->setSliderStyle (juce::Slider::LinearHorizontal);
slider->setTextBoxStyle (Slider::TextBoxRight, false, 50, 20); slider->setTextBoxStyle (juce::Slider::TextBoxRight, false, 50, 20);
//[UserPreSize] //[UserPreSize]
@ -78,7 +78,7 @@ SliderComponent::~SliderComponent()
} }
//============================================================================== //==============================================================================
void SliderComponent::paint (Graphics& g) void SliderComponent::paint (juce::Graphics& g)
{ {
//[UserPrePaint] Add your own custom painting code here.. //[UserPrePaint] Add your own custom painting code here..
//[/UserPrePaint] //[/UserPrePaint]

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -40,13 +40,13 @@ class SliderComponent : public Component
public: public:
//============================================================================== //==============================================================================
SliderComponent (Magical8bitPlug2AudioProcessor& p, String paramId, String name); SliderComponent (Magical8bitPlug2AudioProcessor& p, String paramId, String name);
~SliderComponent(); ~SliderComponent() override;
//============================================================================== //==============================================================================
//[UserMethods] -- You can add your own custom methods in this section. //[UserMethods] -- You can add your own custom methods in this section.
//[/UserMethods] //[/UserMethods]
void paint (Graphics& g) override; void paint (juce::Graphics& g) override;
void resized() override; void resized() override;
@ -57,8 +57,8 @@ private:
//[/UserVariables] //[/UserVariables]
//============================================================================== //==============================================================================
std::unique_ptr<Label> label; std::unique_ptr<juce::Label> label;
std::unique_ptr<Slider> slider; std::unique_ptr<juce::Slider> slider;
//============================================================================== //==============================================================================

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -32,14 +32,14 @@ SweepParamsComponent::SweepParamsComponent (Magical8bitPlug2AudioProcessor& p)
//[Constructor_pre] You can add your own custom stuff here.. //[Constructor_pre] You can add your own custom stuff here..
//[/Constructor_pre] //[/Constructor_pre]
label.reset (new Label ("label", label.reset (new juce::Label ("label",
TRANS("Auto Bend"))); TRANS("Auto Bend")));
addAndMakeVisible (label.get()); addAndMakeVisible (label.get());
label->setFont (Font (17.00f, Font::plain).withTypefaceStyle ("Regular")); label->setFont (juce::Font (17.00f, juce::Font::plain).withTypefaceStyle ("Regular"));
label->setJustificationType (Justification::centredLeft); label->setJustificationType (juce::Justification::centredLeft);
label->setEditable (false, false, false); label->setEditable (false, false, false);
label->setColour (TextEditor::textColourId, Colours::black); label->setColour (juce::TextEditor::textColourId, juce::Colours::black);
label->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); label->setColour (juce::TextEditor::backgroundColourId, juce::Colour (0x00000000));
label->setBounds (0, 4, 150, 22); label->setBounds (0, 4, 150, 22);
@ -77,7 +77,7 @@ SweepParamsComponent::~SweepParamsComponent()
} }
//============================================================================== //==============================================================================
void SweepParamsComponent::paint (Graphics& g) void SweepParamsComponent::paint (juce::Graphics& g)
{ {
//[UserPrePaint] Add your own custom painting code here.. //[UserPrePaint] Add your own custom painting code here..
//[/UserPrePaint] //[/UserPrePaint]

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -39,13 +39,13 @@ class SweepParamsComponent : public Component
public: public:
//============================================================================== //==============================================================================
SweepParamsComponent (Magical8bitPlug2AudioProcessor& p); SweepParamsComponent (Magical8bitPlug2AudioProcessor& p);
~SweepParamsComponent(); ~SweepParamsComponent() override;
//============================================================================== //==============================================================================
//[UserMethods] -- You can add your own custom methods in this section. //[UserMethods] -- You can add your own custom methods in this section.
//[/UserMethods] //[/UserMethods]
void paint (Graphics& g) override; void paint (juce::Graphics& g) override;
void resized() override; void resized() override;
@ -55,7 +55,7 @@ private:
//[/UserVariables] //[/UserVariables]
//============================================================================== //==============================================================================
std::unique_ptr<Label> label; std::unique_ptr<juce::Label> label;
std::unique_ptr<SliderComponent> iniPitchSlider; std::unique_ptr<SliderComponent> iniPitchSlider;
std::unique_ptr<SliderComponent> timeSlider; std::unique_ptr<SliderComponent> timeSlider;

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -32,14 +32,14 @@ VibratoParamsComponent::VibratoParamsComponent (Magical8bitPlug2AudioProcessor&
//[Constructor_pre] You can add your own custom stuff here.. //[Constructor_pre] You can add your own custom stuff here..
//[/Constructor_pre] //[/Constructor_pre]
label.reset (new Label ("label", label.reset (new juce::Label ("label",
TRANS("Vibrato"))); TRANS("Vibrato")));
addAndMakeVisible (label.get()); addAndMakeVisible (label.get());
label->setFont (Font (17.00f, Font::plain).withTypefaceStyle ("Regular")); label->setFont (juce::Font (17.00f, juce::Font::plain).withTypefaceStyle ("Regular"));
label->setJustificationType (Justification::centredLeft); label->setJustificationType (juce::Justification::centredLeft);
label->setEditable (false, false, false); label->setEditable (false, false, false);
label->setColour (TextEditor::textColourId, Colours::black); label->setColour (juce::TextEditor::textColourId, juce::Colours::black);
label->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); label->setColour (juce::TextEditor::backgroundColourId, juce::Colour (0x00000000));
label->setBounds (0, 4, 150, 22); label->setBounds (0, 4, 150, 22);
@ -87,7 +87,7 @@ VibratoParamsComponent::~VibratoParamsComponent()
} }
//============================================================================== //==============================================================================
void VibratoParamsComponent::paint (Graphics& g) void VibratoParamsComponent::paint (juce::Graphics& g)
{ {
//[UserPrePaint] Add your own custom painting code here.. //[UserPrePaint] Add your own custom painting code here..
//[/UserPrePaint] //[/UserPrePaint]

View File

@ -7,12 +7,12 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved. and re-saved.
Created with Projucer version: 5.4.5 Created with Projucer version: 6.0.8
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
The Projucer is part of the JUCE library. The Projucer is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd. Copyright (c) 2020 - Raw Material Software Limited.
============================================================================== ==============================================================================
*/ */
@ -40,13 +40,13 @@ class VibratoParamsComponent : public Component
public: public:
//============================================================================== //==============================================================================
VibratoParamsComponent (Magical8bitPlug2AudioProcessor& p); VibratoParamsComponent (Magical8bitPlug2AudioProcessor& p);
~VibratoParamsComponent(); ~VibratoParamsComponent() override;
//============================================================================== //==============================================================================
//[UserMethods] -- You can add your own custom methods in this section. //[UserMethods] -- You can add your own custom methods in this section.
//[/UserMethods] //[/UserMethods]
void paint (Graphics& g) override; void paint (juce::Graphics& g) override;
void resized() override; void resized() override;
@ -56,7 +56,7 @@ private:
//[/UserVariables] //[/UserVariables]
//============================================================================== //==============================================================================
std::unique_ptr<Label> label; std::unique_ptr<juce::Label> label;
std::unique_ptr<SliderComponent> ratioSlider; std::unique_ptr<SliderComponent> ratioSlider;
std::unique_ptr<SliderComponent> depthSlider; std::unique_ptr<SliderComponent> depthSlider;
std::unique_ptr<SliderComponent> delaySlider; std::unique_ptr<SliderComponent> delaySlider;