From 9d88c5e29ce3f6cf4297e0a9892ce9d9d70847d5 Mon Sep 17 00:00:00 2001 From: jd-13 Date: Sat, 7 May 2022 16:27:06 +0100 Subject: [PATCH] Sharper SC wave shape --- WECore/RichterLFO/RichterWavetables.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/WECore/RichterLFO/RichterWavetables.h b/WECore/RichterLFO/RichterWavetables.h index e1e0542b..6126624b 100644 --- a/WECore/RichterLFO/RichterWavetables.h +++ b/WECore/RichterLFO/RichterWavetables.h @@ -118,10 +118,11 @@ namespace WECore::Richter { for (int idx = 0; idx < Wavetables::SIZE; idx++) { const double radians {idx * CoreMath::DOUBLE_TAU / Wavetables::SIZE}; - // y = -2sin( (0.15x - 1.21)^6 ) + 1 _sidechainTable[idx] = ( - -2 * sin(pow(0.15 * radians - 1.21, 6)) + 1 + radians < 0.4497 ? + -2 * sin(pow(0.2 * radians - 0.8245, 6) * 10) + 1 : + -2 * sin(pow(0.15 * radians - 0.802, 6) * 10) + 1 ); } }