From f784343e0770af311d7c5d61f48fe745936012bf Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 30 Jan 2011 13:06:09 +0000 Subject: Show bank number as well as program change in patch flags (remainder of #3625). git-svn-id: svn://localhost/ardour2/branches/3.0@8621 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/midi_region_view.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc index 60e07c17e0..af79a4f2b8 100644 --- a/gtk2_ardour/midi_region_view.cc +++ b/gtk2_ardour/midi_region_view.cc @@ -1142,9 +1142,9 @@ MidiRegionView::display_patch_changes_on_channel (uint8_t channel) if (patch != 0) { add_canvas_patch_change (*i, patch->name()); } else { - char buf[4]; - // program_number is zero-based: convert to one-based - snprintf (buf, 4, "%d", (*i)->program() + 1); + char buf[16]; + /* program and bank numbers are zero-based: convert to one-based */ + snprintf (buf, 16, "%d\n%d", (*i)->program() + 1, (*i)->bank() + 1); add_canvas_patch_change (*i, buf); } } -- cgit v1.2.3