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:
parent
9c5f4659bb
commit
69e287bc2e
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue