|
|
@ -2208,11 +2208,7 @@ void set_chorus_feedback(uint8_t value) |
|
|
|
Serial.print(F("Set CHORUS_FEEDBACK ")); |
|
|
|
Serial.print(F("Set CHORUS_FEEDBACK ")); |
|
|
|
Serial.println(value); |
|
|
|
Serial.println(value); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
//modchorus_r.feedback(mapfloat(float(value), ENC_CHORUS_FEEDBACK_MIN, ENC_CHORUS_FEEDBACK_MAX, 0.0, 1.0));
|
|
|
|
float tmp = mapfloat(float(value), ENC_CHORUS_FEEDBACK_MIN, ENC_CHORUS_FEEDBACK_MAX, 0.0, 0.2); |
|
|
|
//modchorus_l.feedback(mapfloat(float(value), ENC_CHORUS_FEEDBACK_MIN, ENC_CHORUS_FEEDBACK_MAX, 0.0, 1.0));
|
|
|
|
|
|
|
|
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_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; |
|
|
|