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

◆ _generate_center_freqs()

void _generate_center_freqs ( float freq[],
int bands,
float fmin,
float fmax )

Definition at line 31 of file cq_kernel.cpp.hpp.

31 {
32 if (bands <= 1) {
33 if (bands == 1) freq[0] = fmin;
34 return;
35 }
36 fft_float_t m = FFT_LOG(fmax/fmin);
37 for(int i = 0; i < bands; i++) freq[i] = fmin*FFT_EXP(m*i/(bands-1));
38}
#define FFT_EXP(x)
float fft_float_t
#define FFT_LOG(x)

References FFT_EXP, FFT_LOG, and FL_NOEXCEPT.

Referenced by generate_kernels().

+ Here is the caller graph for this function: