1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

ADSR: Restore the previous behaviour and clarify the documentation

This partially reverts d9c25ec17d.
This commit is contained in:
Tom Poole 2022-04-01 12:00:13 +01:00
parent 9c5f4659bb
commit 69e287bc2e

View file

@ -31,6 +31,10 @@ namespace juce
with setParameters() then call getNextSample() to get the envelope value to be applied
to each audio sample or applyEnvelopeToBuffer() to apply the envelope to a whole buffer.
Do not change the parameters during playback. If you change the parameters before the
release stage has completed then you must call reset() before the next call to
noteOn().
@tags{Audio}
*/
class JUCE_API ADSR
@ -115,7 +119,6 @@ public:
{
if (attackRate > 0.0f)
{
envelopeVal = 0.0f;
state = State::attack;
}
else if (decayRate > 0.0f)