Skip to content

Commit

Permalink
In TANH mode use TANH (surge-synthesizer#1244)
Browse files Browse the repository at this point in the history
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 surge-synthesizer#1213
  • Loading branch information
baconpaul authored Oct 9, 2019
1 parent c757edf commit a9595de
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/common/dsp/effect/DistortionEffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a9595de

Please sign in to comment.