diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2016-02-10 22:55:37 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2016-02-11 08:17:18 +1000 |
commit | 90e35c7143b09669497370df33b8056275cede22 (patch) | |
tree | bea9746d986204d18c47373bdff27410d65fa299 /gtk2_ardour/editor_drag.cc | |
parent | 2b42dc13fd60739727199f4dc9ed61e1a4a97912 (diff) |
Fix bug #6762, MIDNAM note read outs don't work when dragging MIDI note
Also fixes it so the key is selected in the piano roll header
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 0aac54ebc0..21cd043304 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -5506,13 +5506,9 @@ NoteDrag::motion (GdkEvent * event, bool) * odd with them. so show the note value anyway, always. */ - char buf[12]; uint8_t new_note = min (max (_primary->note()->note() + note_delta, 0), 127); - snprintf (buf, sizeof (buf), "%s (%d)", Evoral::midi_note_name (new_note).c_str(), - (int) floor ((double)new_note)); - - show_verbose_cursor_text (buf); + _region->show_verbose_cursor_for_new_note_value (_primary->note(), new_note); } } |