Mercurial > hg > tony
comparison src/Analyser.h @ 167:6b6906017536
Choose a different pitch candidate within selection by hitting Return
author | Chris Cannam |
---|---|
date | Mon, 03 Feb 2014 17:04:03 +0000 |
parents | ebcfb8dce020 |
children | c5e4eaeb9a27 |
comparison
equal
deleted
inserted
replaced
165:ebcfb8dce020 | 167:6b6906017536 |
---|---|
88 * candidate layers for the region it contains. Returns "" on | 88 * candidate layers for the region it contains. Returns "" on |
89 * success or a user-readable error string on failure. | 89 * success or a user-readable error string on failure. |
90 */ | 90 */ |
91 QString reAnalyseSelection(Selection sel); | 91 QString reAnalyseSelection(Selection sel); |
92 | 92 |
93 /** | |
94 * If a re-analysis has been activated, switch the selected area | |
95 * of the main pitch track to a different candidate from the | |
96 * analysis results. | |
97 */ | |
98 void switchPitchCandidate(Selection sel, bool up); | |
99 | |
100 /** | |
101 * Remove any re-analysis layers. | |
102 */ | |
103 void clearReAnalysis(); | |
104 | |
93 signals: | 105 signals: |
94 void layersChanged(); | 106 void layersChanged(); |
95 | 107 |
96 protected: | 108 protected: |
97 Document *m_document; | 109 Document *m_document; |
101 | 113 |
102 mutable std::map<Component, Layer *> m_layers; | 114 mutable std::map<Component, Layer *> m_layers; |
103 | 115 |
104 Selection m_reAnalysingSelection; | 116 Selection m_reAnalysingSelection; |
105 std::vector<Layer *> m_reAnalysisCandidates; | 117 std::vector<Layer *> m_reAnalysisCandidates; |
118 int m_currentCandidate; | |
106 | 119 |
107 QString addVisualisations(); | 120 QString addVisualisations(); |
108 QString addWaveform(); | 121 QString addWaveform(); |
109 QString addAnalyses(); | 122 QString addAnalyses(); |
110 | 123 |