diff --git a/include/sst/voice-effects/generator/TiltNoise.h b/include/sst/voice-effects/generator/TiltNoise.h index c4ff947..551c913 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), -6, 6) / 2; + float slope = 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 c9d5ce3..c131c3e 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), -6, 6) / 2; + float slope = clamp(this->getFloatParam(fpTilt), -6, 6) / 2; float posGain = this->dbToLinear(slope); float negGain = this->dbToLinear(-1 * slope); float res = .07f; diff --git a/tests/create-voice-effect.cpp b/tests/create-voice-effect.cpp index 4b36a4f..0d53420 100644 --- a/tests/create-voice-effect.cpp +++ b/tests/create-voice-effect.cpp @@ -190,7 +190,7 @@ TEST_CASE("Can Create Voice FX") { VTester>::TestVFX(); } - SECTION("Phaser") { VTester>::TestVFX(); } + SECTION("Noise AM") { VTester>::TestVFX(); } SECTION("VolumeAndPan") { VTester>::TestVFX();