FastLED 3.10.6
Loading...
Searching...
No Matches

◆ advanceDoubleEnvelope()

void advanceDoubleEnvelope ( float & trigger,
float & stage,
float & level,
float attackSeconds,
float decaySeconds,
float deltaSeconds )
Examples
hydropack.ino.

Definition at line 204 of file hydropack.ino.

206 {
207 // Two cascaded attack/decay filters soften the event into a natural
208 // envelope. Both stages share an intentionally short attack; their decay
209 // is independently adjustable for the center and triangle elements.
210 stage = applyAttackDecay(stage, trigger, attackSeconds, decaySeconds,
211 deltaSeconds);
212 level = applyAttackDecay(level, stage, attackSeconds, decaySeconds,
213 deltaSeconds);
214 trigger = 0.0f;
215}
fl::UIButton trigger("Trigger")
float applyAttackDecay(float value, float target, float attackSeconds, float decaySeconds, float deltaSeconds)

References applyAttackDecay(), and trigger().

Referenced by loop().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: