diff 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
line wrap: on
line diff
--- a/layer/FlexiNoteLayer.cpp	Thu Apr 03 08:51:30 2014 +0100
+++ b/layer/FlexiNoteLayer.cpp	Fri Apr 11 16:34:12 2014 +0100
@@ -1141,6 +1141,7 @@
         break;
     }
     }
+    updateNoteValue(v, m_editingPoint);
     m_editingCommand->addPoint(m_editingPoint);
     std::cerr << "added new point(" << m_editingPoint.frame << "," << m_editingPoint.duration << ")" << std::endl;
     
@@ -1354,9 +1355,7 @@
 
         command->deletePoint(note);
 
-        if (updateNoteValue(v, newNote)) {
-            command->addPoint(newNote);
-        }
+
     }
     
     finish(command);