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 141 of file cq_kernel.cpp.

141 {
142 for(int i = 0; i < cfg.bands; i++){
143 for(int j = 0; j < kernels[i].n_elems; j++){
144 kiss_fft_cpx weighted_val;
145 C_MUL(weighted_val, fft[kernels[i].elems[j].n], kernels[i].elems[j].val);
146 C_ADDTO(cq[i], weighted_val);
147 }
148 }
149}
#define C_ADDTO(res, a)
#define C_MUL(m, a, b)
AudioAnalyzeFFT1024 fft
int n_elems
Definition cq_kernel.h:55

References cq_kernel_cfg::bands, C_ADDTO, C_MUL, fft, sparse_arr_elem::n, sparse_arr::n_elems, and sparse_arr_elem::val.

Referenced by fl::FFTContext::fft_unit_test().

+ Here is the caller graph for this function: