Merge pull request #93 from alxarsenault/master

Fix setRandomFactor range error in Granulate.
This commit is contained in:
garyscavone
2020-03-09 10:50:59 -04:00
committed by GitHub

View File

@@ -79,9 +79,8 @@ void Granulate :: setRandomFactor( StkFloat randomness )
{ {
if ( randomness < 0.0 ) gRandomFactor_ = 0.0; if ( randomness < 0.0 ) gRandomFactor_ = 0.0;
else if ( randomness > 1.0 ) gRandomFactor_ = 0.97; else if ( randomness > 1.0 ) gRandomFactor_ = 0.97;
else gRandomFactor_ = 0.97 * randomness;
gRandomFactor_ = 0.97 * randomness; }
};
void Granulate :: openFile( std::string fileName, bool typeRaw ) void Granulate :: openFile( std::string fileName, bool typeRaw )
{ {