Mercurial > hg > tony
comparison src/Analyser.h @ 403:cc33cdb114f6
Merge from cxx11 branch
author | Chris Cannam |
---|---|
date | Mon, 23 Mar 2015 11:26:28 +0000 |
parents | a0eedd10dee3 |
children | 3f0b44418a19 |
comparison
equal
deleted
inserted
replaced
401:1610b2b03203 | 403:cc33cdb114f6 |
---|---|
53 // Discard any layers etc associated with the current document | 53 // Discard any layers etc associated with the current document |
54 void fileClosed(); | 54 void fileClosed(); |
55 | 55 |
56 void setIntelligentActions(bool); | 56 void setIntelligentActions(bool); |
57 | 57 |
58 bool getDisplayFrequencyExtents(float &min, float &max); | 58 bool getDisplayFrequencyExtents(double &min, double &max); |
59 bool setDisplayFrequencyExtents(float min, float max); | 59 bool setDisplayFrequencyExtents(double min, double max); |
60 | 60 |
61 // Return completion %age for initial analysis -- 100 means it's done | 61 // Return completion %age for initial analysis -- 100 means it's done |
62 int getInitialAnalysisCompletion(); | 62 int getInitialAnalysisCompletion(); |
63 | 63 |
64 enum Component { | 64 enum Component { |
98 void setGain(Component c, float gain); | 98 void setGain(Component c, float gain); |
99 | 99 |
100 float getPan(Component c) const; | 100 float getPan(Component c) const; |
101 void setPan(Component c, float pan); | 101 void setPan(Component c, float pan); |
102 | 102 |
103 void getEnclosingSelectionScope(int f, int &f0, int &f1); | 103 void getEnclosingSelectionScope(sv_frame_t f, sv_frame_t &f0, sv_frame_t &f1); |
104 | 104 |
105 struct FrequencyRange { | 105 struct FrequencyRange { |
106 FrequencyRange() : min(0), max(0) { } | 106 FrequencyRange() : min(0), max(0) { } |
107 FrequencyRange(float min_, float max_) : min(min_), max(max_) { } | 107 FrequencyRange(double min_, double max_) : min(min_), max(max_) { } |
108 bool isConstrained() const { return min != max; } | 108 bool isConstrained() const { return min != max; } |
109 float min; | 109 double min; |
110 float max; | 110 double max; |
111 bool operator==(const FrequencyRange &r) { | 111 bool operator==(const FrequencyRange &r) { |
112 return min == r.min && max == r.max; | 112 return min == r.min && max == r.max; |
113 } | 113 } |
114 }; | 114 }; |
115 | 115 |
216 void initialAnalysisCompleted(); | 216 void initialAnalysisCompleted(); |
217 | 217 |
218 protected slots: | 218 protected slots: |
219 void layerAboutToBeDeleted(Layer *); | 219 void layerAboutToBeDeleted(Layer *); |
220 void layerCompletionChanged(); | 220 void layerCompletionChanged(); |
221 void reAnalyseRegion(int, int, float, float); | 221 void reAnalyseRegion(sv_frame_t, sv_frame_t, float, float); |
222 void materialiseReAnalysis(); | 222 void materialiseReAnalysis(); |
223 | 223 |
224 protected: | 224 protected: |
225 Document *m_document; | 225 Document *m_document; |
226 WaveFileModel *m_fileModel; | 226 WaveFileModel *m_fileModel; |