mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
remove craziness of propagating MIDI 7 bit limits into MIDNAM handling by replacing bank_msb/lsb with "bank" ; move responsibility for discovering patch names into MIDI trackview (soon to move again)
git-svn-id: svn://localhost/ardour2/branches/3.0@12647 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
df6222b3b4
commit
23350c195d
6 changed files with 54 additions and 62 deletions
|
|
@ -167,7 +167,7 @@ PatchChangeDialog::set_active_bank_combo ()
|
|||
boost::replace_all (n, "_", " ");
|
||||
|
||||
MIDI::Name::PatchPrimaryKey const * key = (*i)->patch_primary_key ();
|
||||
if (key && ((key->msb << 7) | key->lsb) == _bank.get_value () - 1) {
|
||||
if (key && (key->bank_number == _bank.get_value () - 1)) {
|
||||
_current_patch_bank = *i;
|
||||
_ignore_signals = true;
|
||||
_bank_combo.set_active_text (n);
|
||||
|
|
@ -218,7 +218,7 @@ PatchChangeDialog::bank_combo_changed ()
|
|||
MIDI::Name::PatchPrimaryKey const * key = _current_patch_bank->patch_primary_key ();
|
||||
if (key) {
|
||||
_ignore_signals = true;
|
||||
_bank.set_value (((key->msb << 7) | key->lsb) + 1);
|
||||
_bank.set_value (key->bank_number + 1);
|
||||
_ignore_signals = false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue