This website works better with JavaScript.
Home
Help
Sign In
DISTRHO
/
JUCE
mirror of
https://github.com/DISTRHO/JUCE
Watch
1
Star
0
Fork
0
Code
Releases
1
Activity
Browse Source
Fixed a bug in the ADSR class when transitioning to the decay stage
tags/2021-05-28
ed
6 years ago
parent
de8d029cfe
commit
5d3854732b
1 changed files
with
5 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-1
modules/juce_audio_basics/utilities/juce_ADSR.h
+ 5
- 1
modules/juce_audio_basics/utilities/juce_ADSR.h
View File
@@ -135,7 +135,11 @@ public:
if (envelopeVal >= 1.0f)
{
envelopeVal = 1.0f;
currentState = State::decay;
if (decayRate > 0.0f)
currentState = State::decay;
else
currentState = State::sustain;
}
}
else if (currentState == State::decay)
Write
Preview
Loading…
Cancel
Save