Fix setRandomFactor range error in Granulate.

This commit is contained in:
Alexandre Arsenault
2020-03-08 20:31:34 -04:00
parent f489451660
commit 7fc638ce32

View File

@@ -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 )
{