mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
GUI tweaks for unset midi banks.
Some MIDNAM files use Patch-Banks that do *not* have a common midi bank (CC0, CC32) but the Patchbank is instead just a collection of patches. There may be more than 127 patches in a patch-bank and each of those may be in a different midi-bank (e.g. Roland SC-88 Pro). Midnams like these are now properly supported via dropdowns (in the patch add/modify dialog and timeline), but ignored by the grid (patch-widget). More work is needed.
This commit is contained in:
parent
938b2422e3
commit
203c6546c1
3 changed files with 13 additions and 6 deletions
|
|
@ -732,7 +732,6 @@ GenericPluginUI::midi_refill_patches ()
|
|||
for (MIDI::Name::PatchNameList::const_iterator j = patches.begin(); j != patches.end(); ++j) {
|
||||
const std::string pgm = (*j)->name ();
|
||||
MIDI::Name::PatchPrimaryKey const& key = (*j)->patch_primary_key ();
|
||||
assert ((*i)->number () == key.bank());
|
||||
const uint32_t bp = (key.bank() << 7) | key.program();
|
||||
midi_pgmsel[chn]->AddMenuElem (MenuElemNoMnemonic (pgm, sigc::bind (sigc::mem_fun (*this, &GenericPluginUI::midi_bank_patch_select), chn, bp)));
|
||||
pgm_names[bp] = pgm;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue