From 7fc638ce32fc9f522e61841dafebc45ad7643666 Mon Sep 17 00:00:00 2001 From: Alexandre Arsenault Date: Sun, 8 Mar 2020 20:31:34 -0400 Subject: [PATCH] Fix setRandomFactor range error in Granulate. --- src/Granulate.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Granulate.cpp b/src/Granulate.cpp index ef362f6..4b89117 100644 --- a/src/Granulate.cpp +++ b/src/Granulate.cpp @@ -79,9 +79,8 @@ void Granulate :: setRandomFactor( StkFloat randomness ) { if ( randomness < 0.0 ) gRandomFactor_ = 0.0; else if ( randomness > 1.0 ) gRandomFactor_ = 0.97; - - gRandomFactor_ = 0.97 * randomness; -}; + else gRandomFactor_ = 0.97 * randomness; +} void Granulate :: openFile( std::string fileName, bool typeRaw ) {