|
|
|
@ -2226,13 +2226,16 @@ void set_chorus_delay(uint8_t value) |
|
|
|
|
{ |
|
|
|
|
if (value > ENC_CHORUS_DELAY_MAX) |
|
|
|
|
value = ENC_CHORUS_DELAY_MAX; |
|
|
|
|
else if (value < ENC_CHORUS_DELAY_MIN) |
|
|
|
|
value = ENC_CHORUS_DELAY_MIN; |
|
|
|
|
#ifdef SHOW_DEBUG |
|
|
|
|
Serial.print(F("Set CHORUS_DELAY ")); |
|
|
|
|
Serial.print(value); |
|
|
|
|
Serial.print(F("/")); |
|
|
|
|
Serial.print(F(" (")); |
|
|
|
|
Serial.print(float(value) / 10); |
|
|
|
|
Serial.print(F("/")); |
|
|
|
|
Serial.print(F(" ms / ")); |
|
|
|
|
Serial.print(uint16_t(TIME_MS2SAMPLES(float(value) / 10))); |
|
|
|
|
Serial.print(F(" samples)")); |
|
|
|
|
Serial.println(); |
|
|
|
|
#endif |
|
|
|
|
modchorus_r.offset(TIME_MS2SAMPLES(float(value) / 10)); |
|
|
|
|