|
|
|
@ -248,17 +248,23 @@ void setup() |
|
|
|
|
modulator.offset(0.0); |
|
|
|
|
#ifdef DEBUG |
|
|
|
|
Serial.print(F("Modulated delay buffer: ")); |
|
|
|
|
Serial.print(SAMPLES2TIME_MS(MOD_DELAY_SAMPLE_BUFFER), 2); |
|
|
|
|
Serial.print(F(" ms / ")); |
|
|
|
|
Serial.print(MOD_DELAY_SAMPLE_BUFFER, DEC); |
|
|
|
|
Serial.println(F(" samples")); |
|
|
|
|
Serial.print(F("Default delay time: ")); |
|
|
|
|
Serial.print(float(ENC_CHORUS_DELAY_DEFAULT) / 10, 2); |
|
|
|
|
Serial.println(" ms"); |
|
|
|
|
Serial.print(F("Max delay time: ")); |
|
|
|
|
Serial.print(float(ENC_CHORUS_DELAY_MAX) / 10, 2); |
|
|
|
|
Serial.println(F(" ms")); |
|
|
|
|
Serial.print(F(" ms / ")); |
|
|
|
|
Serial.print(uint16_t(TIME_MS2SAMPLES(float(ENC_CHORUS_DELAY_MAX) / 10)), DEC); |
|
|
|
|
Serial.println(F(" samples")); |
|
|
|
|
Serial.print(F("Default delay time: ")); |
|
|
|
|
Serial.print(float(ENC_CHORUS_DELAY_DEFAULT) / 10, 2); |
|
|
|
|
Serial.print(F(" ms / ")); |
|
|
|
|
Serial.print(uint16_t(TIME_MS2SAMPLES(float(ENC_CHORUS_DELAY_DEFAULT) / 10)), DEC); |
|
|
|
|
Serial.println(F(" samples")); |
|
|
|
|
#endif |
|
|
|
|
modchorus_r.offset(TIME_MS2SAMPLES(float(ENC_CHORUS_DELAY_DEFAULT) / 10)); |
|
|
|
|
modchorus_l.offset(TIME_MS2SAMPLES(float(ENC_CHORUS_DELAY_DEFAULT) / 10)); |
|
|
|
|
modchorus_r.offset(TIME_MS2SAMPLES(float(ENC_CHORUS_DELAY_MAX) / 10)); |
|
|
|
|
modchorus_l.offset(TIME_MS2SAMPLES(float(ENC_CHORUS_DELAY_MAX) / 10)); |
|
|
|
|
// Butterworth filter, 12 db/octave
|
|
|
|
|
modchorus_filter_r.setLowpass(0, 6000, 0.707); |
|
|
|
|
modchorus_filter_l.setLowpass(0, 6000, 0.707); |
|
|
|
|