Merge branch 'dev_fix_bank_voice_limits' of dronus/MicroDexed into dev

Ok, but I think this will not fix every problem. If the contrain is between 0 and 32 you have the chance to load 33 voices which will cause a problem.
pull/32/head
Holger Wirtz 5 years ago committed by Gitea
commit c9764d60ca
  1. 4
      dexed_sysex.cpp

@ -223,8 +223,8 @@ bool load_sysex(uint8_t b, uint8_t v, uint8_t instance_id)
#if DEBUG #if DEBUG
bool found = false; bool found = false;
#endif #endif
v = constrain(v, 1, MAX_VOICES); v = constrain(v, 0, MAX_VOICES);
b = constrain(b, 1, MAX_BANKS); b = constrain(b, 0, MAX_BANKS);
if (sd_card_available) if (sd_card_available)
{ {

Loading…
Cancel
Save