mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
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:
parent
390f18c115
commit
f8ebb4582d
19 changed files with 930 additions and 254 deletions
|
|
@ -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 ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue