|
|
|
@ -2083,8 +2083,11 @@ void UI_func_polyphony(uint8_t param) |
|
|
|
|
encoderDir[ENC_R].reset(); |
|
|
|
|
|
|
|
|
|
lcd_special_chars(BLOCKBAR); |
|
|
|
|
lcd_display_bar_int("Polyphony", configuration.dexed[selected_instance_id].polyphony, 1.0, POLYPHONY_MIN, POLYPHONY_MAX, 2, false, false, true); |
|
|
|
|
|
|
|
|
|
#if NUM_DEXED>1 |
|
|
|
|
lcd_display_bar_int("Polyphony", configuration.dexed[selected_instance_id].polyphony, 1.0, POLYPHONY_MIN, POLYPHONY_MAX - configuration.dexed[(selected_instance_id + 1) % NUM_DEXED].polyphony, 2, false, false, true); |
|
|
|
|
#else |
|
|
|
|
lcd_display_bar_int("Polyphony", configuration.dexed[selected_instance_id].polyphony, 1.0, POLYPHONY_MIN, POLYPHONY_MAX].polyphony, 2, false, false, true); |
|
|
|
|
#endif |
|
|
|
|
lcd_active_instance_number(selected_instance_id); |
|
|
|
|
UI_update_instance_icons(); |
|
|
|
|
} |
|
|
|
@ -2095,14 +2098,25 @@ void UI_func_polyphony(uint8_t param) |
|
|
|
|
{ |
|
|
|
|
if (LCDML.BT_checkDown()) |
|
|
|
|
{ |
|
|
|
|
#if NUM_DEXED>1 |
|
|
|
|
if (configuration.dexed[selected_instance_id].polyphony < POLYPHONY_MAX - configuration.dexed[selected_instance_id + 1 % NUM_DEXED].polyphony) |
|
|
|
|
configuration.dexed[selected_instance_id].polyphony = constrain(configuration.dexed[selected_instance_id].polyphony + 1, POLYPHONY_MIN, POLYPHONY_MAX - configuration.dexed[(selected_instance_id + 1) % NUM_DEXED].polyphony); |
|
|
|
|
#else |
|
|
|
|
configuration.dexed[selected_instance_id].polyphony = constrain(configuration.dexed[selected_instance_id].polyphony + 1, POLYPHONY_MIN, POLYPHONY_MAX); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
else if (LCDML.BT_checkUp()) |
|
|
|
|
{ |
|
|
|
|
if (configuration.dexed[selected_instance_id].polyphony - 1 < 0) |
|
|
|
|
configuration.dexed[selected_instance_id].polyphony = 0; |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
#if NUM_DEXED>1 |
|
|
|
|
configuration.dexed[selected_instance_id].polyphony = constrain(configuration.dexed[selected_instance_id].polyphony - 1, POLYPHONY_MIN, POLYPHONY_MAX - configuration.dexed[(selected_instance_id + 1) % NUM_DEXED].polyphony); |
|
|
|
|
#else |
|
|
|
|
configuration.dexed[selected_instance_id].polyphony = constrain(configuration.dexed[selected_instance_id].polyphony - 1, POLYPHONY_MIN, POLYPHONY_MAX); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
#if NUM_DEXED > 1 |
|
|
|
|
else if (LCDML.BT_checkEnter()) |
|
|
|
@ -2115,8 +2129,11 @@ void UI_func_polyphony(uint8_t param) |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if NUM_DEXED>1 |
|
|
|
|
lcd_display_bar_int("Polyphony", configuration.dexed[selected_instance_id].polyphony, 1.0, POLYPHONY_MIN, POLYPHONY_MAX - configuration.dexed[selected_instance_id + 1 % NUM_DEXED].polyphony, 2, false, false, false); |
|
|
|
|
#else |
|
|
|
|
lcd_display_bar_int("Polyphony", configuration.dexed[selected_instance_id].polyphony, 1.0, POLYPHONY_MIN, POLYPHONY_MAX, 2, false, false, false); |
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
|
MicroDexed[selected_instance_id]->setMaxNotes(configuration.dexed[selected_instance_id].polyphony); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|