-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdrawerdp.h
55 lines (46 loc) · 1.76 KB
/
drawerdp.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
#ifndef DRAWERDP_H
#define DRAWERDP_H
#include "defines.h"
#include "drawer.h"
#include "dp/continuousdp.h"
class DrawerDP : public Drawer
{
public:
DrawerDP();
virtual ~DrawerDP();
virtual int Draw(mglGraph *gr);
void Proc(QString fname, bool ref = false);
virtual void reProc();
virtual int getDataSeconds();
private:
QString getMarksTitle();
protected:
bool first;
QString secFileName;
QList<double> umpSectors;
mglData *dpData, *secWaveData, *errorData, *timeData, *secPitchData, *secPitchDataDerivative,
*secIntensiveData, *umpData, *secUmpData, *umpDerivativeData, *secUmpDerivativeData, *umpMask,
*octavData, *secOctavData, *secOctavesData, *secOctavesLastData, *secPlaneData;
mglData *pSecData, *nSecData, *tSecData;
mglData *A0Smooth, *secA0Smooth;
QList<mglData> umpDataHistory;
QList<vector> umpHistory;
QList<double> secOctaves;
int errorMax, errorMin;
double proximity_shape_mark, proximity_range_mark;
double secPitchDataDerivativeZero;
int f0min, f0max;
int userf0min, userf0max;
double range, userRange;
double meanValueUMP, userMeanValueUMP;
double meanDerivativeValueUMP, userDerivativeMeanValueUMP;
double centricGravityUMP, userCentricGravityUMP;
double centricGravityUMP1, userCentricGravityUMP1;
double centricGravityUMP2, userCentricGravityUMP2;
double centricGravityDerivativeUMP, userCentricGravityDerivativeUMP;
double centricGravityDerivativeUMP1, userCentricGravityDerivativeUMP1;
double centricGravityDerivativeUMP2, userCentricGravityDerivativeUMP2;
SimpleGraphData * simple_data;
ContinuousDP * getDP(SimpleGraphData * dataSec, bool ref);
};
#endif // DRAWERDP_H