Lower limit of EG rate calculation (Cakewalk)
This commit is contained in:
parent
8012532c51
commit
96d362308d
1 changed files with 1 additions and 2 deletions
|
|
@ -24,8 +24,7 @@ void ADSREnvelope<Type>::reset(const EGDescription& desc, const Region& region,
|
|||
};
|
||||
|
||||
auto secondsToExpRate = [sampleRate](Type timeInSeconds) {
|
||||
if (timeInSeconds < config::virtuallyZero)
|
||||
return 0.0;
|
||||
timeInSeconds = std::max<Type>(25e-3, timeInSeconds);
|
||||
return std::exp(-8.0 / (timeInSeconds * sampleRate));
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue