@ -206,6 +206,7 @@ void UI_func_volume(uint8_t param);
void UI_func_load_performance ( uint8_t param ) ;
void UI_func_save_performance ( uint8_t param ) ;
void UI_func_save_config ( uint8_t param ) ;
void UI_func_save_config_default ( uint8_t param ) ;
void UI_func_midi_soft_thru ( uint8_t param ) ;
void UI_func_velocity_level ( uint8_t param ) ;
void UI_func_eeprom_reset ( uint8_t param ) ;
@ -822,7 +823,7 @@ void UI_func_reverb_roomsize(uint8_t param)
encoderDir [ ENC_R ] . reset ( ) ;
lcd_special_chars ( BLOCKBAR ) ;
lcd_display_bar_int ( " Reverb Room " , configuration . reverb_roomsize , 1.0 , REVERB_ROOMSIZE_MIN , REVERB_ROOMSIZE_MAX , 3 , false , false , false , true ) ;
lcd_display_bar_int ( " Reverb Room " , configuration . fx . reverb_roomsize , 1.0 , REVERB_ROOMSIZE_MIN , REVERB_ROOMSIZE_MAX , 3 , false , false , false , true ) ;
}
if ( LCDML . FUNC_loop ( ) ) // ****** LOOP *********
@ -830,21 +831,20 @@ void UI_func_reverb_roomsize(uint8_t param)
if ( ( LCDML . BT_checkDown ( ) & & encoderDir [ ENC_R ] . Down ( ) ) | | ( LCDML . BT_checkUp ( ) & & encoderDir [ ENC_R ] . Up ( ) ) )
{
if ( LCDML . BT_checkDown ( ) )
configuration . reverb_roomsize = constrain ( configuration . reverb_roomsize + ENCODER [ ENC_R ] . speed ( ) , REVERB_ROOMSIZE_MIN , REVERB_ROOMSIZE_MAX ) ;
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 . reverb_roomsize = constrain ( configuration . reverb_roomsize - ENCODER [ ENC_R ] . speed ( ) , REVERB_ROOMSIZE_MIN , REVERB_ROOMSIZE_MAX ) ;
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 . reverb_roomsize , 1.0 , REVERB_ROOMSIZE_MIN , REVERB_ROOMSIZE_MAX , 3 , false , false , false , false ) ;
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 . reverb_roomsize , REVERB_ROOMSIZE_MIN , REVERB_ROOMSIZE_MAX , 0.0 , 1.0 ) ) ;
freeverb_l . roomsize ( mapfloat ( configuration . reverb_roomsize , REVERB_ROOMSIZE_MIN , REVERB_ROOMSIZE_MAX , 0.0 , 1.0 ) ) ;
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 *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -856,7 +856,7 @@ void UI_func_reverb_damping(uint8_t param)
encoderDir [ ENC_R ] . reset ( ) ;
lcd_special_chars ( BLOCKBAR ) ;
lcd_display_bar_int ( " Reverb Damp. " , configuration . reverb_damping , 1.0 , REVERB_DAMPING_MIN , REVERB_DAMPING_MAX , 3 , false , false , false , true ) ;
lcd_display_bar_int ( " Reverb Damp. " , configuration . fx . reverb_damping , 1.0 , REVERB_DAMPING_MIN , REVERB_DAMPING_MAX , 3 , false , false , false , true ) ;
}
if ( LCDML . FUNC_loop ( ) ) // ****** LOOP *********
@ -864,21 +864,20 @@ void UI_func_reverb_damping(uint8_t param)
if ( ( LCDML . BT_checkDown ( ) & & encoderDir [ ENC_R ] . Down ( ) ) | | ( LCDML . BT_checkUp ( ) & & encoderDir [ ENC_R ] . Up ( ) ) )
{
if ( LCDML . BT_checkDown ( ) )
configuration . reverb_damping = constrain ( configuration . reverb_damping + ENCODER [ ENC_R ] . speed ( ) , REVERB_DAMPING_MIN , REVERB_DAMPING_MAX ) ;
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 . reverb_damping = constrain ( configuration . reverb_damping - ENCODER [ ENC_R ] . speed ( ) , REVERB_DAMPING_MIN , REVERB_DAMPING_MAX ) ;
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 . 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 . reverb_damping , REVERB_DAMPING_MIN , REVERB_DAMPING_MAX , 0.0 , 1.0 ) ) ;
freeverb_l . damping ( mapfloat ( configuration . 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 *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -917,7 +916,6 @@ void UI_func_reverb_send(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -929,7 +927,7 @@ void UI_func_reverb_level(uint8_t param)
encoderDir [ ENC_R ] . reset ( ) ;
lcd_special_chars ( BLOCKBAR ) ;
lcd_display_bar_int ( " Reverb Level " , configuration . 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 ) ;
}
if ( LCDML . FUNC_loop ( ) ) // ****** LOOP *********
@ -937,21 +935,20 @@ void UI_func_reverb_level(uint8_t param)
if ( ( LCDML . BT_checkDown ( ) & & encoderDir [ ENC_R ] . Down ( ) ) | | ( LCDML . BT_checkUp ( ) & & encoderDir [ ENC_R ] . Up ( ) ) )
{
if ( LCDML . BT_checkDown ( ) )
configuration . reverb_level = constrain ( configuration . reverb_level + ENCODER [ ENC_R ] . speed ( ) , REVERB_LEVEL_MIN , REVERB_LEVEL_MAX ) ;
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 . reverb_level = constrain ( configuration . reverb_level - ENCODER [ ENC_R ] . speed ( ) , REVERB_LEVEL_MIN , REVERB_LEVEL_MAX ) ;
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 . 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 . reverb_level , REVERB_LEVEL_MIN , REVERB_LEVEL_MAX , 0.0 , 1.0 ) ) ;
master_mixer_l . gain ( REVERB , mapfloat ( configuration . 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 *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -963,7 +960,7 @@ void UI_func_chorus_frequency(uint8_t param)
encoderDir [ ENC_R ] . reset ( ) ;
lcd_special_chars ( BLOCKBAR ) ;
lcd_display_bar_float ( " Chorus Frq. " , configuration . chorus_frequency , 0.1 , CHORUS_FREQUENCY_MIN , CHORUS_FREQUENCY_MAX , 2 , 1 , false , false , false , true ) ;
lcd_display_bar_float ( " Chorus Frq. " , configuration . fx . chorus_frequency , 0.1 , CHORUS_FREQUENCY_MIN , CHORUS_FREQUENCY_MAX , 2 , 1 , false , false , false , true ) ;
}
if ( LCDML . FUNC_loop ( ) ) // ****** LOOP *********
@ -971,20 +968,19 @@ void UI_func_chorus_frequency(uint8_t param)
if ( ( LCDML . BT_checkDown ( ) & & encoderDir [ ENC_R ] . Down ( ) ) | | ( LCDML . BT_checkUp ( ) & & encoderDir [ ENC_R ] . Up ( ) ) )
{
if ( LCDML . BT_checkDown ( ) )
configuration . chorus_frequency = constrain ( configuration . chorus_frequency + ENCODER [ ENC_R ] . speed ( ) , CHORUS_FREQUENCY_MIN , CHORUS_FREQUENCY_MAX ) ;
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 . chorus_frequency = constrain ( configuration . chorus_frequency - ENCODER [ ENC_R ] . speed ( ) , CHORUS_FREQUENCY_MIN , CHORUS_FREQUENCY_MAX ) ;
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 . chorus_frequency , 0.1 , CHORUS_FREQUENCY_MIN , CHORUS_FREQUENCY_MAX , 2 , 1 , false , false , false , false ) ;
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 . chorus_frequency / 10.0 ) ;
chorus_modulator . frequency ( configuration . fx . chorus_frequency / 10.0 ) ;
}
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1002,12 +998,12 @@ void UI_func_chorus_waveform(uint8_t param)
if ( LCDML . FUNC_loop ( ) ) // ****** LOOP *********
{
if ( LCDML . BT_checkDown ( ) & & encoderDir [ ENC_R ] . Down ( ) )
configuration . chorus_waveform = constrain ( configuration . chorus_waveform + 1 , CHORUS_WAVEFORM_MIN , CHORUS_WAVEFORM_MAX ) ;
configuration . fx . chorus_waveform = constrain ( configuration . fx . chorus_waveform + 1 , CHORUS_WAVEFORM_MIN , CHORUS_WAVEFORM_MAX ) ;
else if ( LCDML . BT_checkUp ( ) & & encoderDir [ ENC_R ] . Up ( ) )
configuration . chorus_waveform = constrain ( configuration . chorus_waveform - 1 , CHORUS_WAVEFORM_MIN , CHORUS_WAVEFORM_MAX ) ;
configuration . fx . chorus_waveform = constrain ( configuration . fx . chorus_waveform - 1 , CHORUS_WAVEFORM_MIN , CHORUS_WAVEFORM_MAX ) ;
lcd . setCursor ( 0 , 1 ) ;
switch ( configuration . chorus_waveform )
switch ( configuration . fx . chorus_waveform )
{
case 0 :
chorus_modulator . begin ( WAVEFORM_TRIANGLE ) ;
@ -1027,7 +1023,6 @@ void UI_func_chorus_waveform(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
// you can here reset some global vars or do nothing
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1039,7 +1034,7 @@ void UI_func_chorus_depth(uint8_t param)
encoderDir [ ENC_R ] . reset ( ) ;
lcd_special_chars ( BLOCKBAR ) ;
lcd_display_bar_int ( " Chorus Dpt. " , configuration . chorus_depth , 1.0 , CHORUS_DEPTH_MIN , CHORUS_DEPTH_MAX , 3 , false , false , false , true ) ;
lcd_display_bar_int ( " Chorus Dpt. " , configuration . fx . chorus_depth , 1.0 , CHORUS_DEPTH_MIN , CHORUS_DEPTH_MAX , 3 , false , false , false , true ) ;
}
if ( LCDML . FUNC_loop ( ) ) // ****** LOOP *********
@ -1047,20 +1042,19 @@ void UI_func_chorus_depth(uint8_t param)
if ( ( LCDML . BT_checkDown ( ) & & encoderDir [ ENC_R ] . Down ( ) ) | | ( LCDML . BT_checkUp ( ) & & encoderDir [ ENC_R ] . Up ( ) ) )
{
if ( LCDML . BT_checkDown ( ) )
configuration . chorus_depth = constrain ( configuration . chorus_depth + ENCODER [ ENC_R ] . speed ( ) , CHORUS_DEPTH_MIN , CHORUS_DEPTH_MAX ) ;
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 . chorus_depth = constrain ( configuration . chorus_depth - ENCODER [ ENC_R ] . speed ( ) , CHORUS_DEPTH_MIN , CHORUS_DEPTH_MAX ) ;
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 . 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 . chorus_depth / 100.0 ) ;
chorus_modulator . amplitude ( configuration . fx . chorus_depth / 100.0 ) ;
}
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1099,7 +1093,6 @@ void UI_func_chorus_send(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1111,7 +1104,7 @@ void UI_func_chorus_level(uint8_t param)
encoderDir [ ENC_R ] . reset ( ) ;
lcd_special_chars ( BLOCKBAR ) ;
lcd_display_bar_int ( " Chorus Lvl. " , configuration . chorus_level , 1.0 , CHORUS_LEVEL_MIN , CHORUS_LEVEL_MAX , 3 , false , false , false , true ) ;
lcd_display_bar_int ( " Chorus Lvl. " , configuration . fx . chorus_level , 1.0 , CHORUS_LEVEL_MIN , CHORUS_LEVEL_MAX , 3 , false , false , false , true ) ;
}
if ( LCDML . FUNC_loop ( ) ) // ****** LOOP *********
@ -1119,21 +1112,20 @@ void UI_func_chorus_level(uint8_t param)
if ( ( LCDML . BT_checkDown ( ) & & encoderDir [ ENC_R ] . Down ( ) ) | | ( LCDML . BT_checkUp ( ) & & encoderDir [ ENC_R ] . Up ( ) ) )
{
if ( LCDML . BT_checkDown ( ) )
configuration . chorus_level = constrain ( configuration . chorus_level + ENCODER [ ENC_R ] . speed ( ) , CHORUS_LEVEL_MIN , CHORUS_LEVEL_MAX ) ;
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 . chorus_level = constrain ( configuration . chorus_level - ENCODER [ ENC_R ] . speed ( ) , CHORUS_LEVEL_MIN , CHORUS_LEVEL_MAX ) ;
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 . 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 . chorus_level , CHORUS_LEVEL_MIN , CHORUS_LEVEL_MAX , 0.0 , 1.0 ) ) ;
master_mixer_l . gain ( CHORUS , mapfloat ( configuration . 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 *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1145,7 +1137,7 @@ void UI_func_delay_time(uint8_t param)
encoderDir [ ENC_R ] . reset ( ) ;
lcd_special_chars ( BLOCKBAR ) ;
lcd_display_bar_int ( " Delay Time " , configuration . 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 ) ;
}
if ( LCDML . FUNC_loop ( ) ) // ****** LOOP *********
@ -1153,21 +1145,20 @@ void UI_func_delay_time(uint8_t param)
if ( ( LCDML . BT_checkDown ( ) & & encoderDir [ ENC_R ] . Down ( ) ) | | ( LCDML . BT_checkUp ( ) & & encoderDir [ ENC_R ] . Up ( ) ) )
{
if ( LCDML . BT_checkDown ( ) )
configuration . delay_time = constrain ( configuration . delay_time + ENCODER [ ENC_R ] . speed ( ) , DELAY_TIME_MIN , DELAY_TIME_MAX ) ;
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 . delay_time = constrain ( configuration . delay_time - ENCODER [ ENC_R ] . speed ( ) , DELAY_TIME_MIN , DELAY_TIME_MAX ) ;
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 . 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 . delay_time * 10 ) ;
delay_l . delay ( 0 , configuration . 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 *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1179,7 +1170,7 @@ void UI_func_delay_feedback(uint8_t param)
encoderDir [ ENC_R ] . reset ( ) ;
lcd_special_chars ( BLOCKBAR ) ;
lcd_display_bar_int ( " Delay Feedb. " , configuration . delay_feedback , 1.0 , DELAY_FEEDBACK_MIN , DELAY_FEEDBACK_MAX , 3 , false , false , false , true ) ;
lcd_display_bar_int ( " Delay Feedb. " , configuration . fx . delay_feedback , 1.0 , DELAY_FEEDBACK_MIN , DELAY_FEEDBACK_MAX , 3 , false , false , false , true ) ;
}
if ( LCDML . FUNC_loop ( ) ) // ****** LOOP *********
@ -1187,22 +1178,21 @@ void UI_func_delay_feedback(uint8_t param)
if ( ( LCDML . BT_checkDown ( ) & & encoderDir [ ENC_R ] . Down ( ) ) | | ( LCDML . BT_checkUp ( ) & & encoderDir [ ENC_R ] . Up ( ) ) )
{
if ( LCDML . BT_checkDown ( ) )
configuration . delay_feedback = constrain ( configuration . delay_feedback + ENCODER [ ENC_R ] . speed ( ) , DELAY_FEEDBACK_MIN , DELAY_FEEDBACK_MAX ) ;
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 . delay_feedback = constrain ( configuration . delay_feedback - ENCODER [ ENC_R ] . speed ( ) , DELAY_FEEDBACK_MIN , DELAY_FEEDBACK_MAX ) ;
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 . 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 . delay_feedback / 100.0 ) ; // amount of feedback
delay_fb_mixer_l . gain ( 1 , configuration . delay_feedback / 100.0 ) ; // amount of feedback
//delay_fb_mixer.gain(0, 1.0 - configuration.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 *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1241,7 +1231,6 @@ void UI_func_delay_send(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1253,7 +1242,7 @@ void UI_func_delay_level(uint8_t param)
encoderDir [ ENC_R ] . reset ( ) ;
lcd_special_chars ( BLOCKBAR ) ;
lcd_display_bar_int ( " Delay Lvl. " , configuration . delay_level , 1.0 , DELAY_LEVEL_MIN , DELAY_LEVEL_MAX , 3 , false , false , false , true ) ;
lcd_display_bar_int ( " Delay Lvl. " , configuration . fx . delay_level , 1.0 , DELAY_LEVEL_MIN , DELAY_LEVEL_MAX , 3 , false , false , false , true ) ;
}
if ( LCDML . FUNC_loop ( ) ) // ****** LOOP *********
@ -1261,21 +1250,20 @@ void UI_func_delay_level(uint8_t param)
if ( ( LCDML . BT_checkDown ( ) & & encoderDir [ ENC_R ] . Down ( ) ) | | ( LCDML . BT_checkUp ( ) & & encoderDir [ ENC_R ] . Up ( ) ) )
{
if ( LCDML . BT_checkDown ( ) )
configuration . delay_level = constrain ( configuration . delay_level + ENCODER [ ENC_R ] . speed ( ) , DELAY_LEVEL_MIN , DELAY_LEVEL_MAX ) ;
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 . delay_level = constrain ( configuration . delay_level - ENCODER [ ENC_R ] . speed ( ) , DELAY_LEVEL_MIN , DELAY_LEVEL_MAX ) ;
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 . 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 . delay_level , DELAY_LEVEL_MIN , DELAY_LEVEL_MAX , 0.0 , 1.0 ) ) ;
master_mixer_l . gain ( DELAY , mapfloat ( configuration . 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 *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1313,7 +1301,6 @@ void UI_func_filter_cutoff(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1351,7 +1338,6 @@ void UI_func_filter_resonance(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1391,7 +1377,6 @@ void UI_func_transpose(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1430,7 +1415,6 @@ void UI_func_tune(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1471,7 +1455,6 @@ void UI_func_midi_channel(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
// you can here reset some global vars or do nothing
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1523,7 +1506,6 @@ void UI_func_lowest_note(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1566,7 +1548,6 @@ void UI_func_highest_note(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1605,7 +1586,6 @@ void UI_func_sound_intensity(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1621,7 +1601,7 @@ void UI_func_panorama(uint8_t param)
{
encoderDir [ ENC_R ] . reset ( ) ;
if ( configuration . mono > 0 )
if ( configuration . sys . mono > 0 )
{
lcd . setCursor ( 0 , 0 ) ;
lcd . print ( F ( " Panorama " ) ) ;
@ -1635,12 +1615,12 @@ void UI_func_panorama(uint8_t param)
if ( LCDML . FUNC_loop ( ) ) // ****** LOOP *********
{
if ( LCDML . BT_checkDown ( ) & & configuration . mono = = 0 )
if ( LCDML . BT_checkDown ( ) & & configuration . sys . mono = = 0 )
configuration . dexed [ instance_id ] . pan = constrain ( configuration . dexed [ instance_id ] . pan + ENCODER [ ENC_R ] . speed ( ) , PANORAMA_MIN , PANORAMA_MAX ) ;
else if ( LCDML . BT_checkUp ( ) & & configuration . mono = = 0 )
else if ( LCDML . BT_checkUp ( ) & & configuration . sys . mono = = 0 )
configuration . dexed [ instance_id ] . pan = constrain ( configuration . dexed [ instance_id ] . pan - ENCODER [ ENC_R ] . speed ( ) , PANORAMA_MIN , PANORAMA_MAX ) ;
if ( configuration . mono = = 0 )
if ( configuration . sys . mono = = 0 )
{
lcd_display_meter_float ( " Panorama " , configuration . dexed [ instance_id ] . pan , 0.05 , - 20.0 , PANORAMA_MIN , PANORAMA_MAX , 3 , 1 , false , false , true , false ) ;
mono2stereo [ instance_id ] - > panorama ( mapfloat ( configuration . dexed [ instance_id ] . pan , PANORAMA_MIN , PANORAMA_MAX , - 1.0 , 1.0 ) ) ;
@ -1650,7 +1630,6 @@ void UI_func_panorama(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1664,7 +1643,7 @@ void UI_func_stereo_mono(uint8_t param)
lcd . setCursor ( 0 , 0 ) ;
lcd . print ( F ( " Stereo/Mono " ) ) ;
lcd . setCursor ( 0 , 1 ) ;
switch ( configuration . mono )
switch ( configuration . sys . mono )
{
case 0 :
lcd . print ( F ( " [STEREO] " ) ) ;
@ -1688,12 +1667,12 @@ void UI_func_stereo_mono(uint8_t param)
if ( LCDML . FUNC_loop ( ) ) // ****** LOOP *********
{
if ( LCDML . BT_checkDown ( ) )
configuration . mono = constrain ( configuration . mono + 1 , MONO_MIN , MONO_MAX ) ;
configuration . sys . mono = constrain ( configuration . sys . mono + 1 , MONO_MIN , MONO_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . mono = constrain ( configuration . mono - 1 , MONO_MIN , MONO_MAX ) ;
configuration . sys . mono = constrain ( configuration . sys . mono - 1 , MONO_MIN , MONO_MAX ) ;
lcd . setCursor ( 0 , 1 ) ;
switch ( configuration . mono )
switch ( configuration . sys . mono )
{
case 0 :
lcd . print ( F ( " [STEREO] " ) ) ;
@ -1712,7 +1691,7 @@ void UI_func_stereo_mono(uint8_t param)
stereo2mono . stereo ( false ) ;
break ;
}
set_volume ( configuration . vol , configuration . mono ) ;
set_volume ( configuration . sys . vol , configuration . sys . mono ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -1755,7 +1734,6 @@ void UI_func_polyphony(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1804,7 +1782,6 @@ void UI_func_engine(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1850,7 +1827,6 @@ void UI_func_mono_poly(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1896,7 +1872,6 @@ void UI_func_note_refresh(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1934,7 +1909,6 @@ void UI_func_pb_range(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -1972,7 +1946,6 @@ void UI_func_pb_step(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -2010,7 +1983,6 @@ void UI_func_mw_range(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -2074,7 +2046,6 @@ void UI_func_mw_assign(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -2124,7 +2095,6 @@ void UI_func_mw_mode(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -2163,7 +2133,6 @@ void UI_func_fc_range(uint8_t param)
{
// you can here reset some global vars or do nothing
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -2227,7 +2196,6 @@ void UI_func_fc_assign(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -2277,7 +2245,6 @@ void UI_func_fc_mode(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -2315,7 +2282,6 @@ void UI_func_bc_range(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -2379,7 +2345,6 @@ void UI_func_bc_assign(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -2429,7 +2394,6 @@ void UI_func_bc_mode(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -2467,7 +2431,6 @@ void UI_func_at_range(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -2531,7 +2494,6 @@ void UI_func_at_assign(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -2581,7 +2543,6 @@ void UI_func_at_mode(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -2633,7 +2594,6 @@ void UI_func_portamento_mode(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -2679,7 +2639,6 @@ void UI_func_portamento_glissando(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -2717,7 +2676,6 @@ void UI_func_portamento_time(uint8_t param)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -2835,7 +2793,6 @@ void UI_handle_OP(uint8_t param, uint8_t op, uint8_t instance_id)
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -2883,12 +2840,12 @@ void UI_func_midi_soft_thru(uint8_t param)
if ( ( LCDML . BT_checkDown ( ) & & encoderDir [ ENC_R ] . Down ( ) ) | | ( LCDML . BT_checkUp ( ) & & encoderDir [ ENC_R ] . Up ( ) ) )
{
if ( LCDML . BT_checkDown ( ) )
configuration . soft_midi_thru = constrain ( configuration . soft_midi_thru + 1 , SOFT_MIDI_THRU_MIN , SOFT_MIDI_THRU_MAX ) ;
configuration . sys . s oft_midi_thru = constrain ( configuration . sys . soft_midi_thru + 1 , SOFT_MIDI_THRU_MIN , SOFT_MIDI_THRU_MAX ) ;
else if ( LCDML . BT_checkUp ( ) )
configuration . soft_midi_thru = constrain ( configuration . soft_midi_thru - 1 , SOFT_MIDI_THRU_MIN , SOFT_MIDI_THRU_MAX ) ;
configuration . sys . s oft_midi_thru = constrain ( configuration . sys . soft_midi_thru - 1 , SOFT_MIDI_THRU_MIN , SOFT_MIDI_THRU_MAX ) ;
}
lcd . setCursor ( 0 , 1 ) ;
switch ( configuration . soft_midi_thru )
switch ( configuration . sys . s oft_midi_thru )
{
case 0 :
lcd . print ( F ( " [OFF] " ) ) ;
@ -2938,7 +2895,6 @@ void UI_func_velocity_level(uint8_t param)
{
// you can here reset some global vars or do nothing
lcd_special_chars ( SCROLLBAR ) ;
eeprom_write ( ) ;
encoderDir [ ENC_R ] . reset ( ) ;
}
}
@ -3173,7 +3129,7 @@ void UI_func_volume(uint8_t param)
encoderDir [ ENC_L ] . reset ( ) ;
lcd_special_chars ( BLOCKBAR ) ;
lcd_display_bar_int ( " Master Vol. " , configuration . vol , 1.0 , VOLUME_MIN , VOLUME_MAX , 3 , false , false , false , true ) ;
lcd_display_bar_int ( " Master Vol. " , configuration . sys . vol , 1.0 , VOLUME_MIN , VOLUME_MAX , 3 , false , false , false , true ) ;
back_from_volume = 0 ;
}
@ -3186,16 +3142,16 @@ void UI_func_volume(uint8_t param)
if ( LCDML . BT_checkDown ( ) )
{
configuration . vol = constrain ( configuration . vol + ENCODER [ ENC_L ] . speed ( ) , VOLUME_MIN , VOLUME_MAX ) ;
configuration . sys . vol = constrain ( configuration . sys . vol + ENCODER [ ENC_L ] . speed ( ) , VOLUME_MIN , VOLUME_MAX ) ;
}
else if ( LCDML . BT_checkUp ( ) )
{
configuration . vol = constrain ( configuration . vol - ENCODER [ ENC_L ] . speed ( ) , VOLUME_MIN , VOLUME_MAX ) ;
configuration . sys . vol = constrain ( configuration . sys . vol - ENCODER [ ENC_L ] . speed ( ) , VOLUME_MIN , VOLUME_MAX ) ;
}
}
lcd_display_bar_int ( " Master Vol. " , configuration . vol , 1.0 , VOLUME_MIN , VOLUME_MAX , 3 , false , false , false , false ) ;
set_volume ( configuration . vol , configuration . mono ) ;
lcd_display_bar_int ( " Master Vol. " , configuration . sys . vol , 1.0 , VOLUME_MIN , VOLUME_MAX , 3 , false , false , false , false ) ;
set_volume ( configuration . sys . vol , configuration . sys . mono ) ;
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
@ -3290,7 +3246,7 @@ void UI_func_save_config(uint8_t param)
encoderDir [ ENC_R ] . reset ( ) ;
lcd . setCursor ( 0 , 0 ) ;
lcd . print ( F ( " Save Con fi g SD " ) ) ;
lcd . print ( F ( " Save Cfg SD " ) ) ;
# if NUMDEXED > 1
instance_id = - 1 ;
@ -3359,7 +3315,7 @@ void UI_func_save_config(uint8_t param)
if ( yesno = = true )
{
LCDML . DISP_clear ( ) ;
lcd . print ( F ( " Storing config " ) ) ;
lcd . print ( F ( " Save Cfg SD " ) ) ;
save_sd_voiceconfig ( configuration . dexed [ instance_id ] . bank , configuration . dexed [ instance_id ] . voice , instance_id ) ;
@ -3372,6 +3328,56 @@ void UI_func_save_config(uint8_t param)
}
}
void UI_func_save_config_default ( uint8_t param )
{
static bool yesno ;
if ( LCDML . FUNC_setup ( ) ) // ****** SETUP *********
{
encoderDir [ ENC_R ] . reset ( ) ;
lcd . setCursor ( 0 , 0 ) ;
lcd . print ( F ( " Save Cfg default " ) ) ;
lcd . setCursor ( 0 , 1 ) ;
lcd . print ( F ( " [NO ] " ) ) ;
if ( LCDML . FUNC_loop ( ) ) // ****** LOOP *********
{
if ( ( LCDML . BT_checkDown ( ) | | LCDML . BT_checkUp ( ) ) )
{
yesno = ! yesno ;
if ( yesno = = true )
{
lcd . setCursor ( 1 , 1 ) ;
lcd . print ( F ( " YES " ) ) ;
}
else
{
lcd . setCursor ( 1 , 1 ) ;
lcd . print ( F ( " NO " ) ) ;
}
}
}
if ( LCDML . FUNC_close ( ) ) // ****** STABLE END *********
{
if ( yesno = = true )
{
LCDML . DISP_clear ( ) ;
lcd . print ( F ( " Save Cfg default " ) ) ;
// EEPROM!!!
lcd . setCursor ( 0 , 1 ) ;
lcd . print ( F ( " Done. " ) ) ;
delay ( 500 ) ;
}
encoderDir [ ENC_R ] . reset ( ) ;
}
}
}
void UI_func_sysex_send_voice ( uint8_t param )
{
if ( LCDML . FUNC_setup ( ) ) // ****** SETUP *********