-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathPluginEditor.cpp
More file actions
54 lines (38 loc) · 1.78 KB
/
PluginEditor.cpp
File metadata and controls
54 lines (38 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
==============================================================================
This file was auto-generated!
It contains the basic framework code for a JUCE plugin editor.
==============================================================================
*/
#include "PluginProcessor.h"
#include "PluginEditor.h"
//==============================================================================
JuceSynthFrameworkAudioProcessorEditor::JuceSynthFrameworkAudioProcessorEditor (JuceSynthFrameworkAudioProcessor& p)
: AudioProcessorEditor (&p), processor (p), oscGui(p), osc2Gui(p), envGui(p), filterGui(p), frontGui(p)
{
setSize (1000, 200);
addAndMakeVisible(&oscGui);
addAndMakeVisible(&osc2Gui);
addAndMakeVisible(&envGui);
addAndMakeVisible(&filterGui);
addAndMakeVisible(&frontGui);
}
JuceSynthFrameworkAudioProcessorEditor::~JuceSynthFrameworkAudioProcessorEditor()
{
}
//==============================================================================
void JuceSynthFrameworkAudioProcessorEditor::paint (Graphics& g)
{
g.fillAll(Colours::black);
}
void JuceSynthFrameworkAudioProcessorEditor::resized()
{
juce::Rectangle<int> area = getLocalBounds();
const int componentWidth = 200;
const int componentHeight = 200;
oscGui.setBounds(area.removeFromLeft(componentWidth).removeFromTop(componentHeight));
osc2Gui.setBounds(area.removeFromLeft(componentWidth).removeFromTop(componentHeight));
filterGui.setBounds(area.removeFromLeft(componentWidth).removeFromTop(componentHeight));
envGui.setBounds(area.removeFromLeft(componentWidth).removeFromTop(componentHeight));
frontGui.setBounds(area.removeFromLeft(componentWidth).removeFromTop(componentHeight));
}