-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPluginEditor.h
More file actions
55 lines (41 loc) · 1.88 KB
/
PluginEditor.h
File metadata and controls
55 lines (41 loc) · 1.88 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
/*
==============================================================================
This class describes the GUI of Fuzzed.
==============================================================================
*/
#ifndef PLUGINEDITOR_H_INCLUDED
#define PLUGINEDITOR_H_INCLUDED
#include "../JuceLibraryCode/JuceHeader.h"
#include "PluginProcessor.h"
#include "MyLookAndFeel.h"
//==============================================================================
/**
*/
class FuzzFaceJuceAudioProcessorEditor : public AudioProcessorEditor, private Timer
{
public:
FuzzFaceJuceAudioProcessorEditor (FuzzFaceJuceAudioProcessor&);
~FuzzFaceJuceAudioProcessorEditor();
//==============================================================================
void paint (Graphics&) override;
void resized() override;
void timerCallback() override;
private:
class ParameterSlider; //class for controlling parameters
Label volLabel, fuzzLabel, gainLabel; //Labels for the fuzz and vol params + gainLabel
//Create a scoped pointer to the custom look and feel class used for custom UI
ScopedPointer<MyLookAndFeel> paramLookAndFeel;
ScopedPointer<MyLookAndFeel> gainLookAndFeel;
//Creates pointers for volSlider and fuzzSlider which are automatically deleted once out of scope + gainSlider
ScopedPointer<ParameterSlider> volSlider, fuzzSlider, gainSlider;
//Set up the requirements for the metering
ScopedPointer<MyLookAndFeel> meterLookAndFeel;
ScopedPointer<Slider> meterSlider;
double readingSmooth; //smoothed reading value
double smoothingCoeff; //the smoothing coefficient used for parameter smoothing of the VU meter
// This reference is provided as a quick way for your editor to
// access the processor object that created it.
FuzzFaceJuceAudioProcessor& processor;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FuzzFaceJuceAudioProcessorEditor)
};
#endif // PLUGINEDITOR_H_INCLUDED