-
Notifications
You must be signed in to change notification settings - Fork 0
/
PluginEditor.h
74 lines (51 loc) · 1.76 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
==============================================================================
This file was auto-generated!
It contains the basic framework code for a JUCE plugin editor.
==============================================================================
*/
#pragma once
#include <JuceHeader.h>
#include "PluginProcessor.h"
//==============================================================================
/**
*/
class VolumeReaderAudioProcessorEditor : public AudioProcessorEditor, public FileDragAndDropTarget
{
public:
VolumeReaderAudioProcessorEditor (VolumeReaderAudioProcessor&);
~VolumeReaderAudioProcessorEditor();
//==============================================================================
void paint (Graphics&) override;
void resized() override;
bool isInterestedInFileDrag (const StringArray& files) override;
void filesDropped (const StringArray& files, int x, int y) override;
private:
//array to hold values to draw waveform
std::vector<float> myAudioPoints;
//values to read
float RMS;
String RMSText;
float RMSDB;
String RMSDBText;
int peakCountL;
int peakCountR;
float time;
float peakL;
float peakR;
String peakTextL;
String peakTextR;
//values for wideness
float thisL;
float thisR;
float diffTotal;
float diffReal;
float widenessSumTotal;
float widenssAvgTotal;
String widenessTextTotal;
float widenessSumReal;
float widenssAvgReal;
String widenessTextReal;
VolumeReaderAudioProcessor& processor;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (VolumeReaderAudioProcessorEditor)
};