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

◆ combineDomains()

float fl::audio::NoiseFloorTracker::combineDomains ( float timeLevel,
float freqLevel ) const
private

Calculate combined metric from time and frequency domains.

Parameters
timeLevelTime-domain level
freqLevelFrequency-domain level
Returns
Weighted combination

Definition at line 117 of file noise_floor_tracker.cpp.hpp.

117 {
118 // If no frequency-domain metric provided, use time-domain only
119 if (freqLevel < 0.0f) {
120 return timeLevel;
121 }
122
123 // Weighted average of time and frequency domain metrics
124 const float w = mConfig.crossDomainWeight;
125 return (1.0f - w) * timeLevel + w * freqLevel;
126}
NoiseFloorTrackerConfig mConfig

References mConfig.

Referenced by update().

+ Here is the caller graph for this function: