|
|
|
@ -8641,7 +8641,7 @@ void UI_func_eq_1(uint8_t param) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
lcd_display_meter_int("EQ Low-Cut [Hz]", configuration.fx.eq_1, 1.0, 0.0, EQ_1_MIN, EQ_1_MAX, 3, false, false, true); |
|
|
|
|
sgtl5000.setEQFc(1, configuration.fx.eq_1); |
|
|
|
|
sgtl5000.setEQFc(1, float(configuration.fx.eq_1)); |
|
|
|
|
sgtl5000.setEQGain(1, 6.0); |
|
|
|
|
sgtl5000.commitFilter(1); |
|
|
|
|
#ifdef DEBUG |
|
|
|
@ -8689,7 +8689,7 @@ void UI_func_eq_2(uint8_t param) |
|
|
|
|
configuration.fx.eq_2 = constrain(configuration.fx.eq_2 - ENCODER[ENC_R].speed(), EQ_2_MIN, EQ_2_MAX); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
lcd_display_meter_float("EQ 120Hz", configuration.fx.eq_2, 0.1, 0.0, EQ_2_MIN, EQ_2_MAX, 1, 1, false, true, true); |
|
|
|
|
lcd_display_meter_float("EQ 120Hz [dB]", configuration.fx.eq_2, 0.1, 0.0, EQ_2_MIN, EQ_2_MAX, 1, 1, false, true, true); |
|
|
|
|
sgtl5000.setEQGain(2, mapfloat(configuration.fx.eq_2, EQ_2_MIN, EQ_2_MAX, -9.9, 9.9)); |
|
|
|
|
sgtl5000.commitFilter(2); |
|
|
|
|
#ifdef DEBUG |
|
|
|
@ -8737,7 +8737,7 @@ void UI_func_eq_3(uint8_t param) |
|
|
|
|
configuration.fx.eq_3 = constrain(configuration.fx.eq_3 - ENCODER[ENC_R].speed(), EQ_3_MIN, EQ_3_MAX); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
lcd_display_meter_float("EQ 220Hz", configuration.fx.eq_3, 0.1, 0.0, EQ_3_MIN, EQ_3_MAX, 1, 1, false, true, true); |
|
|
|
|
lcd_display_meter_float("EQ 220Hz [dB]", configuration.fx.eq_3, 0.1, 0.0, EQ_3_MIN, EQ_3_MAX, 1, 1, false, true, true); |
|
|
|
|
sgtl5000.setEQGain(3, mapfloat(configuration.fx.eq_3, EQ_3_MIN, EQ_3_MAX, -9.9, 9.9)); |
|
|
|
|
sgtl5000.commitFilter(3); |
|
|
|
|
#ifdef DEBUG |
|
|
|
@ -8785,7 +8785,7 @@ void UI_func_eq_4(uint8_t param) |
|
|
|
|
configuration.fx.eq_4 = constrain(configuration.fx.eq_4 - ENCODER[ENC_R].speed(), EQ_4_MIN, EQ_4_MAX); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
lcd_display_meter_float("EQ 1000Hz", configuration.fx.eq_4, 0.1, 0.0, EQ_4_MIN, EQ_4_MAX, 1, 1, false, true, true); |
|
|
|
|
lcd_display_meter_float("EQ 1000Hz [dB]", configuration.fx.eq_4, 0.1, 0.0, EQ_4_MIN, EQ_4_MAX, 1, 1, false, true, true); |
|
|
|
|
sgtl5000.setEQGain(4, mapfloat(configuration.fx.eq_4, EQ_4_MIN, EQ_4_MAX, -9.9, 9.9)); |
|
|
|
|
sgtl5000.commitFilter(4); |
|
|
|
|
#ifdef DEBUG |
|
|
|
@ -8833,7 +8833,7 @@ void UI_func_eq_5(uint8_t param) |
|
|
|
|
configuration.fx.eq_5 = constrain(configuration.fx.eq_5 - ENCODER[ENC_R].speed(), EQ_5_MIN, EQ_5_MAX); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
lcd_display_meter_float("EQ 2000Hz", configuration.fx.eq_5, 0.1, 0.0, EQ_5_MIN, EQ_5_MAX, 1, 1, false, true, true); |
|
|
|
|
lcd_display_meter_float("EQ 2000Hz [dB]", configuration.fx.eq_5, 0.1, 0.0, EQ_5_MIN, EQ_5_MAX, 1, 1, false, true, true); |
|
|
|
|
sgtl5000.setEQGain(5, mapfloat(configuration.fx.eq_5, EQ_5_MIN, EQ_5_MAX, -9.9, 9.9)); |
|
|
|
|
sgtl5000.commitFilter(5); |
|
|
|
|
#ifdef DEBUG |
|
|
|
@ -8881,11 +8881,11 @@ void UI_func_eq_6(uint8_t param) |
|
|
|
|
configuration.fx.eq_6 = constrain(configuration.fx.eq_6 - ENCODER[ENC_R].speed(), EQ_6_MIN, EQ_6_MAX); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
lcd_display_meter_float("EQ 7000Hz", configuration.fx.eq_6, 0.1, 0.0, EQ_6_MIN, EQ_6_MAX, 1, 1, false, true, true); |
|
|
|
|
lcd_display_meter_float("EQ 7000Hz [dB]", configuration.fx.eq_6, 0.1, 0.0, EQ_6_MIN, EQ_6_MAX, 1, 1, false, true, true); |
|
|
|
|
sgtl5000.setEQGain(6, mapfloat(configuration.fx.eq_6, EQ_6_MIN, EQ_6_MAX, -9.9, 9.9)); |
|
|
|
|
sgtl5000.commitFilter(6); |
|
|
|
|
#ifdef DEBUG |
|
|
|
|
sgtl5000.show_params(1); |
|
|
|
|
sgtl5000.show_params(6); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -8930,7 +8930,7 @@ void UI_func_eq_7(uint8_t param) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
lcd_display_meter_float("EQ High-Cut[kHz]", configuration.fx.eq_7, 1.0, 0.0, EQ_7_MIN, EQ_7_MAX, 3, 1, false, false, true); |
|
|
|
|
sgtl5000.setEQFc(7, configuration.fx.eq_7); |
|
|
|
|
sgtl5000.setEQFc(7, float(configuration.fx.eq_7) * 1000.0); |
|
|
|
|
sgtl5000.commitFilter(7); |
|
|
|
|
#ifdef DEBUG |
|
|
|
|
sgtl5000.show_params(7); |
|
|
|
|