slight improvement of MIDI program names in verbose cursor while scrolling
authorPaul Davis <paul@linuxaudiosystems.com>
Sun, 22 May 2016 12:23:39 +0000 (08:23 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 31 May 2016 19:30:44 +0000 (15:30 -0400)
gtk2_ardour/midi_region_view.cc

index 324ca0eaf6201d289ac562265786fb9c10b3c7c4..1e20a78fc1a10146c553555076a9f32fbf0be15e 100644 (file)
@@ -3331,9 +3331,8 @@ void
 MidiRegionView::patch_entered (PatchChange* p)
 {
        ostringstream s;
-       /* XXX should get patch name if we can */
        s << _("Bank ") << (p->patch()->bank() + MIDI_BP_ZERO) << '\n'
-         << _("Program ") << ((int) p->patch()->program()) + MIDI_BP_ZERO << '\n'
+         << instrument_info().get_patch_name_without (p->patch()->bank(), p->patch()->program(), p->patch()->channel()) << '\n'
          << _("Channel ") << ((int) p->patch()->channel() + 1);
        show_verbose_cursor (s.str(), 10, 20);
        p->item().grab_focus();