Adjust the ADSR exponential rate
This commit is contained in:
parent
ebe5339ca3
commit
4c0a7f6dfd
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ template<class Type>
|
||||||
Type ADSREnvelope<Type>::secondsToExpRate (Type timeInSeconds) const noexcept
|
Type ADSREnvelope<Type>::secondsToExpRate (Type timeInSeconds) const noexcept
|
||||||
{
|
{
|
||||||
timeInSeconds = std::max<Type>(25e-3, timeInSeconds);
|
timeInSeconds = std::max<Type>(25e-3, timeInSeconds);
|
||||||
return std::exp(-8.0 / (timeInSeconds * sampleRate));
|
return std::exp(-9.0 / (timeInSeconds * sampleRate));
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class Type>
|
template <class Type>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue