This website works better with JavaScript.
Home
Help
Sign In
VCVRack
/
Rack
mirror of
https://github.com/VCVRack/Rack.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
43
Wiki
Activity
Browse Source
Fix randomize() for infinite Parameters
tags/v0.6.0
Andrew Belt
7 years ago
parent
82f73d9e3e
commit
ac0ed65199
1 changed files
with
1 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/app/Parameter.cpp
+ 1
- 1
src/app/Parameter.cpp
View File
@@ -23,7 +23,7 @@ void Parameter::reset() {
}
}
void Parameter::randomize() {
void Parameter::randomize() {
if (randomizable)
if (randomizable
&& isfinite(minValue) && isfinite(maxValue)
)
setValue(rescale(randomUniform(), 0.0, 1.0, minValue, maxValue));
setValue(rescale(randomUniform(), 0.0, 1.0, minValue, maxValue));
}
}
Write
Preview
Loading…
Cancel
Save