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

◆ apply_kernels()

void apply_kernels ( kiss_fft_cpx fft[],
kiss_fft_cpx cq[],
struct sparse_arr kernels[],
struct cq_kernel_cfg cfg )

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

155 {
156 for(int i = 0; i < cfg.bands; i++){
157 for(int j = 0; j < kernels[i].n_elems; j++){
158 kiss_fft_cpx weighted_val;
159 C_MUL(weighted_val, fft[kernels[i].elems[j].n], kernels[i].elems[j].val);
160 C_ADDTO(cq[i], weighted_val);
161 }
162 }
163}
#define C_ADDTO(res, a)
#define C_MUL(m, a, b)
AudioAnalyzeFFT1024 fft
int n_elems
Definition cq_kernel.h:55

References C_ADDTO, C_MUL, fft, FL_NOEXCEPT, sparse_arr_elem::n, and sparse_arr_elem::val.

Referenced by fl::audio::fft::Context::runNaive(), and fl::audio::fft::Context::runOctaveWise().

+ Here is the caller graph for this function: