diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-09-15 16:54:17 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-09-15 16:54:17 +0000 |
commit | 7eea9fac9d23cdb2a6b39c2fbd4b680fafb40a5c (patch) | |
tree | 5ad9cb4d1afd63e022d54280d8c47876015b4c31 /gtk2_ardour/editor_drag.cc | |
parent | 5f948f6961c948831e259c06de9821369d46f794 (diff) |
cleaner version of previous commit
git-svn-id: svn://localhost/ardour2/branches/3.0@7783 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 35183c59f5..14b0bd83d3 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -3715,21 +3715,15 @@ NoteDrag::motion (GdkEvent *, bool) double const tdy = dy * _note_height - _cumulative_dy; if (tdx || tdy) { - _region->move_selection (tdx, tdy); _cumulative_dx += tdx; _cumulative_dy += tdy; + _region->move_selection (tdx, tdy, _cumulative_dy); + char buf[12]; snprintf (buf, sizeof (buf), "%s (%d)", Evoral::midi_note_name (_primary->note()->note() + dy).c_str(), (int) floor (_primary->note()->note() + dy)); - if (dy) { - boost::shared_ptr<Evoral::Note<Evoral::MusicalTime> > - moved_note (new Evoral::Note<Evoral::MusicalTime> (*(_primary->note()))); - moved_note->set_note (moved_note->note() + dy); - _region->play_midi_note (moved_note); - } - _editor->show_verbose_canvas_cursor_with (buf); } } |