From 766f1aa343ba4ac44dbede58adca8501007df475 Mon Sep 17 00:00:00 2001 From: pio Date: Thu, 28 Nov 2024 13:13:20 +0100 Subject: [PATCH] phaser modulation input fix --- src/effect_phaserStereo_F32.cpp | 2 +- src/effect_reverbsc_F32.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/effect_phaserStereo_F32.cpp b/src/effect_phaserStereo_F32.cpp index 9eccb80..849599b 100644 --- a/src/effect_phaserStereo_F32.cpp +++ b/src/effect_phaserStereo_F32.cpp @@ -120,7 +120,7 @@ void AudioEffectPhaserStereo_F32::update() } else // external modulation signal does not use modulation offset between LR { - modSigL = ((float32_t)blockMod->data[i] + 32768.0f) / 65535.0f; // mod signal is 0.0 to 1.0 + modSigL = blockMod->data[i]; // mod signal is 0.0 to 1.0 modSigR = modSigL; } // apply scale/offset to the modulation wave diff --git a/src/effect_reverbsc_F32.h b/src/effect_reverbsc_F32.h index 5c035e1..f01bcaa 100644 --- a/src/effect_reverbsc_F32.h +++ b/src/effect_reverbsc_F32.h @@ -17,7 +17,6 @@ #define _EFFECT_REVERBSC_F32_H_ #include -#include "Audio.h" #include "AudioStream.h" #include "AudioStream_F32.h" #include "arm_math.h"