|
|
@ -240,10 +240,10 @@ char* get_chorus_frequency_value_text(void) |
|
|
|
return (chorus_frequency_value_text1); |
|
|
|
return (chorus_frequency_value_text1); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
char chorus_delay_value_text1[] = " "; |
|
|
|
char chorus_delay_value_text1[] = " "; |
|
|
|
char* get_chorus_delay_value_text(void) |
|
|
|
char* get_chorus_delay_value_text(void) |
|
|
|
{ |
|
|
|
{ |
|
|
|
sprintf(chorus_delay_value_text1, "%2.1f ms", float(configuration.chorus_delay) / 10); |
|
|
|
sprintf(chorus_delay_value_text1, "%03d%%", configuration.chorus_delay); |
|
|
|
|
|
|
|
|
|
|
|
return (chorus_delay_value_text1); |
|
|
|
return (chorus_delay_value_text1); |
|
|
|
} |
|
|
|
} |
|
|
@ -2230,8 +2230,8 @@ void set_chorus_delay(uint8_t value) |
|
|
|
Serial.print(F("Set CHORUS_DELAY ")); |
|
|
|
Serial.print(F("Set CHORUS_DELAY ")); |
|
|
|
Serial.println(value); |
|
|
|
Serial.println(value); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
modchorus_r.offset(float(value) / 10); |
|
|
|
modchorus_r.offset(value); |
|
|
|
modchorus_l.offset(float(value) / 10); |
|
|
|
modchorus_l.offset(value); |
|
|
|
configuration.chorus_delay = value; |
|
|
|
configuration.chorus_delay = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -2256,8 +2256,8 @@ void set_chorus_feedback(uint8_t value) |
|
|
|
Serial.println(value); |
|
|
|
Serial.println(value); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
float tmp = mapfloat(float(value), ENC_CHORUS_FEEDBACK_MIN, ENC_CHORUS_FEEDBACK_MAX, 0.0, 0.5); |
|
|
|
float tmp = mapfloat(float(value), ENC_CHORUS_FEEDBACK_MIN, ENC_CHORUS_FEEDBACK_MAX, 0.0, 0.5); |
|
|
|
modchorus_fbk_mixer_r.gain(0, 1.0 - tmp); |
|
|
|
//modchorus_fbk_mixer_r.gain(0, 1.0 - tmp);
|
|
|
|
modchorus_fbk_mixer_l.gain(0, 1.0 - tmp); |
|
|
|
//modchorus_fbk_mixer_l.gain(0, 1.0 - tmp);
|
|
|
|
modchorus_fbk_mixer_r.gain(1, tmp); |
|
|
|
modchorus_fbk_mixer_r.gain(1, tmp); |
|
|
|
modchorus_fbk_mixer_l.gain(1, tmp); |
|
|
|
modchorus_fbk_mixer_l.gain(1, tmp); |
|
|
|
configuration.chorus_feedback = value; |
|
|
|
configuration.chorus_feedback = value; |
|
|
|