diff options
author | Carl Hetherington <carl@carlh.net> | 2011-01-30 13:06:09 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-01-30 13:06:09 +0000 |
commit | f784343e0770af311d7c5d61f48fe745936012bf (patch) | |
tree | ba2f9e3dfc2ac9e68ce6c252a736fd86d4291bb3 | |
parent | 932b031a2eec2e88f60a149901a279ede1b7e3b4 (diff) |
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
-rw-r--r-- | gtk2_ardour/midi_region_view.cc | 6 |
1 files 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); } } |