|
|
|
@ -473,6 +473,7 @@ void lcdml_menu_control(void) |
|
|
|
|
ENCODER[ENC_L].begin(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//if (back_from_volume > BACK_FROM_VOLUME_MS && LCDML.FUNC_getID() == LCDML.OTHER_getIDFromFunction(UI_func_volume))
|
|
|
|
|
if (back_from_volume > BACK_FROM_VOLUME_MS && LCDML.FUNC_getID() == VOLUME_MENU_ID) |
|
|
|
|
{ |
|
|
|
|
encoderDir[ENC_L].reset(); |
|
|
|
@ -602,6 +603,7 @@ void lcdml_menu_control(void) |
|
|
|
|
#endif |
|
|
|
|
encoderDir[ENC_L].Down(true); |
|
|
|
|
LCDML.BT_down(); |
|
|
|
|
//if (LCDML.FUNC_getID() != LCDML.OTHER_getIDFromFunction(UI_func_volume))
|
|
|
|
|
if (LCDML.FUNC_getID() != VOLUME_MENU_ID) |
|
|
|
|
{ |
|
|
|
|
LCDML.OTHER_jumpToFunc(UI_func_volume); |
|
|
|
@ -628,6 +630,7 @@ void lcdml_menu_control(void) |
|
|
|
|
#endif |
|
|
|
|
encoderDir[ENC_L].Up(true); |
|
|
|
|
LCDML.BT_up(); |
|
|
|
|
//if (LCDML.FUNC_getID() != LCDML.OTHER_getIDFromFunction(UI_func_volume))
|
|
|
|
|
if (LCDML.FUNC_getID() != VOLUME_MENU_ID) |
|
|
|
|
{ |
|
|
|
|
LCDML.OTHER_jumpToFunc(UI_func_volume); |
|
|
|
@ -658,6 +661,8 @@ void lcdml_menu_control(void) |
|
|
|
|
#endif |
|
|
|
|
//encoderDir[ENC_L].ButtonLong(true);
|
|
|
|
|
//LCDML.BT_quit();
|
|
|
|
|
for (uint8_t i = 0; i < NUM_DEXED; i++) |
|
|
|
|
MicroDexed[i]->panic(); |
|
|
|
|
} |
|
|
|
|
else if ((millis() - g_LCDML_CONTROL_button_press_time[ENC_L]) >= g_LCDML_CONTROL_button_short_press) |
|
|
|
|
{ |
|
|
|
@ -3412,6 +3417,8 @@ void UI_func_load_performance(uint8_t param) |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
|
{ |
|
|
|
|
char tmp[10]; |
|
|
|
|
|
|
|
|
|
mode = 0; |
|
|
|
|
|
|
|
|
|
encoderDir[ENC_R].reset(); |
|
|
|
@ -3419,15 +3426,9 @@ void UI_func_load_performance(uint8_t param) |
|
|
|
|
lcd.setCursor(0, 0); |
|
|
|
|
lcd.print(F("Load Perf. SD")); |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
if (configuration.sys.performance_number == 0) |
|
|
|
|
lcd.print(F("[DEFAULT]")); |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
char tmp[10]; |
|
|
|
|
sprintf(tmp, "[%7d]", configuration.sys.performance_number); |
|
|
|
|
sprintf(tmp, "[%2d]", configuration.sys.performance_number); |
|
|
|
|
lcd.print(tmp); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_loop()) // ****** LOOP *********
|
|
|
|
|
{ |
|
|
|
@ -3469,16 +3470,11 @@ void UI_func_load_performance(uint8_t param) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
if (configuration.sys.performance_number == 0) |
|
|
|
|
lcd.print(F("[DEFAULT]")); |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
char tmp[10]; |
|
|
|
|
sprintf(tmp, "[%7d]", configuration.sys.performance_number); |
|
|
|
|
sprintf(tmp, "[%2d]", configuration.sys.performance_number); |
|
|
|
|
lcd.print(tmp); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
|
|
{ |
|
|
|
@ -3503,6 +3499,8 @@ void UI_func_save_performance(uint8_t param) |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
|
{ |
|
|
|
|
char tmp[FILENAME_LEN]; |
|
|
|
|
|
|
|
|
|
yesno = false; |
|
|
|
|
mode = 0; |
|
|
|
|
|
|
|
|
@ -3511,16 +3509,9 @@ void UI_func_save_performance(uint8_t param) |
|
|
|
|
lcd.setCursor(0, 0); |
|
|
|
|
lcd.print(F("Save Perf. SD")); |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
if (configuration.sys.performance_number == 0) |
|
|
|
|
lcd.print(F("[DEFAULT]")); |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
char tmp[10]; |
|
|
|
|
sprintf(tmp, "[%7d]", configuration.sys.performance_number); |
|
|
|
|
sprintf(tmp, "[%2d]", configuration.sys.performance_number); |
|
|
|
|
lcd.print(tmp); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
char tmp[FILENAME_LEN]; |
|
|
|
|
sprintf(tmp, "/%s/%s%d.syx", PERFORMANCE_CONFIG_PATH, PERFORMANCE_CONFIG_NAME, configuration.sys.performance_number); |
|
|
|
|
if (SD.exists(tmp)) |
|
|
|
|
overwrite = true; |
|
|
|
@ -3585,15 +3576,9 @@ void UI_func_save_performance(uint8_t param) |
|
|
|
|
overwrite = false; |
|
|
|
|
|
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
if (configuration.sys.performance_number == 0) |
|
|
|
|
lcd.print(F("[DEFAULT]")); |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
char tmp[10]; |
|
|
|
|
sprintf(tmp, "[%7d]", configuration.sys.performance_number); |
|
|
|
|
sprintf(tmp, "[%2d]", configuration.sys.performance_number); |
|
|
|
|
lcd.print(tmp); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
lcd.setCursor(12, 1); |
|
|
|
@ -3631,6 +3616,8 @@ void UI_func_load_voiceconfig(uint8_t param) |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
|
{ |
|
|
|
|
char tmp[10]; |
|
|
|
|
|
|
|
|
|
instance_id = 0; |
|
|
|
|
|
|
|
|
|
encoderDir[ENC_R].reset(); |
|
|
|
@ -3644,14 +3631,8 @@ void UI_func_load_voiceconfig(uint8_t param) |
|
|
|
|
#else |
|
|
|
|
mode = 1; |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
if (configuration.performance.voiceconfig_number[instance_id] == 0) |
|
|
|
|
lcd.print(F("[DEFAULT]")); |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
char tmp[10]; |
|
|
|
|
sprintf(tmp, "[%7d]", configuration.performance.voiceconfig_number[instance_id]); |
|
|
|
|
sprintf(tmp, "[%2d]", configuration.performance.voiceconfig_number[instance_id]); |
|
|
|
|
lcd.print(tmp); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -3695,16 +3676,11 @@ void UI_func_load_voiceconfig(uint8_t param) |
|
|
|
|
else if (mode == 1) |
|
|
|
|
{ |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
if (configuration.performance.voiceconfig_number[instance_id] == 0) |
|
|
|
|
lcd.print(F("[DEFAULT]")); |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
char tmp[10]; |
|
|
|
|
sprintf(tmp, "[%7d]", configuration.performance.voiceconfig_number[instance_id]); |
|
|
|
|
sprintf(tmp, "[%2d]", configuration.performance.voiceconfig_number[instance_id]); |
|
|
|
|
lcd.print(tmp); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
encoderDir[ENC_R].reset(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -3737,6 +3713,8 @@ void UI_func_save_voiceconfig(uint8_t param) |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
|
{ |
|
|
|
|
char tmp[FILENAME_LEN]; |
|
|
|
|
|
|
|
|
|
yesno = false; |
|
|
|
|
instance_id = 0; |
|
|
|
|
|
|
|
|
@ -3751,16 +3729,9 @@ void UI_func_save_voiceconfig(uint8_t param) |
|
|
|
|
#else |
|
|
|
|
mode = 1; |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
if (configuration.performance.voiceconfig_number[instance_id] == 0) |
|
|
|
|
lcd.print(F("[DEFAULT]")); |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
char tmp[10]; |
|
|
|
|
sprintf(tmp, "[%7d]", configuration.performance.voiceconfig_number[instance_id]); |
|
|
|
|
sprintf(tmp, "[%2d]", configuration.performance.voiceconfig_number[instance_id]); |
|
|
|
|
lcd.print(tmp); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
char tmp[FILENAME_LEN]; |
|
|
|
|
sprintf(tmp, "/%s/%s%d.syx", VOICE_CONFIG_PATH, VOICE_CONFIG_NAME, configuration.performance.voiceconfig_number[instance_id]); |
|
|
|
|
if (SD.exists(tmp)) |
|
|
|
|
overwrite = true; |
|
|
|
@ -3828,6 +3799,7 @@ void UI_func_save_voiceconfig(uint8_t param) |
|
|
|
|
else if (mode == 1) |
|
|
|
|
{ |
|
|
|
|
char tmp[FILENAME_LEN]; |
|
|
|
|
|
|
|
|
|
sprintf(tmp, "/%s/%s%d.syx", VOICE_CONFIG_PATH, VOICE_CONFIG_NAME, configuration.performance.voiceconfig_number[instance_id]); |
|
|
|
|
if (SD.exists(tmp)) |
|
|
|
|
overwrite = true; |
|
|
|
@ -3835,15 +3807,9 @@ void UI_func_save_voiceconfig(uint8_t param) |
|
|
|
|
overwrite = false; |
|
|
|
|
|
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
if (configuration.performance.voiceconfig_number[instance_id] == 0) |
|
|
|
|
lcd.print(F("[DEFAULT]")); |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
char tmp[10]; |
|
|
|
|
sprintf(tmp, "[%7d]", configuration.performance.voiceconfig_number[instance_id]); |
|
|
|
|
sprintf(tmp, "[%2d]", configuration.performance.voiceconfig_number[instance_id]); |
|
|
|
|
lcd.print(tmp); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else if (mode == 2) |
|
|
|
|
{ |
|
|
|
|
lcd.setCursor(12, 1); |
|
|
|
@ -3875,6 +3841,8 @@ void UI_func_load_fx(uint8_t param) |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
|
{ |
|
|
|
|
char tmp[10]; |
|
|
|
|
|
|
|
|
|
mode = 0; |
|
|
|
|
|
|
|
|
|
encoderDir[ENC_R].reset(); |
|
|
|
@ -3882,15 +3850,9 @@ void UI_func_load_fx(uint8_t param) |
|
|
|
|
lcd.setCursor(0, 0); |
|
|
|
|
lcd.print(F("Load FX SD")); |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
if (configuration.performance.fx_number == 0) |
|
|
|
|
lcd.print(F("[DEFAULT]")); |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
char tmp[10]; |
|
|
|
|
sprintf(tmp, "[%7d]", configuration.performance.fx_number); |
|
|
|
|
lcd.print(tmp); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_loop()) // ****** LOOP *********
|
|
|
|
|
{ |
|
|
|
@ -3920,16 +3882,11 @@ void UI_func_load_fx(uint8_t param) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
if (configuration.performance.fx_number == 0) |
|
|
|
|
lcd.print(F("[DEFAULT]")); |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
char tmp[10]; |
|
|
|
|
sprintf(tmp, "[%7d]", configuration.performance.fx_number); |
|
|
|
|
sprintf(tmp, "[%2d]", configuration.performance.fx_number); |
|
|
|
|
lcd.print(tmp); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
|
|
{ |
|
|
|
@ -3954,6 +3911,8 @@ void UI_func_save_fx(uint8_t param) |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
|
{ |
|
|
|
|
char tmp[FILENAME_LEN]; |
|
|
|
|
|
|
|
|
|
yesno = false; |
|
|
|
|
mode = 0; |
|
|
|
|
|
|
|
|
@ -3962,16 +3921,9 @@ void UI_func_save_fx(uint8_t param) |
|
|
|
|
lcd.setCursor(0, 0); |
|
|
|
|
lcd.print(F("Save FX")); |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
if (configuration.performance.fx_number == 0) |
|
|
|
|
lcd.print(F("[DEFAULT]")); |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
char tmp[10]; |
|
|
|
|
sprintf(tmp, "[%7d]", configuration.performance.fx_number); |
|
|
|
|
lcd.print(tmp); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
char tmp[FILENAME_LEN]; |
|
|
|
|
sprintf(tmp, "/%s/%s%d.syx", FX_CONFIG_PATH, FX_CONFIG_NAME, configuration.performance.fx_number); |
|
|
|
|
if (SD.exists(tmp)) |
|
|
|
|
overwrite = true; |
|
|
|
@ -4036,15 +3988,9 @@ void UI_func_save_fx(uint8_t param) |
|
|
|
|
overwrite = false; |
|
|
|
|
|
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
if (configuration.performance.fx_number == 0) |
|
|
|
|
lcd.print(F("[DEFAULT]")); |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
char tmp[10]; |
|
|
|
|
sprintf(tmp, "[%7d]", configuration.performance.fx_number); |
|
|
|
|
sprintf(tmp, "[%2d]", configuration.performance.fx_number); |
|
|
|
|
lcd.print(tmp); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
lcd.setCursor(12, 1); |
|
|
|
|