|
|
@ -145,6 +145,14 @@ void UI_func_stereo_mono(uint8_t param); |
|
|
|
void UI_func_polyphony(uint8_t param); |
|
|
|
void UI_func_polyphony(uint8_t param); |
|
|
|
void UI_func_engine(uint8_t param); |
|
|
|
void UI_func_engine(uint8_t param); |
|
|
|
void UI_func_mono_poly(uint8_t param); |
|
|
|
void UI_func_mono_poly(uint8_t param); |
|
|
|
|
|
|
|
void UI_func_pb_range(uint8_t param); |
|
|
|
|
|
|
|
void UI_func_pb_step(uint8_t param); |
|
|
|
|
|
|
|
void UI_func_mw_range(uint8_t param); |
|
|
|
|
|
|
|
void UI_func_mw_step(uint8_t param); |
|
|
|
|
|
|
|
void UI_func_fc_range(uint8_t param); |
|
|
|
|
|
|
|
void UI_func_fc_step(uint8_t param); |
|
|
|
|
|
|
|
void UI_func_at_range(uint8_t param); |
|
|
|
|
|
|
|
void UI_func_at_step(uint8_t param); |
|
|
|
void UI_func_information(uint8_t param); |
|
|
|
void UI_func_information(uint8_t param); |
|
|
|
void UI_func_voice_selection(uint8_t param); |
|
|
|
void UI_func_voice_selection(uint8_t param); |
|
|
|
void UI_func_volume(uint8_t param); |
|
|
|
void UI_func_volume(uint8_t param); |
|
|
@ -172,8 +180,8 @@ LCDML_add(9, LCDML_0_1_2, 7, "Polyphony 1", UI_func_polyphony); |
|
|
|
LCDML_add(10, LCDML_0_1_2, 8, "Engine 1", UI_func_engine); |
|
|
|
LCDML_add(10, LCDML_0_1_2, 8, "Engine 1", UI_func_engine); |
|
|
|
LCDML_add(11, LCDML_0_1_2, 9, "Mono/Poly 1", UI_func_mono_poly); |
|
|
|
LCDML_add(11, LCDML_0_1_2, 9, "Mono/Poly 1", UI_func_mono_poly); |
|
|
|
LCDML_add(12, LCDML_0_1_2, 10, "Pitchbend 1", NULL); |
|
|
|
LCDML_add(12, LCDML_0_1_2, 10, "Pitchbend 1", NULL); |
|
|
|
LCDML_add(13, LCDML_0_1_2_7, 1, "PB Range 1", UI_function_not_implemented); |
|
|
|
LCDML_add(13, LCDML_0_1_2_7, 1, "PB Range 1", UI_func_pb_range); |
|
|
|
LCDML_add(14, LCDML_0_1_2_7, 2, "PB Step 1", UI_function_not_implemented); |
|
|
|
LCDML_add(14, LCDML_0_1_2_7, 2, "PB Step 1", UI_func_pb_step); |
|
|
|
LCDML_add(15, LCDML_0_1_2, 11, "Mod Wheel 1", NULL); |
|
|
|
LCDML_add(15, LCDML_0_1_2, 11, "Mod Wheel 1", NULL); |
|
|
|
LCDML_add(16, LCDML_0_1_2_8, 1, "MW Range 1", UI_function_not_implemented); |
|
|
|
LCDML_add(16, LCDML_0_1_2_8, 1, "MW Range 1", UI_function_not_implemented); |
|
|
|
LCDML_add(17, LCDML_0_1_2_8, 2, "MW Assign 1", UI_function_not_implemented); |
|
|
|
LCDML_add(17, LCDML_0_1_2_8, 2, "MW Assign 1", UI_function_not_implemented); |
|
|
@ -208,8 +216,8 @@ LCDML_add(45, LCDML_0_1_3, 7, "Polyphony 2", UI_func_polyphony); |
|
|
|
LCDML_add(46, LCDML_0_1_3, 8, "Engine 2", UI_func_engine); |
|
|
|
LCDML_add(46, LCDML_0_1_3, 8, "Engine 2", UI_func_engine); |
|
|
|
LCDML_add(47, LCDML_0_1_3, 9, "Mono/Poly 2", UI_func_mono_poly); |
|
|
|
LCDML_add(47, LCDML_0_1_3, 9, "Mono/Poly 2", UI_func_mono_poly); |
|
|
|
LCDML_add(48, LCDML_0_1_3, 10, "Pitchbend 2", NULL); |
|
|
|
LCDML_add(48, LCDML_0_1_3, 10, "Pitchbend 2", NULL); |
|
|
|
LCDML_add(49, LCDML_0_1_3_7, 1, "PB Range 2", UI_function_not_implemented); |
|
|
|
LCDML_add(49, LCDML_0_1_3_7, 1, "PB Range 2", UI_func_pb_range); |
|
|
|
LCDML_add(50, LCDML_0_1_3_7, 2, "PB Step 2", UI_function_not_implemented); |
|
|
|
LCDML_add(50, LCDML_0_1_3_7, 2, "PB Step 2", UI_func_pb_step); |
|
|
|
LCDML_add(51, LCDML_0_1_3, 11, "Mod Wheel 2", NULL); |
|
|
|
LCDML_add(51, LCDML_0_1_3, 11, "Mod Wheel 2", NULL); |
|
|
|
LCDML_add(52, LCDML_0_1_3_8, 1, "MW Range 2", UI_function_not_implemented); |
|
|
|
LCDML_add(52, LCDML_0_1_3_8, 1, "MW Range 2", UI_function_not_implemented); |
|
|
|
LCDML_add(53, LCDML_0_1_3_8, 2, "MW Assign 2", UI_function_not_implemented); |
|
|
|
LCDML_add(53, LCDML_0_1_3_8, 2, "MW Assign 2", UI_function_not_implemented); |
|
|
@ -266,31 +274,31 @@ LCDML_add(8, LCDML_0_1_2, 7, "Polyphony", UI_func_polyphony); |
|
|
|
LCDML_add(9, LCDML_0_1_2, 8, "Engine", UI_func_engine); |
|
|
|
LCDML_add(9, LCDML_0_1_2, 8, "Engine", UI_func_engine); |
|
|
|
LCDML_add(10, LCDML_0_1_2, 9, "Mono/Poly", UI_func_mono_poly); |
|
|
|
LCDML_add(10, LCDML_0_1_2, 9, "Mono/Poly", UI_func_mono_poly); |
|
|
|
LCDML_add(11, LCDML_0_1_2, 10, "Pitchbend", NULL); |
|
|
|
LCDML_add(11, LCDML_0_1_2, 10, "Pitchbend", NULL); |
|
|
|
LCDML_add(12, LCDML_0_1_2_7, 1, "PB Range", UI_function_not_implemented); |
|
|
|
LCDML_add(12, LCDML_0_1_2_10, 1, "PB Range", UI_func_pb_range); |
|
|
|
LCDML_add(13, LCDML_0_1_2_7, 2, "PB Step", UI_function_not_implemented); |
|
|
|
LCDML_add(13, LCDML_0_1_2_10, 2, "PB Step", UI_func_pb_step); |
|
|
|
LCDML_add(14, LCDML_0_1_2, 11, "Mod Wheel", NULL); |
|
|
|
LCDML_add(14, LCDML_0_1_2, 11, "Mod Wheel", NULL); |
|
|
|
LCDML_add(15, LCDML_0_1_2_8, 1, "MW Range", UI_function_not_implemented); |
|
|
|
LCDML_add(15, LCDML_0_1_2_11, 1, "MW Range", UI_function_not_implemented); |
|
|
|
LCDML_add(16, LCDML_0_1_2_8, 2, "MW Assign", UI_function_not_implemented); |
|
|
|
LCDML_add(16, LCDML_0_1_2_11, 2, "MW Assign", UI_function_not_implemented); |
|
|
|
LCDML_add(17, LCDML_0_1_2, 12, "Foot Ctrl", NULL); |
|
|
|
LCDML_add(17, LCDML_0_1_2, 12, "Foot Ctrl", NULL); |
|
|
|
LCDML_add(18, LCDML_0_1_2_9, 1, "FC Range", UI_function_not_implemented); |
|
|
|
LCDML_add(18, LCDML_0_1_2_12, 1, "FC Range", UI_function_not_implemented); |
|
|
|
LCDML_add(19, LCDML_0_1_2_9, 2, "FC Assign", UI_function_not_implemented); |
|
|
|
LCDML_add(19, LCDML_0_1_2_12, 2, "FC Assign", UI_function_not_implemented); |
|
|
|
LCDML_add(20, LCDML_0_1_2, 13, "Breath Ctrl", NULL); |
|
|
|
LCDML_add(20, LCDML_0_1_2, 13, "Breath Ctrl", NULL); |
|
|
|
LCDML_add(21, LCDML_0_1_2_10, 1, "BC Range", UI_function_not_implemented); |
|
|
|
LCDML_add(21, LCDML_0_1_2_13, 1, "BC Range", UI_function_not_implemented); |
|
|
|
LCDML_add(22, LCDML_0_1_2_10, 2, "BC Assign", UI_function_not_implemented); |
|
|
|
LCDML_add(22, LCDML_0_1_2_13, 2, "BC Assign", UI_function_not_implemented); |
|
|
|
LCDML_add(23, LCDML_0_1_2, 14, "Aftertouch", NULL); |
|
|
|
LCDML_add(23, LCDML_0_1_2, 14, "Aftertouch", NULL); |
|
|
|
LCDML_add(24, LCDML_0_1_2_11, 1, "AT Range", UI_function_not_implemented); |
|
|
|
LCDML_add(24, LCDML_0_1_2_14, 1, "AT Range", UI_function_not_implemented); |
|
|
|
LCDML_add(25, LCDML_0_1_2_11, 2, "AT Assign", UI_function_not_implemented); |
|
|
|
LCDML_add(25, LCDML_0_1_2_14, 2, "AT Assign", UI_function_not_implemented); |
|
|
|
LCDML_add(26, LCDML_0_1_2, 15, "Portamento", NULL); |
|
|
|
LCDML_add(26, LCDML_0_1_2, 15, "Portamento", NULL); |
|
|
|
LCDML_add(27, LCDML_0_1_2_12, 1, "Port. Mode", UI_function_not_enabled); |
|
|
|
LCDML_add(27, LCDML_0_1_2_15, 1, "Port. Mode", UI_function_not_enabled); |
|
|
|
LCDML_add(28, LCDML_0_1_2_12, 2, "Port. Gliss", UI_function_not_enabled); |
|
|
|
LCDML_add(28, LCDML_0_1_2_15, 2, "Port. Gliss", UI_function_not_enabled); |
|
|
|
LCDML_add(29, LCDML_0_1_2_12, 3, "Port. Time", UI_function_not_enabled); |
|
|
|
LCDML_add(29, LCDML_0_1_2_15, 3, "Port. Time", UI_function_not_enabled); |
|
|
|
LCDML_add(30, LCDML_0_1_2, 16, "Operator", NULL); |
|
|
|
LCDML_add(30, LCDML_0_1_2, 16, "Operator", NULL); |
|
|
|
LCDML_add(31, LCDML_0_1_2_13, 1, "OP1", UI_function_not_implemented); |
|
|
|
LCDML_add(31, LCDML_0_1_2_16, 1, "OP1", UI_function_not_implemented); |
|
|
|
LCDML_add(32, LCDML_0_1_2_13, 2, "OP2", UI_function_not_implemented); |
|
|
|
LCDML_add(32, LCDML_0_1_2_16, 2, "OP2", UI_function_not_implemented); |
|
|
|
LCDML_add(33, LCDML_0_1_2_13, 3, "OP3", UI_function_not_implemented); |
|
|
|
LCDML_add(33, LCDML_0_1_2_16, 3, "OP3", UI_function_not_implemented); |
|
|
|
LCDML_add(34, LCDML_0_1_2_13, 4, "OP4", UI_function_not_implemented); |
|
|
|
LCDML_add(34, LCDML_0_1_2_16, 4, "OP4", UI_function_not_implemented); |
|
|
|
LCDML_add(35, LCDML_0_1_2_13, 5, "OP5", UI_function_not_implemented); |
|
|
|
LCDML_add(35, LCDML_0_1_2_16, 5, "OP5", UI_function_not_implemented); |
|
|
|
LCDML_add(36, LCDML_0_1_2_13, 6, "OP6", UI_function_not_implemented); |
|
|
|
LCDML_add(36, LCDML_0_1_2_16, 6, "OP6", UI_function_not_implemented); |
|
|
|
LCDML_add(37, LCDML_0, 2, "Effect", NULL); |
|
|
|
LCDML_add(37, LCDML_0, 2, "Effect", NULL); |
|
|
|
LCDML_add(38, LCDML_0_2, 1, "Reverb", NULL); |
|
|
|
LCDML_add(38, LCDML_0_2, 1, "Reverb", NULL); |
|
|
|
LCDML_add(39, LCDML_0_2_1, 1, "Roomsize", UI_func_reverb_roomsize); |
|
|
|
LCDML_add(39, LCDML_0_2_1, 1, "Roomsize", UI_func_reverb_roomsize); |
|
|
@ -530,7 +538,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) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
switch (menu_state) |
|
|
|
switch (menu_state) |
|
|
@ -592,7 +600,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) |
|
|
|
instance_id = 1; |
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
switch (menu_state) |
|
|
|
switch (menu_state) |
|
|
@ -986,7 +994,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 *********
|
|
|
@ -1181,7 +1189,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 *********
|
|
|
@ -1318,7 +1326,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 *********
|
|
|
@ -1367,7 +1375,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 *********
|
|
|
@ -1401,10 +1409,7 @@ void UI_func_filter_cutoff(uint8_t param) |
|
|
|
lcd.setCursor(0, 1); |
|
|
|
lcd.setCursor(0, 1); |
|
|
|
lcd_display_int(configuration.filter_cutoff[instance_id], 3, true, true, false); |
|
|
|
lcd_display_int(configuration.filter_cutoff[instance_id], 3, true, true, false); |
|
|
|
|
|
|
|
|
|
|
|
for (uint8_t i = 0; i < NUM_DEXED; i++) |
|
|
|
MicroDexed[instance_id]->fx.Cutoff = configuration.filter_cutoff[instance_id] / 100.0; |
|
|
|
{ |
|
|
|
|
|
|
|
MicroDexed[i]->fx.Cutoff = configuration.filter_cutoff[i] / 100.0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
@ -1418,7 +1423,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 *********
|
|
|
@ -1452,10 +1457,7 @@ void UI_func_filter_resonance(uint8_t param) |
|
|
|
lcd.setCursor(0, 1); |
|
|
|
lcd.setCursor(0, 1); |
|
|
|
lcd_display_int(configuration.filter_resonance[instance_id], 3, true, true, false); |
|
|
|
lcd_display_int(configuration.filter_resonance[instance_id], 3, true, true, false); |
|
|
|
|
|
|
|
|
|
|
|
for (uint8_t i = 0; i < NUM_DEXED; i++) |
|
|
|
MicroDexed[instance_id]->fx.Reso = configuration.filter_resonance[instance_id] / 100.0; |
|
|
|
{ |
|
|
|
|
|
|
|
MicroDexed[i]->fx.Reso = configuration.filter_resonance[i] / 100.0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
@ -1469,7 +1471,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 *********
|
|
|
@ -1522,7 +1524,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 *********
|
|
|
@ -1556,10 +1558,7 @@ void UI_func_loudness(uint8_t param) |
|
|
|
lcd.setCursor(0, 1); |
|
|
|
lcd.setCursor(0, 1); |
|
|
|
lcd_display_int(configuration.loudness[instance_id], 3, true, true, false); |
|
|
|
lcd_display_int(configuration.loudness[instance_id], 3, true, true, false); |
|
|
|
|
|
|
|
|
|
|
|
for (uint8_t i = 0; i < NUM_DEXED; i++) |
|
|
|
MicroDexed[instance_id]->fx.Gain = configuration.loudness[instance_id] / 100.0; |
|
|
|
{ |
|
|
|
|
|
|
|
MicroDexed[i]->fx.Gain = configuration.loudness[instance_id] / 100.0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
@ -1573,7 +1572,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 *********
|
|
|
@ -1629,7 +1628,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 *********
|
|
|
@ -1693,7 +1692,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 *********
|
|
|
@ -1727,10 +1726,7 @@ void UI_func_polyphony(uint8_t param) |
|
|
|
lcd.setCursor(0, 1); |
|
|
|
lcd.setCursor(0, 1); |
|
|
|
lcd_display_int(configuration.polyphony[instance_id], 2, false, true, false); |
|
|
|
lcd_display_int(configuration.polyphony[instance_id], 2, false, true, false); |
|
|
|
|
|
|
|
|
|
|
|
for (uint8_t i = 0; i < NUM_DEXED; i++) |
|
|
|
MicroDexed[instance_id]->setMaxNotes(configuration.polyphony[instance_id]); |
|
|
|
{ |
|
|
|
|
|
|
|
MicroDexed[i]->setMaxNotes(configuration.polyphony[instance_id]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
@ -1744,7 +1740,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 *********
|
|
|
@ -1789,10 +1785,7 @@ void UI_func_engine(uint8_t param) |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (uint8_t i = 0; i < NUM_DEXED; i++) |
|
|
|
MicroDexed[instance_id]->setEngineType(configuration.engine[instance_id]); |
|
|
|
{ |
|
|
|
|
|
|
|
MicroDexed[i]->setEngineType(configuration.engine[instance_id]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
@ -1806,7 +1799,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 *********
|
|
|
@ -1858,6 +1851,132 @@ void UI_func_mono_poly(uint8_t param) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void UI_func_pb_range(uint8_t param) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
|
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// setup function
|
|
|
|
|
|
|
|
lcd.setCursor(0, 0); |
|
|
|
|
|
|
|
lcd.print(F("PB Range")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_loop()) // ****** LOOP *********
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (LCDML.BT_checkEnter()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
LCDML.FUNC_goBackToMenu(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else if (LCDML.BT_checkDown()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (configuration.pb_range[instance_id] < PB_RANGE_MAX) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
configuration.pb_range[instance_id]++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else if (LCDML.BT_checkUp()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (configuration.pb_range[instance_id] > PB_RANGE_MIN) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
configuration.pb_range[instance_id]--; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
|
|
|
lcd_display_int(configuration.pb_range[instance_id], 2, false, true, false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MicroDexed[instance_id]->setControllers(configuration.pb_range[instance_id], configuration.pb_step[instance_id], configuration.mw_range[instance_id], configuration.mw_assign[instance_id], configuration.fc_range[instance_id], configuration.fc_assign[instance_id], configuration.bc_range[instance_id], configuration.bc_assign[instance_id], configuration.at_range[instance_id], configuration.at_assign[instance_id]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// you can here reset some global vars or do nothing
|
|
|
|
|
|
|
|
eeprom_write(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void UI_func_pb_step(uint8_t param) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
uint8_t instance_id = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_getID() > MENU_ID_OF_INSTANCE_2) |
|
|
|
|
|
|
|
instance_id = 1; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// setup function
|
|
|
|
|
|
|
|
lcd.setCursor(0, 0); |
|
|
|
|
|
|
|
lcd.print(F("PB Step")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_loop()) // ****** LOOP *********
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (LCDML.BT_checkEnter()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
LCDML.FUNC_goBackToMenu(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else if (LCDML.BT_checkDown()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (configuration.pb_step[instance_id] < PB_STEP_MAX) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
configuration.pb_step[instance_id]++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else if (LCDML.BT_checkUp()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (configuration.pb_step[instance_id] > PB_STEP_MIN) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
configuration.pb_step[instance_id]--; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
|
|
|
lcd_display_int(configuration.pb_step[instance_id], 2, false, true, false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MicroDexed[instance_id]->setControllers(configuration.pb_range[instance_id], configuration.pb_step[instance_id], configuration.mw_range[instance_id], configuration.mw_assign[instance_id], configuration.fc_range[instance_id], configuration.fc_assign[instance_id], configuration.bc_range[instance_id], configuration.bc_assign[instance_id], configuration.at_range[instance_id], configuration.at_assign[instance_id]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// you can here reset some global vars or do nothing
|
|
|
|
|
|
|
|
eeprom_write(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void UI_func_mw_range(uint8_t param) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void UI_func_mw_step(uint8_t param) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void UI_func_fc_range(uint8_t param) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void UI_func_fc_step(uint8_t param) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void UI_func_at_range(uint8_t param) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void UI_func_at_step(uint8_t param) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void UI_func_information(uint8_t param) |
|
|
|
void UI_func_information(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
@ -1889,7 +2008,7 @@ void UI_func_voice_selection(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 |
|
|
@ -1956,7 +2075,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 |
|
|
|