diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-12-19 20:31:30 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-12-19 20:31:30 +0000 |
commit | 2b8fc2a43b155d9a22d68554508181dd0894b69d (patch) | |
tree | 7540d4c24c9e5504846b580469731b7169d91498 /gtk2_ardour/midi_region_view.cc | |
parent | 5a23ede9ece9ab49bce67ff4d341639d349be392 (diff) |
keep velocity value visible in verbose cursor until we leave a note (fixes #5085)
git-svn-id: svn://localhost/ardour2/branches/3.0@13687 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_region_view.cc')
-rw-r--r-- | gtk2_ardour/midi_region_view.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc index ac982a3040..eb94989fb0 100644 --- a/gtk2_ardour/midi_region_view.cc +++ b/gtk2_ardour/midi_region_view.cc @@ -2935,8 +2935,8 @@ MidiRegionView::change_velocities (bool up, bool fine, bool allow_smush, bool al if (!allow_smush) { for (Selection::iterator i = _selection.begin(); i != _selection.end(); ++i) { - if ((*i)->note()->velocity() + delta == 0 || (*i)->note()->velocity() + delta == 127) { - return; + if ((*i)->note()->velocity() < -delta || (*i)->note()->velocity() + delta > 127) { + goto cursor_label; } } } @@ -2964,6 +2964,7 @@ MidiRegionView::change_velocities (bool up, bool fine, bool allow_smush, bool al apply_diff(); + cursor_label: if (!_selection.empty()) { char buf[24]; snprintf (buf, sizeof (buf), "Vel %d", |