changeset 764:6388ddae6ce3 tonioni

added note pitch snapping after "move" edit
author matthiasm
date Fri, 11 Apr 2014 16:34:12 +0100
parents b75c95e7f906
children 410816717c2c 986f1670a502 8c2dfb4d6c7a
files layer/FlexiNoteLayer.cpp
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
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);