FastLED 3.9.15
Loading...
Searching...
No Matches

◆ isGated()

bool fl::audio::SilenceEnvelope::isGated ( float epsilon = 1e-4f) const

Definition at line 38 of file silence_envelope.cpp.hpp.

38 {
39 float delta = mCurrent - mConfig.targetValue;
40 if (delta < 0.0f) delta = -delta;
41 return delta <= epsilon;
42}

References FL_NOEXCEPT, mConfig, and mCurrent.