From a9595de4e9742d000f01506e425644438476aa2d Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 9 Oct 2019 15:43:00 -0400 Subject: [PATCH] In TANH mode use TANH (#1244) I had left an if in from an early version which had 'none' in the mix of parameters; that de-facto meant that tanh mode (the default) had no waveshaper. Remove the specious if and restore the default behavior to the 1.6.2.1 behavior Addresess #1213 --- src/common/dsp/effect/DistortionEffect.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/common/dsp/effect/DistortionEffect.cpp b/src/common/dsp/effect/DistortionEffect.cpp index 4450ba57946..9e5e3d6144d 100644 --- a/src/common/dsp/effect/DistortionEffect.cpp +++ b/src/common/dsp/effect/DistortionEffect.cpp @@ -91,11 +91,8 @@ void DistortionEffect::process(float* dataL, float* dataR) L = Lin + fb * L; R = Rin + fb * R; lp1.process_sample_nolag(L, R); - if( ws != 0 ) - { - L = lookup_waveshape(ws, L); - R = lookup_waveshape(ws, R); - } + L = lookup_waveshape(ws, L); + R = lookup_waveshape(ws, R); L += a; R += a; // denormal lp2.process_sample_nolag(L, R);