Mercurial > hg > tony
diff src/Analyser.cpp @ 398:6f7133733032
Make the dragged pitch take effect when releasing drag on a note
author | Chris Cannam |
---|---|
date | Tue, 11 Nov 2014 17:05:44 +0000 |
parents | f76adae8fe5e |
children | a0eedd10dee3 |
line wrap: on
line diff
--- a/src/Analyser.cpp Tue Nov 11 16:34:22 2014 +0000 +++ b/src/Analyser.cpp Tue Nov 11 17:05:44 2014 +0000 @@ -422,6 +422,8 @@ this, SLOT(layerCompletionChanged())); connect(flexiNoteLayer, SIGNAL(reAnalyseRegion(int, int, float, float)), this, SLOT(reAnalyseRegion(int, int, float, float))); + connect(flexiNoteLayer, SIGNAL(materialiseReAnalysis()), + this, SLOT(materialiseReAnalysis())); } return ""; @@ -437,6 +439,13 @@ FrequencyRange(freq0, freq1)); } +void +Analyser::materialiseReAnalysis() +{ + if (m_reAnalysingSelection.isEmpty()) return; + switchPitchCandidate(m_reAnalysingSelection, true); // or false, doesn't matter +} + QString Analyser::reAnalyseSelection(Selection sel, FrequencyRange range) {