|
|
@ -187,6 +187,7 @@ void UI_func_voice_selection(uint8_t param); |
|
|
|
void UI_func_volume(uint8_t param); |
|
|
|
void UI_func_volume(uint8_t param); |
|
|
|
void UI_func_load(uint8_t param); |
|
|
|
void UI_func_load(uint8_t param); |
|
|
|
void UI_func_save(uint8_t param); |
|
|
|
void UI_func_save(uint8_t param); |
|
|
|
|
|
|
|
void UI_func_midi_soft_thru(uint8_t param); |
|
|
|
void UI_function_not_enabled(void); |
|
|
|
void UI_function_not_enabled(void); |
|
|
|
void UI_function_not_implemented(uint8_t param); |
|
|
|
void UI_function_not_implemented(uint8_t param); |
|
|
|
void lcd_display_int(int16_t var, uint8_t size, bool zeros, bool brackets, bool sign); |
|
|
|
void lcd_display_int(int16_t var, uint8_t size, bool zeros, bool brackets, bool sign); |
|
|
@ -300,8 +301,9 @@ LCDML_add(98, LCDML_0_3, 1, "Load", UI_func_load); |
|
|
|
LCDML_add(99, LCDML_0_3, 2, "Save", UI_func_save); |
|
|
|
LCDML_add(99, LCDML_0_3, 2, "Save", UI_func_save); |
|
|
|
LCDML_add(100, LCDML_0, 4, "System", NULL); |
|
|
|
LCDML_add(100, LCDML_0, 4, "System", NULL); |
|
|
|
LCDML_add(101, LCDML_0_4, 1, "Stereo/Mono", UI_func_stereo_mono); |
|
|
|
LCDML_add(101, LCDML_0_4, 1, "Stereo/Mono", UI_func_stereo_mono); |
|
|
|
LCDML_add(102, LCDML_0, 5, "Info", UI_func_information); |
|
|
|
LCDML_add(102, LCDML_0_4, 2, "MIDI Soft THRU", UI_func_midi_soft_thru); |
|
|
|
#define _LCDML_DISP_cnt 102 |
|
|
|
LCDML_add(103, LCDML_0, 5, "Info", UI_func_information); |
|
|
|
|
|
|
|
#define _LCDML_DISP_cnt 103 |
|
|
|
#define MENU_ID_OF_INSTANCE_2 42 |
|
|
|
#define MENU_ID_OF_INSTANCE_2 42 |
|
|
|
#else |
|
|
|
#else |
|
|
|
LCDML_add(0, LCDML_0, 1, "Setup", NULL); |
|
|
|
LCDML_add(0, LCDML_0, 1, "Setup", NULL); |
|
|
@ -364,8 +366,9 @@ LCDML_add(56, LCDML_0_3, 1, "Load", UI_func_load); |
|
|
|
LCDML_add(57, LCDML_0_3, 2, "Save", UI_func_save); |
|
|
|
LCDML_add(57, LCDML_0_3, 2, "Save", UI_func_save); |
|
|
|
LCDML_add(58, LCDML_0, 4, "System", NULL); |
|
|
|
LCDML_add(58, LCDML_0, 4, "System", NULL); |
|
|
|
LCDML_add(59, LCDML_0_4, 1, "Stereo/Mono", UI_func_stereo_mono); |
|
|
|
LCDML_add(59, LCDML_0_4, 1, "Stereo/Mono", UI_func_stereo_mono); |
|
|
|
LCDML_add(60, LCDML_0, 5, "Info", UI_func_information); |
|
|
|
LCDML_add(60, LCDML_0_4, 2, "MIDI Soft THRU", UI_func_midi_soft_thru); |
|
|
|
#define _LCDML_DISP_cnt 60 |
|
|
|
LCDML_add(61, LCDML_0, 5, "Info", UI_func_information); |
|
|
|
|
|
|
|
#define _LCDML_DISP_cnt 61 |
|
|
|
#define MENU_ID_OF_INSTANCE_2 41 |
|
|
|
#define MENU_ID_OF_INSTANCE_2 41 |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
// create menu
|
|
|
|
// create menu
|
|
|
@ -3198,6 +3201,58 @@ void UI_func_information(uint8_t param) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void UI_func_midi_soft_thru(uint8_t param) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// setup function
|
|
|
|
|
|
|
|
lcd.setCursor(0, 0); |
|
|
|
|
|
|
|
lcd.print(F("MIDI-Soft_Thru")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_loop()) // ****** LOOP *********
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (LCDML.BT_checkEnter()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
LCDML.FUNC_goBackToMenu(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else if (LCDML.BT_checkDown() || LCDML.BT_checkUp()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (LCDML.BT_checkDown()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (configuration.soft_midi_thru < SOFT_MIDI_THRU_MAX) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
configuration.soft_midi_thru++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else if (LCDML.BT_checkUp()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (configuration.soft_midi_thru > SOFT_MIDI_THRU_MIN) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
configuration.soft_midi_thru--; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
|
|
|
switch (configuration.soft_midi_thru) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
case 0: |
|
|
|
|
|
|
|
lcd.print(F("[OFF]")); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case 1: |
|
|
|
|
|
|
|
lcd.print(F("[ON ]")); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// you can here reset some global vars or do nothing
|
|
|
|
|
|
|
|
eeprom_write(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UI_func_voice_selection(uint8_t param) |
|
|
|
void UI_func_voice_selection(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
#ifdef DEBUG |
|
|
|
#ifdef DEBUG |
|
|
|