mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
Fix setRandomFactor range error in Granulate.
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user