comparison src/PeakProcessor.h @ 8:184a7c232049 tip

changed files since updating computer
author Venetian
date Thu, 14 Aug 2014 17:53:57 +0100
parents 7ec1ed0b2eb0
children
comparison
equal deleted inserted replaced
7:b1c13e8bec26 8:184a7c232049
16 class PeakProcessor{ 16 class PeakProcessor{
17 public: 17 public:
18 18
19 PeakProcessor(); 19 PeakProcessor();
20 ~PeakProcessor(); 20 ~PeakProcessor();
21
22 void initialise();
23 void reset();
24
21 //peak processing requires 25 //peak processing requires
22 static const int vectorSize = 512/6; 26 static const int vectorSize = 512/6;
23 vector<double> recentDFsamples; 27 vector<double> recentDFsamples;
24 vector<bool> recentDFonsetFound; 28 vector<bool> recentDFonsetFound;
25 vector<double> recentDFslopeValues; 29 vector<double> recentDFslopeValues;
32 void updateDetectionTriggerThreshold(const float& val); 36 void updateDetectionTriggerThreshold(const float& val);
33 float detectionTriggerThreshold, detectionTriggerRatio; 37 float detectionTriggerThreshold, detectionTriggerRatio;
34 float bestSlopeMedian, thresholdRelativeToMedian; 38 float bestSlopeMedian, thresholdRelativeToMedian;
35 bool newOnsetFound, slopeFallenBelowMedian; 39 bool newOnsetFound, slopeFallenBelowMedian;
36 40
37 41 float minimumThreshold;
38 42
39 }; 43 };
40 #endif 44 #endif