-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPluginEditor.h
More file actions
87 lines (69 loc) · 2.85 KB
/
Copy pathPluginEditor.h
File metadata and controls
87 lines (69 loc) · 2.85 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
==============================================================================
This file contains the basic framework code for a JUCE plugin editor.
==============================================================================
*/
#pragma once
#include <JuceHeader.h>
#include "GUI/LookAndFeel.h"
#include "GUI/CustomButtons.h"
#include "GUI/RotarySliderWithLabels.h"
#include "GUI/ResponseCurveComponent.h"
#include "PluginProcessor.h"
//==============================================================================
/**
*/
class SimpleEQAudioProcessorEditor : public juce::AudioProcessorEditor
{
public:
SimpleEQAudioProcessorEditor (SimpleEQAudioProcessor&);
~SimpleEQAudioProcessorEditor() override;
//==============================================================================
void paint (juce::Graphics&) override;
void resized() override;
private:
// This reference is provided as a quick way for your editor to
// access the processor object that created it.
SimpleEQAudioProcessor& audioProcessor;
RotarySliderWithLabels peak1FreqSlider,
peak1GainSlider,
peak1QualitySlider,
peak2FreqSlider,
peak2GainSlider,
peak2QualitySlider,
peak3FreqSlider,
peak3GainSlider,
peak3QualitySlider,
lowCutFreqSlider,
highCutFreqSlider,
lowCutSlopeSlider,
highCutSlopeSlider;
ResponseCurveComponent responseCurveComponent;
using APVTS = juce::AudioProcessorValueTreeState;
using Attachment = APVTS::SliderAttachment;
Attachment peak1FreqSliderAttachment,
peak1GainSliderAttachment,
peak1QualitySliderAttachment,
peak2FreqSliderAttachment,
peak2GainSliderAttachment,
peak2QualitySliderAttachment,
peak3FreqSliderAttachment,
peak3GainSliderAttachment,
peak3QualitySliderAttachment,
lowCutFreqSliderAttachment,
highCutFreqSliderAttachment,
lowCutSlopeSliderAttachment,
highCutSlopeSliderAttachment;
std::vector<juce::Component*> getComps();
PowerButton lowcutBypassButton, peak1BypassButton, peak2BypassButton, peak3BypassButton, highcutBypassButton;
AnalyzerButton analyzerEnabledButton;
using ButtonAttachment = APVTS::ButtonAttachment;
ButtonAttachment lowcutBypassButtonAttachment,
peak1BypassButtonAttachment,
peak2BypassButtonAttachment,
peak3BypassButtonAttachment,
highcutBypassButtonAttachment,
analyzerEnabledButtonAttachment;
LookAndFeel lnf;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (SimpleEQAudioProcessorEditor)
};