From cb7a92521195fe88ef0e15e59c20904bcc5402ea Mon Sep 17 00:00:00 2001 From: Aleks Rutins Date: Sun, 16 Apr 2023 07:58:22 -0400 Subject: [PATCH] Make mix more even --- plugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.cc b/plugin.cc index 5978da7..b45eb2f 100644 --- a/plugin.cc +++ b/plugin.cc @@ -34,7 +34,7 @@ namespace Dynamite { if(abs(input[pos]) < transmogrifyThreshold) transmogrified = 0; - output[pos] = (mix * ((algoMix * transmogrified) + ((1.0 - algoMix) * dist))) + ((1.0 - mix) * input[pos] * gainCoeff); + output[pos] = (mix * ((algoMix * transmogrified) + ((1.0 - algoMix) * dist))) + ((1.0 - mix) * input[pos] * coeff * threshCoeff * gainCoeff); } } }