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) {
|
auto secondsToExpRate = [sampleRate](Type timeInSeconds) {
|
||||||
if (timeInSeconds < config::virtuallyZero)
|
timeInSeconds = std::max<Type>(25e-3, timeInSeconds);
|
||||||
return 0.0;
|
|
||||||
return std::exp(-8.0 / (timeInSeconds * sampleRate));
|
return std::exp(-8.0 / (timeInSeconds * sampleRate));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue