Browse Source

ADSR: Restore the previous behaviour and clarify the documentation

This partially reverts d9c25ec17d.
pull/22/head
Tom Poole 3 years ago
parent
commit
69e287bc2e
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      modules/juce_audio_basics/utilities/juce_ADSR.h

+ 4
- 1
modules/juce_audio_basics/utilities/juce_ADSR.h 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)


Loading…
Cancel
Save