FastLED 3.10.8
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 267 of file mic_response_data.h.

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

References fl::FL_NO_EXCEPT, and interpolateMicResponse().

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

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