@ -363,9 +363,6 @@ class EncoderDirection
bool down ;
} ;
# define g_LCDML_CONTROL_button_long_press LONG_BUTTON_PRESS
# define g_LCDML_CONTROL_button_short_press BUT_DEBOUNCE_MS
//Encoder ENCODER[NUM_ENCODER] = {Encoder(ENC_R_PIN_B, ENC_R_PIN_A), Encoder(ENC_L_PIN_B, ENC_L_PIN_A)};
MD_REncoder ENCODER [ NUM_ENCODER ] = { MD_REncoder ( ENC_R_PIN_B , ENC_R_PIN_A ) , MD_REncoder ( ENC_L_PIN_B , ENC_L_PIN_A ) } ;
EncoderDirection encoderDir [ NUM_ENCODER ] ;
@ -546,7 +543,7 @@ void lcdml_menu_control(void)
g_LCDML_CONTROL_button_press_time [ ENC_R ] = millis ( ) ;
//Reset for left right action
}
else if ( ( millis ( ) - g_LCDML_CONTROL_button_press_time [ ENC_R ] ) > = g_LCDML_CONTROL_button_long_press )
else if ( ( millis ( ) - g_LCDML_CONTROL_button_press_time [ ENC_R ] ) > = LONG_BUTTON_PRESS )
{
# ifdef DEBUG
Serial . println ( " ENC-R long " ) ;
@ -554,16 +551,15 @@ void lcdml_menu_control(void)
//LCDML.BT_quit();
encoderDir [ ENC_R ] . ButtonLong ( true ) ;
/*
if ( LCDML . FUNC_getID ( ) < 0xff )
LCDML . FUNC_setGBAToLastFunc ( ) ;
else
LCDML . FUNC_setGBAToLastCursorPos ( ) ;
*/
LCDML . FUNC_setGBA ( ) ;
if ( LCDML . FUNC_getID ( ) < 0xff )
LCDML . FUNC_setGBAToLastFunc ( ) ;
else
LCDML . FUNC_setGBAToLastCursorPos ( ) ;
//LCDML.FUNC_setGBA();
LCDML . OTHER_jumpToFunc ( UI_func_voice_select ) ;
}
else if ( ( millis ( ) - g_LCDML_CONTROL_button_press_time [ ENC_R ] ) > = g_LCDML_CONTROL_button_short_press )
else if ( ( millis ( ) - g_LCDML_CONTROL_button_press_time [ ENC_R ] ) > = BUT_DEBOUNCE_MS )
{
# ifdef DEBUG
Serial . println ( F ( " ENC-R short " ) ) ;
@ -644,7 +640,7 @@ void lcdml_menu_control(void)
g_LCDML_CONTROL_button_press_time [ ENC_L ] = millis ( ) ;
//Reset for left right action
}
else if ( ( millis ( ) - g_LCDML_CONTROL_button_press_time [ ENC_L ] ) > = g_LCDML_CONTROL_button_long_press )
else if ( ( millis ( ) - g_LCDML_CONTROL_button_press_time [ ENC_L ] ) > = LONG_BUTTON_PRESS )
{
# ifdef DEBUG
Serial . println ( F ( " ENC-L long " ) ) ;
@ -654,7 +650,7 @@ void lcdml_menu_control(void)
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 )
else if ( ( millis ( ) - g_LCDML_CONTROL_button_press_time [ ENC_L ] ) > = BUT_DEBOUNCE_MS )
{
//LCDML.BT_enter();
# ifdef DEBUG
@ -837,12 +833,11 @@ void UI_func_reverb_roomsize(uint8_t param)
configuration . fx . reverb_roomsize = constrain ( configuration . fx . reverb_roomsize + ENCODER [ ENC_R ] . speed ( ) , REVERB_ROOMSIZE_MIN , REVERB_ROOMSIZE_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . fx . reverb_roomsize = constrain ( configuration . fx . reverb_roomsize - ENCODER [ ENC_R ] . speed ( ) , REVERB_ROOMSIZE_MIN , REVERB_ROOMSIZE_MAX ) ;
lcd_display_bar_int ( " Reverb Room " , configuration . fx . reverb_roomsize , 1.0 , REVERB_ROOMSIZE_MIN , REVERB_ROOMSIZE_MAX , 3 , false , false , false , false ) ;
freeverb_r . roomsize ( mapfloat ( configuration . fx . reverb_roomsize , REVERB_ROOMSIZE_MIN , REVERB_ROOMSIZE_MAX , 0.0 , 1.0 ) ) ;
freeverb_l . roomsize ( mapfloat ( configuration . fx . reverb_roomsize , REVERB_ROOMSIZE_MIN , REVERB_ROOMSIZE_MAX , 0.0 , 1.0 ) ) ;
}
lcd_display_bar_int ( " Reverb Room " , configuration . fx . reverb_roomsize , 1.0 , REVERB_ROOMSIZE_MIN , REVERB_ROOMSIZE_MAX , 3 , false , false , false , false ) ;
freeverb_r . roomsize ( mapfloat ( configuration . fx . reverb_roomsize , REVERB_ROOMSIZE_MIN , REVERB_ROOMSIZE_MAX , 0.0 , 1.0 ) ) ;
freeverb_l . roomsize ( mapfloat ( configuration . fx . reverb_roomsize , REVERB_ROOMSIZE_MIN , REVERB_ROOMSIZE_MAX , 0.0 , 1.0 ) ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -871,12 +866,12 @@ void UI_func_reverb_damping(uint8_t param)
configuration . fx . reverb_damping = constrain ( configuration . fx . reverb_damping + ENCODER [ ENC_R ] . speed ( ) , REVERB_DAMPING_MIN , REVERB_DAMPING_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . fx . reverb_damping = constrain ( configuration . fx . reverb_damping - ENCODER [ ENC_R ] . speed ( ) , REVERB_DAMPING_MIN , REVERB_DAMPING_MAX ) ;
}
lcd_display_bar_int ( " Reverb Damp. " , configuration . fx . reverb_damping , 1.0 , REVERB_DAMPING_MIN , REVERB_DAMPING_MAX , 3 , false , false , false , false ) ;
lcd_display_bar_int ( " Reverb Damp. " , configuration . fx . reverb_damping , 1.0 , REVERB_DAMPING_MIN , REVERB_DAMPING_MAX , 3 , false , false , false , false ) ;
freeverb_r . damping ( mapfloat ( configuration . fx . reverb_damping , REVERB_DAMPING_MIN , REVERB_DAMPING_MAX , 0.0 , 1.0 ) ) ;
freeverb_l . damping ( mapfloat ( configuration . fx . reverb_damping , REVERB_DAMPING_MIN , REVERB_DAMPING_MAX , 0.0 , 1.0 ) ) ;
}
freeverb_r . damping ( mapfloat ( configuration . fx . reverb_damping , REVERB_DAMPING_MIN , REVERB_DAMPING_MAX , 0.0 , 1.0 ) ) ;
freeverb_l . damping ( mapfloat ( configuration . fx . reverb_damping , REVERB_DAMPING_MIN , REVERB_DAMPING_MAX , 0.0 , 1.0 ) ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -910,12 +905,12 @@ void UI_func_reverb_send(uint8_t param)
configuration . dexed [ instance_id ] . reverb_send = constrain ( configuration . dexed [ instance_id ] . reverb_send + ENCODER [ ENC_R ] . speed ( ) , REVERB_SEND_MIN , REVERB_SEND_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . reverb_send = constrain ( configuration . dexed [ instance_id ] . reverb_send - ENCODER [ ENC_R ] . speed ( ) , REVERB_SEND_MIN , REVERB_SEND_MAX ) ;
}
lcd_display_bar_int ( " Reverb Send " , configuration . dexed [ instance_id ] . reverb_send , 1.0 , REVERB_SEND_MIN , REVERB_SEND_MAX , 3 , false , false , false , false ) ;
lcd_display_bar_int ( " Reverb Send " , configuration . dexed [ instance_id ] . reverb_send , 1.0 , REVERB_SEND_MIN , REVERB_SEND_MAX , 3 , false , false , false , false ) ;
reverb_send_mixer_r . gain ( instance_id , configuration . dexed [ instance_id ] . reverb_send / 100.0 ) ;
reverb_send_mixer_l . gain ( instance_id , configuration . dexed [ instance_id ] . reverb_send / 100.0 ) ;
}
reverb_send_mixer_r . gain ( instance_id , configuration . dexed [ instance_id ] . reverb_send / 100.0 ) ;
reverb_send_mixer_l . gain ( instance_id , configuration . dexed [ instance_id ] . reverb_send / 100.0 ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -949,12 +944,12 @@ void UI_func_reverb_level(uint8_t param)
configuration . fx . reverb_level = constrain ( configuration . fx . reverb_level + ENCODER [ ENC_R ] . speed ( ) , REVERB_LEVEL_MIN , REVERB_LEVEL_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . fx . reverb_level = constrain ( configuration . fx . reverb_level - ENCODER [ ENC_R ] . speed ( ) , REVERB_LEVEL_MIN , REVERB_LEVEL_MAX ) ;
}
lcd_display_bar_int ( " Reverb Level " , configuration . fx . reverb_level , 1.0 , REVERB_LEVEL_MIN , REVERB_LEVEL_MAX , 3 , false , false , false , true ) ;
lcd_display_bar_int ( " Reverb Level " , configuration . fx . reverb_level , 1.0 , REVERB_LEVEL_MIN , REVERB_LEVEL_MAX , 3 , false , false , false , true ) ;
master_mixer_r . gain ( REVERB , mapfloat ( configuration . fx . reverb_level , REVERB_LEVEL_MIN , REVERB_LEVEL_MAX , 0.0 , 1.0 ) ) ;
master_mixer_l . gain ( REVERB , mapfloat ( configuration . fx . reverb_level , REVERB_LEVEL_MIN , REVERB_LEVEL_MAX , 0.0 , 1.0 ) ) ;
}
master_mixer_r . gain ( REVERB , mapfloat ( configuration . fx . reverb_level , REVERB_LEVEL_MIN , REVERB_LEVEL_MAX , 0.0 , 1.0 ) ) ;
master_mixer_l . gain ( REVERB , mapfloat ( configuration . fx . reverb_level , REVERB_LEVEL_MIN , REVERB_LEVEL_MAX , 0.0 , 1.0 ) ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -983,11 +978,10 @@ void UI_func_chorus_frequency(uint8_t param)
configuration . fx . chorus_frequency = constrain ( configuration . fx . chorus_frequency + ENCODER [ ENC_R ] . speed ( ) , CHORUS_FREQUENCY_MIN , CHORUS_FREQUENCY_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . fx . chorus_frequency = constrain ( configuration . fx . chorus_frequency - ENCODER [ ENC_R ] . speed ( ) , CHORUS_FREQUENCY_MIN , CHORUS_FREQUENCY_MAX ) ;
lcd_display_bar_float ( " Chorus Frq. " , configuration . fx . chorus_frequency , 0.1 , CHORUS_FREQUENCY_MIN , CHORUS_FREQUENCY_MAX , 2 , 1 , false , false , false , false ) ;
chorus_modulator . frequency ( configuration . fx . chorus_frequency / 10.0 ) ;
}
lcd_display_bar_float ( " Chorus Frq. " , configuration . fx . chorus_frequency , 0.1 , CHORUS_FREQUENCY_MIN , CHORUS_FREQUENCY_MAX , 2 , 1 , false , false , false , false ) ;
chorus_modulator . frequency ( configuration . fx . chorus_frequency / 10.0 ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -1058,11 +1052,11 @@ void UI_func_chorus_depth(uint8_t param)
configuration . fx . chorus_depth = constrain ( configuration . fx . chorus_depth + ENCODER [ ENC_R ] . speed ( ) , CHORUS_DEPTH_MIN , CHORUS_DEPTH_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . fx . chorus_depth = constrain ( configuration . fx . chorus_depth - ENCODER [ ENC_R ] . speed ( ) , CHORUS_DEPTH_MIN , CHORUS_DEPTH_MAX ) ;
}
lcd_display_bar_int ( " Chorus Dpt. " , configuration . fx . chorus_depth , 1.0 , CHORUS_DEPTH_MIN , CHORUS_DEPTH_MAX , 3 , false , false , false , false ) ;
lcd_display_bar_int ( " Chorus Dpt. " , configuration . fx . chorus_depth , 1.0 , CHORUS_DEPTH_MIN , CHORUS_DEPTH_MAX , 3 , false , false , false , false ) ;
chorus_modulator . amplitude ( configuration . fx . chorus_depth / 100.0 ) ;
}
chorus_modulator . amplitude ( configuration . fx . chorus_depth / 100.0 ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -1096,12 +1090,11 @@ void UI_func_chorus_send(uint8_t param)
configuration . dexed [ instance_id ] . chorus_send = constrain ( configuration . dexed [ instance_id ] . chorus_send + ENCODER [ ENC_R ] . speed ( ) , CHORUS_SEND_MIN , CHORUS_SEND_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . chorus_send = constrain ( configuration . dexed [ instance_id ] . chorus_send - ENCODER [ ENC_R ] . speed ( ) , CHORUS_SEND_MIN , CHORUS_SEND_MAX ) ;
lcd_display_bar_int ( " Chorus Send " , configuration . dexed [ instance_id ] . chorus_send , 1.0 , CHORUS_SEND_MIN , CHORUS_SEND_MAX , 3 , false , false , false , false ) ;
chorus_send_mixer_r . gain ( instance_id , configuration . dexed [ instance_id ] . chorus_send / 100.0 ) ;
chorus_send_mixer_l . gain ( instance_id , configuration . dexed [ instance_id ] . chorus_send / 100.0 ) ;
}
lcd_display_bar_int ( " Chorus Send " , configuration . dexed [ instance_id ] . chorus_send , 1.0 , CHORUS_SEND_MIN , CHORUS_SEND_MAX , 3 , false , false , false , false ) ;
chorus_send_mixer_r . gain ( instance_id , configuration . dexed [ instance_id ] . chorus_send / 100.0 ) ;
chorus_send_mixer_l . gain ( instance_id , configuration . dexed [ instance_id ] . chorus_send / 100.0 ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -1135,12 +1128,12 @@ void UI_func_chorus_level(uint8_t param)
configuration . fx . chorus_level = constrain ( configuration . fx . chorus_level + ENCODER [ ENC_R ] . speed ( ) , CHORUS_LEVEL_MIN , CHORUS_LEVEL_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . fx . chorus_level = constrain ( configuration . fx . chorus_level - ENCODER [ ENC_R ] . speed ( ) , CHORUS_LEVEL_MIN , CHORUS_LEVEL_MAX ) ;
}
lcd_display_bar_int ( " Chorus Lvl. " , configuration . fx . chorus_level , 1.0 , CHORUS_LEVEL_MIN , CHORUS_LEVEL_MAX , 3 , false , false , false , false ) ;
lcd_display_bar_int ( " Chorus Lvl. " , configuration . fx . chorus_level , 1.0 , CHORUS_LEVEL_MIN , CHORUS_LEVEL_MAX , 3 , false , false , false , false ) ;
master_mixer_r . gain ( CHORUS , mapfloat ( configuration . fx . chorus_level , CHORUS_LEVEL_MIN , CHORUS_LEVEL_MAX , 0.0 , 1.0 ) ) ;
master_mixer_l . gain ( CHORUS , mapfloat ( configuration . fx . chorus_level , CHORUS_LEVEL_MIN , CHORUS_LEVEL_MAX , 0.0 , 1.0 ) ) ;
}
master_mixer_r . gain ( CHORUS , mapfloat ( configuration . fx . chorus_level , CHORUS_LEVEL_MIN , CHORUS_LEVEL_MAX , 0.0 , 1.0 ) ) ;
master_mixer_l . gain ( CHORUS , mapfloat ( configuration . fx . chorus_level , CHORUS_LEVEL_MIN , CHORUS_LEVEL_MAX , 0.0 , 1.0 ) ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -1169,12 +1162,12 @@ void UI_func_delay_time(uint8_t param)
configuration . fx . delay_time = constrain ( configuration . fx . delay_time + ENCODER [ ENC_R ] . speed ( ) , DELAY_TIME_MIN , DELAY_TIME_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . fx . delay_time = constrain ( configuration . fx . delay_time - ENCODER [ ENC_R ] . speed ( ) , DELAY_TIME_MIN , DELAY_TIME_MAX ) ;
}
lcd_display_bar_int ( " Delay Time " , configuration . fx . delay_time , 10.0 , DELAY_TIME_MIN , DELAY_TIME_MAX , 3 , false , false , false , true ) ;
lcd_display_bar_int ( " Delay Time " , configuration . fx . delay_time , 10.0 , DELAY_TIME_MIN , DELAY_TIME_MAX , 3 , false , false , false , true ) ;
delay_r . delay ( 0 , configuration . fx . delay_time * 10 ) ;
delay_l . delay ( 0 , configuration . fx . delay_time * 10 ) ;
}
delay_r . delay ( 0 , configuration . fx . delay_time * 10 ) ;
delay_l . delay ( 0 , configuration . fx . delay_time * 10 ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -1203,13 +1196,13 @@ void UI_func_delay_feedback(uint8_t param)
configuration . fx . delay_feedback = constrain ( configuration . fx . delay_feedback + ENCODER [ ENC_R ] . speed ( ) , DELAY_FEEDBACK_MIN , DELAY_FEEDBACK_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . fx . delay_feedback = constrain ( configuration . fx . delay_feedback - ENCODER [ ENC_R ] . speed ( ) , DELAY_FEEDBACK_MIN , DELAY_FEEDBACK_MAX ) ;
}
lcd_display_bar_int ( " Delay Feedb. " , configuration . fx . delay_feedback , 1.0 , DELAY_FEEDBACK_MIN , DELAY_FEEDBACK_MAX , 3 , false , false , false , false ) ;
lcd_display_bar_int ( " Delay Feedb. " , configuration . fx . delay_feedback , 1.0 , DELAY_FEEDBACK_MIN , DELAY_FEEDBACK_MAX , 3 , false , false , false , false ) ;
delay_fb_mixer_r . gain ( 1 , configuration . fx . delay_feedback / 100.0 ) ; // amount of feedback
delay_fb_mixer_l . gain ( 1 , configuration . fx . delay_feedback / 100.0 ) ; // amount of feedback
//delay_fb_mixer.gain(0, 1.0 - configuration.fx.delay_feedback / 200.0); // original signal
}
delay_fb_mixer_r . gain ( 1 , configuration . fx . delay_feedback / 100.0 ) ; // amount of feedback
delay_fb_mixer_l . gain ( 1 , configuration . fx . delay_feedback / 100.0 ) ; // amount of feedback
//delay_fb_mixer.gain(0, 1.0 - configuration.fx.delay_feedback / 200.0); // original signal
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -1243,12 +1236,12 @@ void UI_func_delay_send(uint8_t param)
configuration . dexed [ instance_id ] . delay_send = constrain ( configuration . dexed [ instance_id ] . delay_send + ENCODER [ ENC_R ] . speed ( ) , DELAY_SEND_MIN , DELAY_SEND_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . delay_send = constrain ( configuration . dexed [ instance_id ] . delay_send - ENCODER [ ENC_R ] . speed ( ) , DELAY_SEND_MIN , DELAY_SEND_MAX ) ;
}
lcd_display_bar_int ( " Delay Send " , configuration . dexed [ instance_id ] . delay_send , 1.0 , DELAY_SEND_MIN , DELAY_SEND_MAX , 3 , false , false , false , false ) ;
lcd_display_bar_int ( " Delay Send " , configuration . dexed [ instance_id ] . delay_send , 1.0 , DELAY_SEND_MIN , DELAY_SEND_MAX , 3 , false , false , false , false ) ;
delay_send_mixer_r . gain ( instance_id , configuration . dexed [ instance_id ] . delay_send / 100.0 ) ;
delay_send_mixer_l . gain ( instance_id , configuration . dexed [ instance_id ] . delay_send / 100.0 ) ;
}
delay_send_mixer_r . gain ( instance_id , configuration . dexed [ instance_id ] . delay_send / 100.0 ) ;
delay_send_mixer_l . gain ( instance_id , configuration . dexed [ instance_id ] . delay_send / 100.0 ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -1282,12 +1275,12 @@ void UI_func_delay_level(uint8_t param)
configuration . fx . delay_level = constrain ( configuration . fx . delay_level + ENCODER [ ENC_R ] . speed ( ) , DELAY_LEVEL_MIN , DELAY_LEVEL_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . fx . delay_level = constrain ( configuration . fx . delay_level - ENCODER [ ENC_R ] . speed ( ) , DELAY_LEVEL_MIN , DELAY_LEVEL_MAX ) ;
}
lcd_display_bar_int ( " Delay Lvl. " , configuration . fx . delay_level , 1.0 , DELAY_LEVEL_MIN , DELAY_LEVEL_MAX , 3 , false , false , false , false ) ;
lcd_display_bar_int ( " Delay Lvl. " , configuration . fx . delay_level , 1.0 , DELAY_LEVEL_MIN , DELAY_LEVEL_MAX , 3 , false , false , false , false ) ;
master_mixer_r . gain ( DELAY , mapfloat ( configuration . fx . delay_level , DELAY_LEVEL_MIN , DELAY_LEVEL_MAX , 0.0 , 1.0 ) ) ;
master_mixer_l . gain ( DELAY , mapfloat ( configuration . fx . delay_level , DELAY_LEVEL_MIN , DELAY_LEVEL_MAX , 0.0 , 1.0 ) ) ;
}
master_mixer_r . gain ( DELAY , mapfloat ( configuration . fx . delay_level , DELAY_LEVEL_MIN , DELAY_LEVEL_MAX , 0.0 , 1.0 ) ) ;
master_mixer_l . gain ( DELAY , mapfloat ( configuration . fx . delay_level , DELAY_LEVEL_MIN , DELAY_LEVEL_MAX , 0.0 , 1.0 ) ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -1321,11 +1314,11 @@ void UI_func_filter_cutoff(uint8_t param)
configuration . dexed [ instance_id ] . filter_cutoff = constrain ( configuration . dexed [ instance_id ] . filter_cutoff + ENCODER [ ENC_R ] . speed ( ) , FILTER_CUTOFF_MIN , FILTER_CUTOFF_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . filter_cutoff = constrain ( configuration . dexed [ instance_id ] . filter_cutoff - ENCODER [ ENC_R ] . speed ( ) , FILTER_CUTOFF_MIN , FILTER_CUTOFF_MAX ) ;
}
lcd_display_bar_int ( " Filter Cut " , configuration . dexed [ instance_id ] . filter_cutoff , 1.0 , FILTER_CUTOFF_MIN , FILTER_CUTOFF_MAX , 3 , false , false , false , false ) ;
lcd_display_bar_int ( " Filter Cut " , configuration . dexed [ instance_id ] . filter_cutoff , 1.0 , FILTER_CUTOFF_MIN , FILTER_CUTOFF_MAX , 3 , false , false , false , false ) ;
MicroDexed [ instance_id ] - > fx . Cutoff = mapfloat ( configuration . dexed [ instance_id ] . filter_cutoff , FILTER_CUTOFF_MIN , FILTER_CUTOFF_MAX , 1.0 , 0.0 ) ;
}
MicroDexed [ instance_id ] - > fx . Cutoff = mapfloat ( configuration . dexed [ instance_id ] . filter_cutoff , FILTER_CUTOFF_MIN , FILTER_CUTOFF_MAX , 1.0 , 0.0 ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -1364,11 +1357,11 @@ void UI_func_filter_resonance(uint8_t param)
configuration . dexed [ instance_id ] . filter_resonance = constrain ( configuration . dexed [ instance_id ] . filter_resonance + ENCODER [ ENC_R ] . speed ( ) , FILTER_RESONANCE_MIN , FILTER_RESONANCE_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . filter_resonance = constrain ( configuration . dexed [ instance_id ] . filter_resonance - ENCODER [ ENC_R ] . speed ( ) , FILTER_RESONANCE_MIN , FILTER_RESONANCE_MAX ) ;
}
lcd_display_bar_int ( " Filter Res " , configuration . dexed [ instance_id ] . filter_resonance , 1.0 , FILTER_RESONANCE_MIN , FILTER_RESONANCE_MAX , 3 , false , false , false , false ) ;
lcd_display_bar_int ( " Filter Res " , configuration . dexed [ instance_id ] . filter_resonance , 1.0 , FILTER_RESONANCE_MIN , FILTER_RESONANCE_MAX , 3 , false , false , false , false ) ;
MicroDexed [ instance_id ] - > fx . Reso = mapfloat ( configuration . dexed [ instance_id ] . filter_resonance , FILTER_RESONANCE_MIN , FILTER_RESONANCE_MAX , 1.0 , 0.0 ) ;
}
MicroDexed [ instance_id ] - > fx . Reso = mapfloat ( configuration . dexed [ instance_id ] . filter_resonance , FILTER_RESONANCE_MIN , FILTER_RESONANCE_MAX , 1.0 , 0.0 ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -1408,12 +1401,12 @@ void UI_func_transpose(uint8_t param)
configuration . dexed [ instance_id ] . transpose = constrain ( configuration . dexed [ instance_id ] . transpose + ENCODER [ ENC_R ] . speed ( ) , TRANSPOSE_MIN , TRANSPOSE_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . transpose = constrain ( configuration . dexed [ instance_id ] . transpose - ENCODER [ ENC_R ] . speed ( ) , TRANSPOSE_MIN , TRANSPOSE_MAX ) ;
}
lcd_display_meter_int ( " Transpose " , configuration . dexed [ instance_id ] . transpose , 1.0 , - 24.0 , TRANSPOSE_MIN , TRANSPOSE_MAX , 3 , false , false , true , true ) ;
lcd_display_meter_int ( " Transpose " , configuration . dexed [ instance_id ] . transpose , 1.0 , - 24.0 , TRANSPOSE_MIN , TRANSPOSE_MAX , 3 , false , false , true , true ) ;
MicroDexed [ instance_id ] - > data [ DEXED_VOICE_OFFSET + DEXED_TRANSPOSE ] = configuration . dexed [ instance_id ] . transpose ;
MicroDexed [ instance_id ] - > notesOff ( ) ;
}
MicroDexed [ instance_id ] - > data [ DEXED_VOICE_OFFSET + DEXED_TRANSPOSE ] = configuration . dexed [ instance_id ] . transpose ;
MicroDexed [ instance_id ] - > notesOff ( ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -1452,12 +1445,12 @@ void UI_func_tune(uint8_t param)
configuration . dexed [ instance_id ] . tune = constrain ( configuration . dexed [ instance_id ] . tune + ENCODER [ ENC_R ] . speed ( ) , TUNE_MIN , TUNE_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . tune = constrain ( configuration . dexed [ instance_id ] . tune - ENCODER [ ENC_R ] . speed ( ) , TUNE_MIN , TUNE_MAX ) ;
}
lcd_display_meter_int ( " Fine Tune " , configuration . dexed [ instance_id ] . tune , 1.0 , - 100.0 , TUNE_MIN , TUNE_MAX , 3 , false , false , true , false ) ;
lcd_display_meter_int ( " Fine Tune " , configuration . dexed [ instance_id ] . tune , 1.0 , - 100.0 , TUNE_MIN , TUNE_MAX , 3 , false , false , true , false ) ;
MicroDexed [ instance_id ] - > controllers . masterTune = ( int ( ( configuration . dexed [ instance_id ] . tune - 100 ) / 100.0 * 0x4000 ) < < 11 ) * ( 1.0 / 12 ) ;
MicroDexed [ instance_id ] - > doRefreshVoice ( ) ;
}
MicroDexed [ instance_id ] - > controllers . masterTune = ( int ( ( configuration . dexed [ instance_id ] . tune - 100 ) / 100.0 * 0x4000 ) < < 11 ) * ( 1.0 / 12 ) ;
MicroDexed [ instance_id ] - > doRefreshVoice ( ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -1557,11 +1550,11 @@ void UI_func_lowest_note(uint8_t param)
configuration . dexed [ instance_id ] . lowest_note = constrain ( configuration . dexed [ instance_id ] . lowest_note + ENCODER [ ENC_R ] . speed ( ) , INSTANCE_LOWEST_NOTE_MIN , INSTANCE_LOWEST_NOTE_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . lowest_note = constrain ( configuration . dexed [ instance_id ] . lowest_note - ENCODER [ ENC_R ] . speed ( ) , INSTANCE_LOWEST_NOTE_MIN , INSTANCE_LOWEST_NOTE_MAX ) ;
getNoteName ( note_name , configuration . dexed [ instance_id ] . lowest_note ) ;
lcd . setCursor ( 1 , 1 ) ;
lcd . print ( note_name ) ;
}
getNoteName ( note_name , configuration . dexed [ instance_id ] . lowest_note ) ;
lcd . setCursor ( 1 , 1 ) ;
lcd . print ( note_name ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -1605,11 +1598,11 @@ void UI_func_highest_note(uint8_t param)
configuration . dexed [ instance_id ] . highest_note = constrain ( configuration . dexed [ instance_id ] . highest_note + ENCODER [ ENC_R ] . speed ( ) , INSTANCE_HIGHEST_NOTE_MIN , INSTANCE_HIGHEST_NOTE_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . highest_note = constrain ( configuration . dexed [ instance_id ] . highest_note - ENCODER [ ENC_R ] . speed ( ) , INSTANCE_HIGHEST_NOTE_MIN , INSTANCE_HIGHEST_NOTE_MAX ) ;
getNoteName ( note_name , configuration . dexed [ instance_id ] . highest_note ) ;
lcd . setCursor ( 1 , 1 ) ;
lcd . print ( note_name ) ;
}
getNoteName ( note_name , configuration . dexed [ instance_id ] . highest_note ) ;
lcd . setCursor ( 1 , 1 ) ;
lcd . print ( note_name ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -1647,12 +1640,10 @@ void UI_func_sound_intensity(uint8_t param)
configuration . dexed [ instance_id ] . sound_intensity = constrain ( configuration . dexed [ instance_id ] . sound_intensity + ENCODER [ ENC_R ] . speed ( ) , SOUND_INTENSITY_MIN , SOUND_INTENSITY_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . sound_intensity = constrain ( configuration . dexed [ instance_id ] . sound_intensity - ENCODER [ ENC_R ] . speed ( ) , SOUND_INTENSITY_MIN , SOUND_INTENSITY_MAX ) ;
lcd_display_bar_float ( " Voice Level " , float ( configuration . dexed [ instance_id ] . sound_intensity ) , 1.0 , SOUND_INTENSITY_MIN , SOUND_INTENSITY_MAX , 3 , 0 , false , false , false , false ) ;
dexed_level [ instance_id ] - > gain ( mapfloat ( configuration . dexed [ instance_id ] . sound_intensity , SOUND_INTENSITY_MIN , SOUND_INTENSITY_MAX , 0.0 , SOUND_INTENSITY_AMP_MAX ) ) ;
}
lcd_display_bar_float ( " Voice Level " , float ( configuration . dexed [ instance_id ] . sound_intensity ) , 1.0 , SOUND_INTENSITY_MIN , SOUND_INTENSITY_MAX , 3 , 0 , false , false , false , false ) ;
dexed_level [ instance_id ] - > gain ( mapfloat ( configuration . dexed [ instance_id ] . sound_intensity , SOUND_INTENSITY_MIN , SOUND_INTENSITY_MAX , 0.0 , SOUND_INTENSITY_AMP_MAX ) ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -1808,11 +1799,11 @@ void UI_func_polyphony(uint8_t param)
configuration . dexed [ instance_id ] . polyphony = constrain ( configuration . dexed [ instance_id ] . polyphony + ENCODER [ ENC_R ] . speed ( ) , POLYPHONY_MIN , POLYPHONY_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . polyphony = constrain ( configuration . dexed [ instance_id ] . polyphony - ENCODER [ ENC_R ] . speed ( ) , POLYPHONY_MIN , POLYPHONY_MAX ) ;
}
lcd_display_bar_int ( " Polyphony " , configuration . dexed [ instance_id ] . polyphony , 1.0 , POLYPHONY_MIN , POLYPHONY_MAX , 3 , false , false , false , false ) ;
lcd_display_bar_int ( " Polyphony " , configuration . dexed [ instance_id ] . polyphony , 1.0 , POLYPHONY_MIN , POLYPHONY_MAX , 3 , false , false , false , false ) ;
MicroDexed [ instance_id ] - > setMaxNotes ( configuration . dexed [ instance_id ] . polyphony ) ;
}
MicroDexed [ instance_id ] - > setMaxNotes ( configuration . dexed [ instance_id ] . polyphony ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -1851,10 +1842,10 @@ void UI_func_engine(uint8_t param)
configuration . dexed [ instance_id ] . engine = constrain ( configuration . dexed [ instance_id ] . engine + 1 , ENGINE_MIN , ENGINE_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . engine = constrain ( configuration . dexed [ instance_id ] . engine - 1 , ENGINE_MIN , ENGINE_MAX ) ;
MicroDexed [ instance_id ] - > setEngineType ( configuration . dexed [ instance_id ] . engine ) ;
}
MicroDexed [ instance_id ] - > setEngineType ( configuration . dexed [ instance_id ] . engine ) ;
lcd . setCursor ( 0 , 1 ) ;
switch ( configuration . dexed [ instance_id ] . engine )
{
@ -1905,10 +1896,10 @@ void UI_func_mono_poly(uint8_t param)
configuration . dexed [ instance_id ] . monopoly = constrain ( configuration . dexed [ instance_id ] . monopoly + 1 , MONOPOLY_MIN , MONOPOLY_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . monopoly = constrain ( configuration . dexed [ instance_id ] . monopoly - 1 , MONOPOLY_MIN , MONOPOLY_MAX ) ;
MicroDexed [ instance_id ] - > setMonoMode ( ! configuration . dexed [ instance_id ] . monopoly ) ;
}
MicroDexed [ instance_id ] - > setMonoMode ( ! configuration . dexed [ instance_id ] . monopoly ) ;
lcd . setCursor ( 0 , 1 ) ;
switch ( configuration . dexed [ instance_id ] . monopoly )
{
@ -1956,10 +1947,10 @@ void UI_func_note_refresh(uint8_t param)
configuration . dexed [ instance_id ] . note_refresh = constrain ( configuration . dexed [ instance_id ] . note_refresh + 1 , NOTE_REFRESH_MIN , NOTE_REFRESH_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . note_refresh = constrain ( configuration . dexed [ instance_id ] . note_refresh - 1 , NOTE_REFRESH_MIN , NOTE_REFRESH_MAX ) ;
MicroDexed [ instance_id ] - > setRefreshMode ( configuration . dexed [ instance_id ] . note_refresh ) ;
}
MicroDexed [ instance_id ] - > setRefreshMode ( configuration . dexed [ instance_id ] . note_refresh ) ;
lcd . setCursor ( 0 , 1 ) ;
switch ( configuration . dexed [ instance_id ] . note_refresh )
{
@ -2007,11 +1998,11 @@ void UI_func_pb_range(uint8_t param)
configuration . dexed [ instance_id ] . pb_range = constrain ( configuration . dexed [ instance_id ] . pb_range + ENCODER [ ENC_R ] . speed ( ) , PB_RANGE_MIN , PB_RANGE_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . pb_range = constrain ( configuration . dexed [ instance_id ] . pb_range - ENCODER [ ENC_R ] . speed ( ) , PB_RANGE_MIN , PB_RANGE_MAX ) ;
}
lcd_display_bar_int ( " PB Range " , configuration . dexed [ instance_id ] . pb_range , 1.0 , PB_RANGE_MIN , PB_RANGE_MAX , 2 , false , false , false , false ) ;
lcd_display_bar_int ( " PB Range " , configuration . dexed [ instance_id ] . pb_range , 1.0 , PB_RANGE_MIN , PB_RANGE_MAX , 2 , false , false , false , false ) ;
MicroDexed [ instance_id ] - > setPBController ( configuration . dexed [ instance_id ] . pb_range , configuration . dexed [ instance_id ] . pb_step ) ;
}
MicroDexed [ instance_id ] - > setPBController ( configuration . dexed [ instance_id ] . pb_range , configuration . dexed [ instance_id ] . pb_step ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -2050,11 +2041,11 @@ void UI_func_pb_step(uint8_t param)
configuration . dexed [ instance_id ] . pb_step = constrain ( configuration . dexed [ instance_id ] . pb_step + ENCODER [ ENC_R ] . speed ( ) , PB_STEP_MIN , PB_STEP_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . pb_step = constrain ( configuration . dexed [ instance_id ] . pb_step - ENCODER [ ENC_R ] . speed ( ) , PB_STEP_MIN , PB_STEP_MAX ) ;
}
lcd_display_bar_int ( " PB Step " , configuration . dexed [ instance_id ] . pb_step , 1.0 , PB_STEP_MIN , PB_STEP_MAX , 2 , false , false , false , false ) ;
lcd_display_bar_int ( " PB Step " , configuration . dexed [ instance_id ] . pb_step , 1.0 , PB_STEP_MIN , PB_STEP_MAX , 2 , false , false , false , false ) ;
MicroDexed [ instance_id ] - > setPBController ( configuration . dexed [ instance_id ] . pb_range , configuration . dexed [ instance_id ] . pb_step ) ;
}
MicroDexed [ instance_id ] - > setPBController ( configuration . dexed [ instance_id ] . pb_range , configuration . dexed [ instance_id ] . pb_step ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -2093,11 +2084,11 @@ void UI_func_mw_range(uint8_t param)
configuration . dexed [ instance_id ] . mw_range = constrain ( configuration . dexed [ instance_id ] . mw_range + ENCODER [ ENC_R ] . speed ( ) , MW_RANGE_MIN , MW_RANGE_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . mw_range = constrain ( configuration . dexed [ instance_id ] . mw_range - ENCODER [ ENC_R ] . speed ( ) , MW_RANGE_MIN , MW_RANGE_MAX ) ;
}
lcd_display_bar_int ( " MW Range " , configuration . dexed [ instance_id ] . mw_range , 1.0 , MW_RANGE_MIN , MW_RANGE_MAX , 2 , false , false , false , false ) ;
lcd_display_bar_int ( " MW Range " , configuration . dexed [ instance_id ] . mw_range , 1.0 , MW_RANGE_MIN , MW_RANGE_MAX , 2 , false , false , false , false ) ;
MicroDexed [ instance_id ] - > setMWController ( configuration . dexed [ instance_id ] . mw_range , configuration . dexed [ instance_id ] . mw_assign , configuration . dexed [ instance_id ] . mw_mode ) ;
}
MicroDexed [ instance_id ] - > setMWController ( configuration . dexed [ instance_id ] . mw_range , configuration . dexed [ instance_id ] . mw_assign , configuration . dexed [ instance_id ] . mw_mode ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -2136,10 +2127,10 @@ void UI_func_mw_assign(uint8_t param)
configuration . dexed [ instance_id ] . mw_assign = constrain ( configuration . dexed [ instance_id ] . mw_assign + 1 , MW_ASSIGN_MIN , MW_ASSIGN_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . mw_assign = constrain ( configuration . dexed [ instance_id ] . mw_assign - 1 , MW_ASSIGN_MIN , MW_ASSIGN_MAX ) ;
MicroDexed [ instance_id ] - > setMWController ( configuration . dexed [ instance_id ] . mw_range , configuration . dexed [ instance_id ] . mw_assign , configuration . dexed [ instance_id ] . mw_mode ) ;
}
MicroDexed [ instance_id ] - > setMWController ( configuration . dexed [ instance_id ] . mw_range , configuration . dexed [ instance_id ] . mw_assign , configuration . dexed [ instance_id ] . mw_mode ) ;
lcd . setCursor ( 0 , 1 ) ;
switch ( configuration . dexed [ instance_id ] . mw_assign )
{
@ -2205,11 +2196,11 @@ void UI_func_mw_mode(uint8_t param)
configuration . dexed [ instance_id ] . mw_mode = constrain ( configuration . dexed [ instance_id ] . mw_mode + 1 , MW_MODE_MIN , MW_MODE_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . mw_mode = constrain ( configuration . dexed [ instance_id ] . mw_mode - 1 , MW_MODE_MIN , MW_MODE_MAX ) ;
MicroDexed [ instance_id ] - > setMWController ( configuration . dexed [ instance_id ] . mw_range , configuration . dexed [ instance_id ] . mw_assign , configuration . dexed [ instance_id ] . mw_mode ) ;
MicroDexed [ instance_id ] - > controllers . refresh ( ) ;
}
MicroDexed [ instance_id ] - > setMWController ( configuration . dexed [ instance_id ] . mw_range , configuration . dexed [ instance_id ] . mw_assign , configuration . dexed [ instance_id ] . mw_mode ) ;
MicroDexed [ instance_id ] - > controllers . refresh ( ) ;
lcd . setCursor ( 0 , 1 ) ;
switch ( configuration . dexed [ instance_id ] . mw_mode )
{
@ -2260,11 +2251,11 @@ void UI_func_fc_range(uint8_t param)
configuration . dexed [ instance_id ] . fc_range = constrain ( configuration . dexed [ instance_id ] . fc_range + ENCODER [ ENC_R ] . speed ( ) , FC_RANGE_MIN , FC_RANGE_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . fc_range = constrain ( configuration . dexed [ instance_id ] . fc_range - ENCODER [ ENC_R ] . speed ( ) , FC_RANGE_MIN , FC_RANGE_MAX ) ;
}
lcd_display_bar_int ( " FC Range " , configuration . dexed [ instance_id ] . fc_range , 1.0 , FC_RANGE_MIN , FC_RANGE_MAX , 2 , false , false , false , false ) ;
lcd_display_bar_int ( " FC Range " , configuration . dexed [ instance_id ] . fc_range , 1.0 , FC_RANGE_MIN , FC_RANGE_MAX , 2 , false , false , false , false ) ;
MicroDexed [ instance_id ] - > setFCController ( configuration . dexed [ instance_id ] . fc_range , configuration . dexed [ instance_id ] . fc_assign , configuration . dexed [ instance_id ] . fc_mode ) ;
}
MicroDexed [ instance_id ] - > setFCController ( configuration . dexed [ instance_id ] . fc_range , configuration . dexed [ instance_id ] . fc_assign , configuration . dexed [ instance_id ] . fc_mode ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -2303,10 +2294,10 @@ void UI_func_fc_assign(uint8_t param)
configuration . dexed [ instance_id ] . fc_assign = constrain ( configuration . dexed [ instance_id ] . fc_assign + 1 , FC_ASSIGN_MIN , FC_ASSIGN_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . fc_assign = constrain ( configuration . dexed [ instance_id ] . fc_assign - 1 , FC_ASSIGN_MIN , FC_ASSIGN_MAX ) ;
MicroDexed [ instance_id ] - > setFCController ( configuration . dexed [ instance_id ] . fc_range , configuration . dexed [ instance_id ] . fc_assign , configuration . dexed [ instance_id ] . fc_mode ) ;
}
MicroDexed [ instance_id ] - > setFCController ( configuration . dexed [ instance_id ] . fc_range , configuration . dexed [ instance_id ] . fc_assign , configuration . dexed [ instance_id ] . fc_mode ) ;
lcd . setCursor ( 0 , 1 ) ;
switch ( configuration . dexed [ instance_id ] . fc_assign )
{
@ -2372,11 +2363,11 @@ void UI_func_fc_mode(uint8_t param)
configuration . dexed [ instance_id ] . fc_mode = constrain ( configuration . dexed [ instance_id ] . fc_mode + 1 , FC_MODE_MIN , FC_MODE_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . fc_mode = constrain ( configuration . dexed [ instance_id ] . fc_mode - 1 , FC_MODE_MIN , FC_MODE_MAX ) ;
MicroDexed [ instance_id ] - > setFCController ( configuration . dexed [ instance_id ] . fc_range , configuration . dexed [ instance_id ] . fc_assign , configuration . dexed [ instance_id ] . fc_mode ) ;
MicroDexed [ instance_id ] - > controllers . refresh ( ) ;
}
MicroDexed [ instance_id ] - > setFCController ( configuration . dexed [ instance_id ] . fc_range , configuration . dexed [ instance_id ] . fc_assign , configuration . dexed [ instance_id ] . fc_mode ) ;
MicroDexed [ instance_id ] - > controllers . refresh ( ) ;
lcd . setCursor ( 0 , 1 ) ;
switch ( configuration . dexed [ instance_id ] . fc_mode )
{
@ -2427,11 +2418,11 @@ void UI_func_bc_range(uint8_t param)
configuration . dexed [ instance_id ] . bc_range = constrain ( configuration . dexed [ instance_id ] . bc_range + ENCODER [ ENC_R ] . speed ( ) , BC_RANGE_MIN , BC_RANGE_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . bc_range = constrain ( configuration . dexed [ instance_id ] . bc_range - ENCODER [ ENC_R ] . speed ( ) , BC_RANGE_MIN , BC_RANGE_MAX ) ;
}
lcd_display_bar_int ( " BC Range " , configuration . dexed [ instance_id ] . bc_range , 1.0 , BC_RANGE_MIN , BC_RANGE_MAX , 2 , false , false , false , false ) ;
lcd_display_bar_int ( " BC Range " , configuration . dexed [ instance_id ] . bc_range , 1.0 , BC_RANGE_MIN , BC_RANGE_MAX , 2 , false , false , false , false ) ;
MicroDexed [ instance_id ] - > setBCController ( configuration . dexed [ instance_id ] . bc_range , configuration . dexed [ instance_id ] . bc_assign , configuration . dexed [ instance_id ] . bc_mode ) ;
}
MicroDexed [ instance_id ] - > setBCController ( configuration . dexed [ instance_id ] . bc_range , configuration . dexed [ instance_id ] . bc_assign , configuration . dexed [ instance_id ] . bc_mode ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -2470,10 +2461,10 @@ void UI_func_bc_assign(uint8_t param)
configuration . dexed [ instance_id ] . bc_assign = constrain ( configuration . dexed [ instance_id ] . bc_assign + 1 , BC_ASSIGN_MIN , BC_ASSIGN_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . bc_assign = constrain ( configuration . dexed [ instance_id ] . bc_assign - 1 , BC_ASSIGN_MIN , BC_ASSIGN_MAX ) ;
MicroDexed [ instance_id ] - > setBCController ( configuration . dexed [ instance_id ] . bc_range , configuration . dexed [ instance_id ] . bc_assign , configuration . dexed [ instance_id ] . bc_mode ) ;
}
MicroDexed [ instance_id ] - > setBCController ( configuration . dexed [ instance_id ] . bc_range , configuration . dexed [ instance_id ] . bc_assign , configuration . dexed [ instance_id ] . bc_mode ) ;
lcd . setCursor ( 0 , 1 ) ;
switch ( configuration . dexed [ instance_id ] . bc_assign )
{
@ -2539,11 +2530,11 @@ void UI_func_bc_mode(uint8_t param)
configuration . dexed [ instance_id ] . bc_mode = constrain ( configuration . dexed [ instance_id ] . bc_mode + 1 , BC_MODE_MIN , BC_MODE_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . bc_mode = constrain ( configuration . dexed [ instance_id ] . bc_mode - 1 , BC_MODE_MIN , BC_MODE_MAX ) ;
MicroDexed [ instance_id ] - > setBCController ( configuration . dexed [ instance_id ] . bc_range , configuration . dexed [ instance_id ] . bc_assign , configuration . dexed [ instance_id ] . bc_mode ) ;
MicroDexed [ instance_id ] - > controllers . refresh ( ) ;
}
MicroDexed [ instance_id ] - > setBCController ( configuration . dexed [ instance_id ] . bc_range , configuration . dexed [ instance_id ] . bc_assign , configuration . dexed [ instance_id ] . bc_mode ) ;
MicroDexed [ instance_id ] - > controllers . refresh ( ) ;
lcd . setCursor ( 0 , 1 ) ;
switch ( configuration . dexed [ instance_id ] . bc_mode )
{
@ -2594,11 +2585,11 @@ void UI_func_at_range(uint8_t param)
configuration . dexed [ instance_id ] . at_range = constrain ( configuration . dexed [ instance_id ] . at_range + ENCODER [ ENC_R ] . speed ( ) , AT_RANGE_MIN , AT_RANGE_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . at_range = constrain ( configuration . dexed [ instance_id ] . at_range - ENCODER [ ENC_R ] . speed ( ) , AT_RANGE_MIN , AT_RANGE_MAX ) ;
}
lcd_display_bar_int ( " AT Range " , configuration . dexed [ instance_id ] . at_range , 1.0 , AT_RANGE_MIN , AT_RANGE_MAX , 2 , false , false , false , false ) ;
lcd_display_bar_int ( " AT Range " , configuration . dexed [ instance_id ] . at_range , 1.0 , AT_RANGE_MIN , AT_RANGE_MAX , 2 , false , false , false , false ) ;
MicroDexed [ instance_id ] - > setATController ( configuration . dexed [ instance_id ] . at_range , configuration . dexed [ instance_id ] . at_assign , configuration . dexed [ instance_id ] . at_mode ) ;
}
MicroDexed [ instance_id ] - > setATController ( configuration . dexed [ instance_id ] . at_range , configuration . dexed [ instance_id ] . at_assign , configuration . dexed [ instance_id ] . at_mode ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -2637,10 +2628,10 @@ void UI_func_at_assign(uint8_t param)
configuration . dexed [ instance_id ] . at_assign = constrain ( configuration . dexed [ instance_id ] . at_assign + 1 , AT_ASSIGN_MIN , AT_ASSIGN_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . at_assign = constrain ( configuration . dexed [ instance_id ] . at_assign - 1 , AT_ASSIGN_MIN , AT_ASSIGN_MAX ) ;
MicroDexed [ instance_id ] - > setATController ( configuration . dexed [ instance_id ] . at_range , configuration . dexed [ instance_id ] . at_assign , configuration . dexed [ instance_id ] . at_mode ) ;
}
MicroDexed [ instance_id ] - > setATController ( configuration . dexed [ instance_id ] . at_range , configuration . dexed [ instance_id ] . at_assign , configuration . dexed [ instance_id ] . at_mode ) ;
lcd . setCursor ( 0 , 1 ) ;
switch ( configuration . dexed [ instance_id ] . at_assign )
{
@ -2706,11 +2697,11 @@ void UI_func_at_mode(uint8_t param)
configuration . dexed [ instance_id ] . at_mode = constrain ( configuration . dexed [ instance_id ] . at_mode + 1 , AT_MODE_MIN , AT_MODE_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . at_mode = constrain ( configuration . dexed [ instance_id ] . at_mode - 1 , AT_MODE_MIN , AT_MODE_MAX ) ;
MicroDexed [ instance_id ] - > setATController ( configuration . dexed [ instance_id ] . at_range , configuration . dexed [ instance_id ] . at_assign , configuration . dexed [ instance_id ] . at_mode ) ;
MicroDexed [ instance_id ] - > controllers . refresh ( ) ;
}
MicroDexed [ instance_id ] - > setATController ( configuration . dexed [ instance_id ] . at_range , configuration . dexed [ instance_id ] . at_assign , configuration . dexed [ instance_id ] . at_mode ) ;
MicroDexed [ instance_id ] - > controllers . refresh ( ) ;
lcd . setCursor ( 0 , 1 ) ;
switch ( configuration . dexed [ instance_id ] . at_mode )
{
@ -2761,10 +2752,10 @@ void UI_func_portamento_mode(uint8_t param)
configuration . dexed [ instance_id ] . portamento_mode = constrain ( configuration . dexed [ instance_id ] . portamento_mode + 1 , PORTAMENTO_MODE_MIN , PORTAMENTO_MODE_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . portamento_mode = constrain ( configuration . dexed [ instance_id ] . portamento_mode - 1 , PORTAMENTO_MODE_MIN , PORTAMENTO_MODE_MAX ) ;
MicroDexed [ instance_id ] - > setPortamentoMode ( configuration . dexed [ instance_id ] . portamento_mode , configuration . dexed [ instance_id ] . portamento_glissando , configuration . dexed [ instance_id ] . portamento_time ) ;
}
MicroDexed [ instance_id ] - > setPortamentoMode ( configuration . dexed [ instance_id ] . portamento_mode , configuration . dexed [ instance_id ] . portamento_glissando , configuration . dexed [ instance_id ] . portamento_time ) ;
lcd . setCursor ( 0 , 1 ) ;
switch ( configuration . dexed [ instance_id ] . portamento_mode )
{
@ -2818,10 +2809,10 @@ void UI_func_portamento_glissando(uint8_t param)
configuration . dexed [ instance_id ] . portamento_glissando = constrain ( configuration . dexed [ instance_id ] . portamento_glissando + 1 , PORTAMENTO_GLISSANDO_MIN , PORTAMENTO_GLISSANDO_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . portamento_glissando = constrain ( configuration . dexed [ instance_id ] . portamento_glissando - 1 , PORTAMENTO_GLISSANDO_MIN , PORTAMENTO_GLISSANDO_MAX ) ;
MicroDexed [ instance_id ] - > setPortamentoMode ( configuration . dexed [ instance_id ] . portamento_mode , configuration . dexed [ instance_id ] . portamento_glissando , configuration . dexed [ instance_id ] . portamento_time ) ;
}
MicroDexed [ instance_id ] - > setPortamentoMode ( configuration . dexed [ instance_id ] . portamento_mode , configuration . dexed [ instance_id ] . portamento_glissando , configuration . dexed [ instance_id ] . portamento_time ) ;
lcd . setCursor ( 0 , 1 ) ;
switch ( configuration . dexed [ instance_id ] . portamento_glissando )
{
@ -2869,11 +2860,12 @@ void UI_func_portamento_time(uint8_t param)
configuration . dexed [ instance_id ] . portamento_time = constrain ( configuration . dexed [ instance_id ] . portamento_time + ENCODER [ ENC_R ] . speed ( ) , PORTAMENTO_TIME_MIN , PORTAMENTO_TIME_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . portamento_time = constrain ( configuration . dexed [ instance_id ] . portamento_time - ENCODER [ ENC_R ] . speed ( ) , PORTAMENTO_TIME_MIN , PORTAMENTO_TIME_MAX ) ;
}
lcd_display_bar_int ( " Portam. Time " , configuration . dexed [ instance_id ] . portamento_time , 1.0 , PORTAMENTO_TIME_MIN , PORTAMENTO_TIME_MAX , 2 , false , false , false , false ) ;
lcd_display_bar_int ( " Portam. Time " , configuration . dexed [ instance_id ] . portamento_time , 1.0 , PORTAMENTO_TIME_MIN , PORTAMENTO_TIME_MAX , 2 , false , false , false , false ) ;
MicroDexed [ instance_id ] - > setPortamentoMode ( configuration . dexed [ instance_id ] . portamento_mode , configuration . dexed [ instance_id ] . portamento_glissando , configuration . dexed [ instance_id ] . portamento_time ) ;
MicroDexed [ instance_id ] - > setPortamentoMode ( configuration . dexed [ instance_id ] . portamento_mode , configuration . dexed [ instance_id ] . portamento_glissando , configuration . dexed [ instance_id ] . portamento_time ) ;
}
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -2995,9 +2987,10 @@ void UI_handle_OP(uint8_t param, uint8_t op, uint8_t instance_id)
{
lcd . print ( F ( " [DISABLED] " ) ) ;
}
MicroDexed [ instance_id ] - > setOPs ( configuration . dexed [ instance_id ] . op_enabled ) ;
MicroDexed [ instance_id ] - > doRefreshVoice ( ) ;
}
MicroDexed [ instance_id ] - > setOPs ( configuration . dexed [ instance_id ] . op_enabled ) ;
MicroDexed [ instance_id ] - > doRefreshVoice ( ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -3059,6 +3052,7 @@ void UI_func_midi_soft_thru(uint8_t param)
else if ( LCDML . BT_checkUp ( ) )
configuration . sys . soft_midi_thru = constrain ( configuration . sys . soft_midi_thru - 1 , SOFT_MIDI_THRU_MIN , SOFT_MIDI_THRU_MAX ) ;
}
lcd . setCursor ( 0 , 1 ) ;
switch ( configuration . sys . soft_midi_thru )
{
@ -3101,9 +3095,9 @@ void UI_func_velocity_level(uint8_t param)
configuration . dexed [ instance_id ] . velocity_level = constrain ( configuration . dexed [ instance_id ] . velocity_level + ENCODER [ ENC_R ] . speed ( ) , VELOCITY_LEVEL_MIN , VELOCITY_LEVEL_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . dexed [ instance_id ] . velocity_level = constrain ( configuration . dexed [ instance_id ] . velocity_level - ENCODER [ ENC_R ] . speed ( ) , VELOCITY_LEVEL_MIN , VELOCITY_LEVEL_MAX ) ;
lcd_display_bar_int ( " Velocity Lvl " , configuration . dexed [ instance_id ] . velocity_level , 1.0 , VELOCITY_LEVEL_MIN , VELOCITY_LEVEL_MAX , 3 , false , false , false , false ) ;
}
lcd_display_bar_int ( " Velocity Lvl " , configuration . dexed [ instance_id ] . velocity_level , 1.0 , VELOCITY_LEVEL_MIN , VELOCITY_LEVEL_MAX , 3 , false , false , false , false ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********