mirror of
https://github.com/thestk/stk
synced 2026-02-05 08:56:16 +00:00
Merge pull request #93 from alxarsenault/master
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;
|
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 )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user