/* ============================================================================== This is an automatically generated GUI class created by the Projucer! Be careful when adding custom code to these files, as only the code within the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded and re-saved. Created with Projucer version: 6.0.8 ------------------------------------------------------------------------------ The Projucer is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited. ============================================================================== */ //[Headers] You can add your own extra header files here... //[/Headers] #include "AdvancedParamsComponent.h" //[MiscUserDefs] You can add your own user definitions and misc code here... //[/MiscUserDefs] //============================================================================== AdvancedParamsComponent::AdvancedParamsComponent (Magical8bitPlug2AudioProcessor& p) : processor(p) { //[Constructor_pre] You can add your own custom stuff here.. //[/Constructor_pre] volumeCompo.reset (new CustomEnvelopeComponent (p, "volume", "Volume", "isVolumeSequenceEnabled_raw")); addAndMakeVisible (volumeCompo.get()); volumeCompo->setName ("volume component"); label5.reset (new juce::Label ("new label", TRANS("Custom Envelopes"))); addAndMakeVisible (label5.get()); label5->setFont (juce::Font (17.00f, juce::Font::plain).withTypefaceStyle ("Regular")); label5->setJustificationType (juce::Justification::centredLeft); label5->setEditable (false, false, false); label5->setColour (juce::TextEditor::textColourId, juce::Colours::black); label5->setColour (juce::TextEditor::backgroundColourId, juce::Colour (0x00000000)); label5->setBounds (0, 4, 150, 24); pitchCompo.reset (new CustomEnvelopeComponent (p, "pitch", "Pitch", "isPitchSequenceEnabled_raw")); addAndMakeVisible (pitchCompo.get()); pitchCompo->setName ("pitch component"); dutyCompo.reset (new CustomEnvelopeComponent (p, "duty", "Duty", "isDutySequenceEnabled_raw")); addAndMakeVisible (dutyCompo.get()); dutyCompo->setName ("duty component"); coarseOrFineChoice.reset (new ChoiceComponent (p, "pitchSequenceMode_raw", "Resolution")); addAndMakeVisible (coarseOrFineChoice.get()); coarseOrFineChoice->setName ("Coarse or fine"); //[UserPreSize] //[/UserPreSize] setSize (700, 216); //[Constructor] You can add your own custom stuff here.. p.settingRefs.volumeSequenceListener = (FrameSequenceChangeListener*)volumeCompo.get(); p.settingRefs.pitchSequenceListener = (FrameSequenceChangeListener*)pitchCompo.get(); p.settingRefs.dutySequenceListener = (FrameSequenceChangeListener*)dutyCompo.get(); //[/Constructor] } AdvancedParamsComponent::~AdvancedParamsComponent() { //[Destructor_pre]. You can add your own custom destruction code here.. //[/Destructor_pre] volumeCompo = nullptr; label5 = nullptr; pitchCompo = nullptr; dutyCompo = nullptr; coarseOrFineChoice = nullptr; //[Destructor]. You can add your own custom destruction code here.. //[/Destructor] } //============================================================================== void AdvancedParamsComponent::paint (juce::Graphics& g) { //[UserPrePaint] Add your own custom painting code here.. //[/UserPrePaint] //[UserPaint] Add your own custom painting code here.. //[/UserPaint] } void AdvancedParamsComponent::resized() { //[UserPreResize] Add your own custom resize code here.. //[/UserPreResize] volumeCompo->setBounds (0, 26, getWidth() - 160, 56); pitchCompo->setBounds (0, 82, getWidth() - 204, 56); dutyCompo->setBounds (0, 138, getWidth() - 160, 56); coarseOrFineChoice->setBounds (getWidth() - 4 - 200, 86, 200, 28); //[UserResized] Add your own custom resize handling here.. //[/UserResized] } //[MiscUserCode] You can add your own definitions of your custom methods or any other code here... //[/MiscUserCode] //============================================================================== #if 0 /* -- Projucer information section -- This is where the Projucer stores the metadata that describe this GUI layout, so make changes in here at your peril! BEGIN_JUCER_METADATA END_JUCER_METADATA */ #endif //[EndFile] You can add extra defines here... //[/EndFile]