comparison layer/FlexiNoteLayer.cpp @ 764:6388ddae6ce3 tonioni

added note pitch snapping after "move" edit
author matthiasm
date Fri, 11 Apr 2014 16:34:12 +0100
parents 09e2677e34e7
children 8c2dfb4d6c7a
comparison
equal deleted inserted replaced
762:b75c95e7f906 764:6388ddae6ce3
1139 m_editingPoint.frame = dragFrame; 1139 m_editingPoint.frame = dragFrame;
1140 m_editingPoint.value = value; 1140 m_editingPoint.value = value;
1141 break; 1141 break;
1142 } 1142 }
1143 } 1143 }
1144 updateNoteValue(v, m_editingPoint);
1144 m_editingCommand->addPoint(m_editingPoint); 1145 m_editingCommand->addPoint(m_editingPoint);
1145 std::cerr << "added new point(" << m_editingPoint.frame << "," << m_editingPoint.duration << ")" << std::endl; 1146 std::cerr << "added new point(" << m_editingPoint.frame << "," << m_editingPoint.duration << ")" << std::endl;
1146 1147
1147 } 1148 }
1148 1149
1352 1353
1353 FlexiNote newNote(note); 1354 FlexiNote newNote(note);
1354 1355
1355 command->deletePoint(note); 1356 command->deletePoint(note);
1356 1357
1357 if (updateNoteValue(v, newNote)) { 1358
1358 command->addPoint(newNote);
1359 }
1360 } 1359 }
1361 1360
1362 finish(command); 1361 finish(command);
1363 } 1362 }
1364 1363