-
Notifications
You must be signed in to change notification settings - Fork 0
/
PluginEditor.h
52 lines (40 loc) · 1.49 KB
/
PluginEditor.h
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
/*
==============================================================================
This file contains the basic framework code for a JUCE plugin editor.
==============================================================================
*/
#pragma once
#include <JuceHeader.h>
#include "PluginProcessor.h"
#include "Components/HorizontalMeter.h"
//==============================================================================
/**
*/
class LlcdistortionAudioProcessorEditor :
public
juce::AudioProcessorEditor,
juce::Timer,
private
juce::ComboBox::Listener,
juce::Slider::Listener
{
public:
LlcdistortionAudioProcessorEditor (LlcdistortionAudioProcessor&);
~LlcdistortionAudioProcessorEditor() override;
//==============================================================================
void paint (juce::Graphics&) override;
void resized() override;
void timerCallback() override;
private:
void comboBoxChanged(juce::ComboBox* comboBox) override;
void sliderValueChanged(juce::Slider* slider) override;
// This reference is provided as a quick way for your editor to
// access the processor object that created it.
LlcdistortionAudioProcessor& audioProcessor;
juce::ComboBox distortionPicker;
juce::Slider preAmpSlider;
juce::Slider thresholdSlider;
juce::Slider mixSlider;
Gui::HorizontalMeter horizontalMeterL, horizontalMeterR;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LlcdistortionAudioProcessorEditor)
};