Fix more max polyphony.

Fix for MIDI indicator and pressed sustain pedal.
pull/32/head
Holger Wirtz 5 years ago
parent 91a4dbbb33
commit 65861b256f
  1. 4
      MicroDexed.ino
  2. 4
      config.h

@ -505,7 +505,7 @@ void loop()
lcd.setCursor(14 + instance_id, 1); lcd.setCursor(14 + instance_id, 1);
lcd.write(6 + instance_id); lcd.write(6 + instance_id);
} }
else if (midi_voices[instance_id] == 0 && midi_decay[instance_id] == 0) else if (midi_voices[instance_id] == 0 && midi_decay[instance_id] == 0 && !MicroDexed[instance_id]->getSustain())
{ {
midi_decay[instance_id]--; midi_decay[instance_id]--;
lcd.setCursor(14 + instance_id, 1); lcd.setCursor(14 + instance_id, 1);
@ -519,7 +519,7 @@ void loop()
lcd.setCursor(14 + instance_id, 1); lcd.setCursor(14 + instance_id, 1);
lcd.write(6 + instance_id); lcd.write(6 + instance_id);
} }
else if (midi_voices[instance_id] == 0) else if (midi_voices[instance_id] == 0 && !MicroDexed[instance_id]->getSustain())
{ {
midi_playing[instance_id] = false; midi_playing[instance_id] = false;
lcd.setCursor(14 + instance_id, 1); lcd.setCursor(14 + instance_id, 1);

@ -273,9 +273,9 @@
#define MIDI_DEVICE_USB_HOST 1 #define MIDI_DEVICE_USB_HOST 1
#if defined(USE_FX) #if defined(USE_FX)
#if NUM_DEXED == 1 #if NUM_DEXED == 1
#define MAX_NOTES 13 #define MAX_NOTES 12
#else #else
#define MAX_NOTES 10 #define MAX_NOTES 9
#endif #endif
#else #else
#if NUM_DEXED == 1 #if NUM_DEXED == 1

Loading…
Cancel
Save