FastLED 3.9.15
Loading...
Searching...
No Matches
mic_response_data.h File Reference

Detailed Description

High-resolution microphone frequency response data and utilities.

Stores 61-point (1/6-octave, 20 Hz–20 kHz) mic response curves as the source of truth. At init time these are downsampled to whatever bin layout the equalizer uses. Pink noise compensation is computed from bin centers rather than hardcoded.

Definition in file mic_response_data.h.

+ Include dependency graph for mic_response_data.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fl::audio::MicResponseCurve
 

Namespaces

namespace  fl
 Base definition for an LED controller.
 
namespace  fl::audio
 

Functions

float fl::audio::computePinkNoiseGain (float freq_hz, float f_ref)
 Compute pink noise compensation gain for a single frequency.
 
void fl::audio::computePinkNoiseGains (const float *binCenters, int numBins, float *out)
 Compute pink noise compensation gains for all bins.
 
void fl::audio::downsampleMicResponse (const MicResponseCurve &curve, const float *binCenters, int numBins, float *out)
 Downsample a high-resolution mic response curve to N output bins.
 
float fl::audio::fl_progmem_read_float (const float *addr)
 Read a float from PROGMEM.
 
MicResponseCurve fl::audio::getMicResponseCurve (MicProfile profile)
 Get the high-resolution response curve for a given mic profile.
 
float fl::audio::interpolateMicResponse (const MicResponseCurve &curve, float freq_hz)
 Interpolate mic response at an arbitrary frequency (Hz).
 

Variables

static const float fl::audio::kMicResponse_GenericMEMS [kMicResponsePoints]
 
static const float fl::audio::kMicResponse_ICS43434 [kMicResponsePoints]
 
static const float fl::audio::kMicResponse_INMP441 [kMicResponsePoints]
 
static const float fl::audio::kMicResponse_LineIn [kMicResponsePoints]
 
static const float fl::audio::kMicResponse_SPM1423 [kMicResponsePoints]
 
static const float fl::audio::kMicResponseFreqs [kMicResponsePoints]
 
static constexpr int fl::audio::kMicResponsePoints = 61
 

Class Documentation

◆ fl::audio::MicResponseCurve

struct fl::audio::MicResponseCurve
Class Members
int count Number of data points.
const float * freqs Pointer to frequency array (PROGMEM)
const float * gains Pointer to gain array (PROGMEM)