Unify program change and bank handling so that they are manipulated together.

git-svn-id: svn://localhost/ardour2/branches/3.0@8346 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-12-28 18:19:40 +00:00
parent 390f18c115
commit f8ebb4582d
19 changed files with 930 additions and 254 deletions

View file

@ -591,7 +591,8 @@ MidiTimeAxisView::build_controller_menu ()
}
}
/* loop over all 127 MIDI controllers, in groups of 16 */
/* loop over all 127 MIDI controllers, in groups of 16; except don't offer
bank select controllers, as they are handled by the `patch' code */
for (int i = 0; i < 127; i += 16) {
@ -603,6 +604,10 @@ MidiTimeAxisView::build_controller_menu ()
for (int ctl = i; ctl < i+16; ++ctl) {
if (ctl == MIDI_CTL_MSB_BANK || ctl == MIDI_CTL_LSB_BANK) {
continue;
}
if (chn_cnt > 1) {
/* multiple channels - create a submenu, with 1 item per channel */
@ -985,7 +990,7 @@ MidiTimeAxisView::set_channel_mode (ChannelMode, uint16_t)
no_redraw = false;
/* TODO: Bender, PgmChange, Pressure */
/* TODO: Bender, Pressure */
/* invalidate the controller menu, so that we rebuilt it next time */
_controller_menu_map.clear ();