Mercurial > hg > tony
comparison src/MainWindow.cpp @ 274:a895c7177841
added note pitch snapping after "move" edit
author | matthiasm |
---|---|
date | Fri, 11 Apr 2014 16:34:12 +0100 |
parents | e33aa832e766 |
children | 2c19b0537bd2 |
comparison
equal
deleted
inserted
replaced
273:29005aa146e2 | 274:a895c7177841 |
---|---|
2166 } | 2166 } |
2167 | 2167 |
2168 void | 2168 void |
2169 MainWindow::snapNotesToPitches() | 2169 MainWindow::snapNotesToPitches() |
2170 { | 2170 { |
2171 cerr << "in snapNotesToPitches" << endl; | |
2171 MultiSelection::SelectionList selections = m_viewManager->getSelections(); | 2172 MultiSelection::SelectionList selections = m_viewManager->getSelections(); |
2172 | 2173 |
2173 if (!selections.empty()) { | 2174 if (!selections.empty()) { |
2174 | 2175 |
2175 CommandHistory::getInstance()->startCompoundOperation | 2176 CommandHistory::getInstance()->startCompoundOperation |
2185 } | 2186 } |
2186 | 2187 |
2187 void | 2188 void |
2188 MainWindow::auxSnapNotes(Selection s) | 2189 MainWindow::auxSnapNotes(Selection s) |
2189 { | 2190 { |
2191 cerr << "in auxSnapNotes" << endl; | |
2190 FlexiNoteLayer *layer = | 2192 FlexiNoteLayer *layer = |
2191 qobject_cast<FlexiNoteLayer *>(m_analyser->getLayer(Analyser::Notes)); | 2193 qobject_cast<FlexiNoteLayer *>(m_analyser->getLayer(Analyser::Notes)); |
2192 if (!layer) return; | 2194 if (!layer) return; |
2193 | 2195 |
2194 layer->snapSelectedNotesToPitchTrack(m_analyser->getPane(), s); | 2196 layer->snapSelectedNotesToPitchTrack(m_analyser->getPane(), s); |