|
FastLED 3.9.15
|
Tracks a smoothed peak with attack, decay, and output-inertia time-constants.
Definition at line 6 of file fx_audio.h.
#include <fx_audio.h>
Public Member Functions | |
| MaxFadeTracker (float attackTimeSec, float decayTimeSec, float outputTimeSec, float sampleRate) | |
| float | operator() (const int16_t *samples, size_t length) |
| Process one 512-sample block; returns [0…1] with inertia. | |
| void | setAttackTime (float t) |
| void | setDecayTime (float t) |
| void | setOutputTime (float t) |
Private Attributes | |
| float | mAttackRate |
| float | mCurrentLevel |
| float | mDecayRate |
| float | mOutputRate |
| float | mSampleRate |
| float | mSmoothedOutput |