diff --git a/include/sst/voice-effects/generator/TiltNoise.h b/include/sst/voice-effects/generator/TiltNoise.h index b2e98ca..c4ff947 100644 --- a/include/sst/voice-effects/generator/TiltNoise.h +++ b/include/sst/voice-effects/generator/TiltNoise.h @@ -96,7 +96,7 @@ template struct TiltNoise : core::VoiceEffectTemplateBasegetFloatParam(fpTilt), -3, 3) / 2; + float slope = std::clamp(this->getFloatParam(fpTilt), -6, 6) / 2; float posGain = this->dbToLinear(slope); float negGain = this->dbToLinear(-1 * slope); float res = .07f; diff --git a/include/sst/voice-effects/modulation/NoiseAM.h b/include/sst/voice-effects/modulation/NoiseAM.h index 2090f00..c9d5ce3 100644 --- a/include/sst/voice-effects/modulation/NoiseAM.h +++ b/include/sst/voice-effects/modulation/NoiseAM.h @@ -111,7 +111,7 @@ template struct NoiseAM : core::VoiceEffectTemplateBasegetFloatParam(fpTilt), -3, 3) / 2; + float slope = std::clamp(this->getFloatParam(fpTilt), -6, 6) / 2; float posGain = this->dbToLinear(slope); float negGain = this->dbToLinear(-1 * slope); float res = .07f;