-
Notifications
You must be signed in to change notification settings - Fork 7
/
rmsbuddyeditor-vst.h
54 lines (42 loc) · 1.41 KB
/
rmsbuddyeditor-vst.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
/*----------------------- by Sophia Poirier ][ June 2001 ----------------------*/
#ifndef _DFX_RMSBUDDYEDITOR_VST_H
#define _DFX_RMSBUDDYEDITOR_VST_H
#include "vstgui.h"
//-----------------------------------------------------------------------------
class RMSbuddyEditor : public AEffGUIEditor, public CControlListener
{
public:
RMSbuddyEditor(AudioEffect *effect);
virtual ~RMSbuddyEditor();
protected:
virtual long getRect(ERect **rect);
virtual long open(void *ptr);
virtual void close();
virtual void valueChanged(CDrawContext* context, CControl* control);
virtual void idle();
private:
// controls
CKickButton *resetRMSbutton;
CKickButton *resetPeakButton;
// parameter value display boxes
CParamDisplay *backgroundDisplay;
CParamDisplay *leftAverageRMSDisplay;
CParamDisplay *rightAverageRMSDisplay;
CParamDisplay *leftContinualRMSDisplay;
CParamDisplay *rightContinualRMSDisplay;
CParamDisplay *leftAbsolutePeakDisplay;
CParamDisplay *rightAbsolutePeakDisplay;
CParamDisplay *leftContinualPeakDisplay;
CParamDisplay *rightContinualPeakDisplay;
CParamDisplay *averageRMSDisplay;
CParamDisplay *continualRMSDisplay;
CParamDisplay *absolutePeakDisplay;
CParamDisplay *continualPeakDisplay;
CParamDisplay *leftDisplay;
CParamDisplay *rightDisplay;
// graphics
CBitmap *gResetButton;
float theLeftContinualRMS, theRightContinualRMS;
float theLeftContinualPeak, theRightContinualPeak;
};
#endif