From 05932d28ba7529123fbb7ccac942c2bb08cb425f Mon Sep 17 00:00:00 2001 From: Weird Constructor Date: Sat, 14 Aug 2021 11:27:23 +0200 Subject: [PATCH] fixed a bug in the dattorro reverb with the pre-delay amount --- src/dsp/dattorro.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dsp/dattorro.rs b/src/dsp/dattorro.rs index 5a2108d..eaea959 100644 --- a/src/dsp/dattorro.rs +++ b/src/dsp/dattorro.rs @@ -374,7 +374,12 @@ impl DattorroReverb { // HPF => Pre-Delay let out_pre_delay = - self.pre_delay.next_cubic(params.pre_delay_time_ms(), out_hpf); + if params.pre_delay_time_ms() < 0.1 { + out_hpf + } else { + self.pre_delay.next_cubic( + params.pre_delay_time_ms(), out_hpf) + }; // Pre-Delay => 4 All-Pass filters let mut diffused = out_pre_delay;