# HG changeset patch # User Chris Cannam # Date 1415725544 0 # Node ID b62c2785ed8333c4c876e54bcdde86991bdec6d7 # Parent 0e674f1bbf08b8065391c3d816b5c11a87069059 Make the dragged pitch take effect when releasing drag on a note diff -r 0e674f1bbf08 -r b62c2785ed83 layer/FlexiNoteLayer.cpp --- a/layer/FlexiNoteLayer.cpp Tue Nov 11 14:11:07 2014 +0000 +++ b/layer/FlexiNoteLayer.cpp Tue Nov 11 17:05:44 2014 +0000 @@ -1200,6 +1200,11 @@ QString newName = m_editingCommand->getName(); + if (m_editMode == DragNote) { + //!!! command nesting is wrong? + emit materialiseReAnalysis(); + } + m_editingCommand->deletePoint(m_editingPoint); updateNoteValueFromPitchCurve(v, m_editingPoint); m_editingCommand->addPoint(m_editingPoint); diff -r 0e674f1bbf08 -r b62c2785ed83 layer/FlexiNoteLayer.h --- a/layer/FlexiNoteLayer.h Tue Nov 11 14:11:07 2014 +0000 +++ b/layer/FlexiNoteLayer.h Tue Nov 11 17:05:44 2014 +0000 @@ -165,6 +165,7 @@ signals: void reAnalyseRegion(int, int, float, float); + void materialiseReAnalysis(); protected: void getScaleExtents(View *, float &min, float &max, bool &log) const;