|
|
@ -414,7 +414,7 @@ void lcdml_menu_control(void) |
|
|
|
bool button[NUM_ENCODER] = {digitalRead(BUT_R_PIN), digitalRead(BUT_L_PIN)}; |
|
|
|
bool button[NUM_ENCODER] = {digitalRead(BUT_R_PIN), digitalRead(BUT_L_PIN)}; |
|
|
|
|
|
|
|
|
|
|
|
/************************************************************************************
|
|
|
|
/************************************************************************************
|
|
|
|
Basic encoder handlying (from LCDMenuLib2 |
|
|
|
Basic encoder handlying (from LCDMenuLib2) |
|
|
|
************************************************************************************/ |
|
|
|
************************************************************************************/ |
|
|
|
// RIGHT
|
|
|
|
// RIGHT
|
|
|
|
if (g_LCDML_CONTROL_Encoder_position[ENC_R] <= -3) |
|
|
|
if (g_LCDML_CONTROL_Encoder_position[ENC_R] <= -3) |
|
|
@ -539,7 +539,7 @@ void encoder_right_up(void) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2 && LCDML.FUNC_getID() != 255) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
switch (menu_state) |
|
|
|
switch (menu_state) |
|
|
@ -601,7 +601,7 @@ void encoder_right_down(void) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2 && LCDML.FUNC_getID() != 255) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
switch (menu_state) |
|
|
|
switch (menu_state) |
|
|
@ -1015,7 +1015,7 @@ void UI_func_reverb_level(uint8_t param) |
|
|
|
#ifdef USE_REVERB |
|
|
|
#ifdef USE_REVERB |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -1232,7 +1232,7 @@ void UI_func_chorus_level(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -1369,7 +1369,7 @@ void UI_func_delay_level(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -1418,7 +1418,7 @@ void UI_func_filter_cutoff(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -1470,7 +1470,7 @@ void UI_func_filter_resonance(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -1518,7 +1518,7 @@ void UI_func_midi_channel(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -1571,7 +1571,7 @@ void UI_func_loudness(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -1619,7 +1619,7 @@ void UI_func_panorama(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -1675,7 +1675,7 @@ void UI_func_stereo_mono(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -1739,7 +1739,7 @@ void UI_func_polyphony(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -1787,7 +1787,7 @@ void UI_func_engine(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -1846,7 +1846,7 @@ void UI_func_mono_poly(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -1902,7 +1902,7 @@ void UI_func_pb_range(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -1963,7 +1963,7 @@ void UI_func_pb_step(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -2011,7 +2011,7 @@ void UI_func_mw_range(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -2059,7 +2059,7 @@ void UI_func_mw_assign(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -2133,7 +2133,7 @@ void UI_func_fc_range(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -2181,7 +2181,7 @@ void UI_func_fc_assign(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -2255,7 +2255,7 @@ void UI_func_bc_range(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -2303,7 +2303,7 @@ void UI_func_bc_assign(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -2377,7 +2377,7 @@ void UI_func_at_range(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -2425,7 +2425,7 @@ void UI_func_at_assign(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -2588,7 +2588,7 @@ void UI_func_volume(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t instance_id = 0; |
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() < MENU_ID_OF_INSTANCE_2) |
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
#ifdef DEBUG |
|
|
|
#ifdef DEBUG |
|
|
|