Browse Source

Tweak ADSR limit

tags/v0.4.0
Andrew Belt 6 years ago
parent
commit
18b0c1de22
1 changed files with 1 additions and 1 deletions
  1. +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.001 - env) / gSampleRate;
env += powf(base, 1 - attack) / maxTime * (1.01 - env) / gSampleRate;
}
if (env >= 1.0) {
env = 1.0;


Loading…
Cancel
Save