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