13
0

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
This commit is contained in:
Carl Hetherington 2011-01-30 13:06:09 +00:00
parent 932b031a2e
commit f784343e07

View File

@ -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);
}
}