This website works better with JavaScript.
Home
Help
Sign In
VCVRack
/
Fundamental
mirror of
https://github.com/VCVRack/Fundamental.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
25
Wiki
Activity
Browse Source
Tweak ADSR limit
tags/v0.4.0
Andrew Belt
7 years ago
parent
bdcf327dfb
commit
18b0c1de22
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/ADSR.cpp
+ 1
- 1
src/ADSR.cpp
View File
@@ -72,7 +72,7 @@ void ADSR::step() {
env = 1.0;
}
else {
env += powf(base, 1 - attack) / maxTime * (1.0
0
1 - env) / gSampleRate;
env += powf(base, 1 - attack) / maxTime * (1.01 - env) / gSampleRate;
}
if (env >= 1.0) {
env = 1.0;
Write
Preview
Loading…
Cancel
Save