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

◆ downsampleMicResponse()

void fl::audio::downsampleMicResponse ( const MicResponseCurve & curve,
const float * binCenters,
int numBins,
float * out )
inline

Downsample a high-resolution mic response curve to N output bins.

Parameters
curveThe source mic response curve
binCentersArray of bin center frequencies (Hz), length numBins
numBinsNumber of output bins
outOutput array of gains, length numBins

Definition at line 266 of file mic_response_data.h.

268 {
269 for (int i = 0; i < numBins; ++i) {
270 out[i] = interpolateMicResponse(curve, binCenters[i]);
271 }
272}
float interpolateMicResponse(const MicResponseCurve &curve, float freq_hz)
Interpolate mic response at an arbitrary frequency (Hz).

References interpolateMicResponse().

Referenced by fl::audio::detector::EqualizerDetector::setMicProfile().

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