|
|
|
@ -677,7 +677,7 @@ void UI_func_reverb_roomsize(uint8_t param) |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd_display_int(configuration.reverb_roomsize, 3, true, true, false); |
|
|
|
|
|
|
|
|
|
freeverbs1.roomsize(configuration.reverb_roomsize / 100); |
|
|
|
|
freeverbs1.roomsize(configuration.reverb_roomsize / 100.0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
|
@ -718,7 +718,7 @@ void UI_func_reverb_damping(uint8_t param) |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd_display_int(configuration.reverb_damping, 3, true, true, false); |
|
|
|
|
|
|
|
|
|
freeverbs1.damping(configuration.reverb_damping / 100); |
|
|
|
|
freeverbs1.damping(configuration.reverb_damping / 100.0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
|
@ -760,8 +760,8 @@ void UI_func_reverb_level(uint8_t param) |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd_display_int(configuration.reverb_level, 3, true, true, false); |
|
|
|
|
|
|
|
|
|
reverb_mixer_r.gain(1, configuration.reverb_level / 100); |
|
|
|
|
reverb_mixer_l.gain(1, configuration.reverb_level / 100); |
|
|
|
|
reverb_mixer_r.gain(1, configuration.reverb_level / 100.0); |
|
|
|
|
reverb_mixer_l.gain(1, configuration.reverb_level / 100.0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
|
@ -896,7 +896,7 @@ void UI_func_chorus_depth(uint8_t param) |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd_display_int(configuration.chorus_depth, 3, true, true, false); |
|
|
|
|
|
|
|
|
|
modulator.amplitude(configuration.chorus_depth / 100); |
|
|
|
|
modulator.amplitude(configuration.chorus_depth / 100.0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
|
@ -937,7 +937,7 @@ void UI_func_chorus_level(uint8_t param) |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd_display_int(configuration.chorus_level, 3, true, true, false); |
|
|
|
|
|
|
|
|
|
chorus_mixer.gain(1, configuration.chorus_level / 100); |
|
|
|
|
chorus_mixer.gain(1, configuration.chorus_level / 100.0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
|
@ -948,17 +948,126 @@ void UI_func_chorus_level(uint8_t param) |
|
|
|
|
|
|
|
|
|
void UI_func_delay_time(uint8_t param) |
|
|
|
|
{ |
|
|
|
|
; |
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
|
{ |
|
|
|
|
// setup function
|
|
|
|
|
lcd.setCursor(0, 0); |
|
|
|
|
lcd.print(F("Delay Time")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_loop()) // ****** LOOP *********
|
|
|
|
|
{ |
|
|
|
|
if (LCDML.BT_checkEnter()) |
|
|
|
|
{ |
|
|
|
|
LCDML.FUNC_goBackToMenu(); |
|
|
|
|
} |
|
|
|
|
else if (LCDML.BT_checkDown()) |
|
|
|
|
{ |
|
|
|
|
if (configuration.delay_time < DELAY_TIME_MAX) |
|
|
|
|
{ |
|
|
|
|
configuration.delay_time += 10; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else if (LCDML.BT_checkUp()) |
|
|
|
|
{ |
|
|
|
|
if (configuration.delay_time > DELAY_TIME_MIN) |
|
|
|
|
{ |
|
|
|
|
configuration.delay_time -= 10; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd_display_int(configuration.delay_time * 10, 3, true, true, false); |
|
|
|
|
|
|
|
|
|
delay1.delay(0, configuration.delay_time * 10); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
|
|
{ |
|
|
|
|
// you can here reset some global vars or do nothing
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void UI_func_delay_feedback(uint8_t param) |
|
|
|
|
{ |
|
|
|
|
; |
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
|
{ |
|
|
|
|
// setup function
|
|
|
|
|
lcd.setCursor(0, 0); |
|
|
|
|
lcd.print(F("Delay Feedback")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_loop()) // ****** LOOP *********
|
|
|
|
|
{ |
|
|
|
|
if (LCDML.BT_checkEnter()) |
|
|
|
|
{ |
|
|
|
|
LCDML.FUNC_goBackToMenu(); |
|
|
|
|
} |
|
|
|
|
else if (LCDML.BT_checkDown()) |
|
|
|
|
{ |
|
|
|
|
if (configuration.delay_feedback < DELAY_FEEDBACK_MAX) |
|
|
|
|
{ |
|
|
|
|
configuration.delay_feedback++; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else if (LCDML.BT_checkUp()) |
|
|
|
|
{ |
|
|
|
|
if (configuration.delay_feedback > DELAY_FEEDBACK_MIN) |
|
|
|
|
{ |
|
|
|
|
configuration.delay_feedback--; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd_display_int(configuration.delay_feedback, 3, true, true, false); |
|
|
|
|
|
|
|
|
|
delay_fb_mixer.gain(1, configuration.delay_feedback / 100.0 ); // amount of feedback
|
|
|
|
|
delay_mixer.gain(0, 1.0 - configuration.delay_feedback / 100.0); // original signal
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
|
|
{ |
|
|
|
|
// you can here reset some global vars or do nothing
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void UI_func_delay_level(uint8_t param) |
|
|
|
|
{ |
|
|
|
|
; |
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
|
{ |
|
|
|
|
// setup function
|
|
|
|
|
lcd.setCursor(0, 0); |
|
|
|
|
lcd.print(F("Delay Level")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_loop()) // ****** LOOP *********
|
|
|
|
|
{ |
|
|
|
|
if (LCDML.BT_checkEnter()) |
|
|
|
|
{ |
|
|
|
|
LCDML.FUNC_goBackToMenu(); |
|
|
|
|
} |
|
|
|
|
else if (LCDML.BT_checkDown()) |
|
|
|
|
{ |
|
|
|
|
if (configuration.delay_level < DELAY_LEVEL_MAX) |
|
|
|
|
{ |
|
|
|
|
configuration.delay_level++; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else if (LCDML.BT_checkUp()) |
|
|
|
|
{ |
|
|
|
|
if (configuration.delay_level > DELAY_LEVEL_MIN) |
|
|
|
|
{ |
|
|
|
|
configuration.delay_level--; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
lcd.setCursor(0, 1); |
|
|
|
|
lcd_display_int(configuration.delay_level, 3, true, true, false); |
|
|
|
|
|
|
|
|
|
delay_mixer.gain(1, configuration.delay_level / 100.0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
|
|
{ |
|
|
|
|
// you can here reset some global vars or do nothing
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void UI_func_filter_cutoff(uint8_t param) |
|
|
|
|