From d25d0998ee9882b0386c2336c63562d348984958 Mon Sep 17 00:00:00 2001 From: boblark Date: Wed, 9 Mar 2022 18:07:22 -0800 Subject: [PATCH] Changed to allow very small noise power --- synth_GaussianWhiteNoise_F32.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/synth_GaussianWhiteNoise_F32.cpp b/synth_GaussianWhiteNoise_F32.cpp index cd4a1b9..bd2b908 100644 --- a/synth_GaussianWhiteNoise_F32.cpp +++ b/synth_GaussianWhiteNoise_F32.cpp @@ -30,6 +30,8 @@ // Park-Miller-Carta Pseudo-Random Number Generator // http://www.firstpr.com.au/dsp/rand31/ +// Rev - Lower limit on sd changed, 0.01 to 1.0e-20f RSL 19Jan2022 + void AudioSynthGaussian_F32::update(void) { audio_block_f32_t *blockOut; @@ -37,7 +39,7 @@ void AudioSynthGaussian_F32::update(void) float32_t rdev = 0.0f; float32_t* pd; - if (sd < 0.01f) { + if (sd < 1.000e-20f) { return; // Not enabled }