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 140 of file cq_kernel.c.

140 {
141 for(int i = 0; i < cfg.bands; i++){
142 for(int j = 0; j < kernels[i].n_elems; j++){
143 kiss_fft_cpx weighted_val;
144 C_MUL(weighted_val, fft[kernels[i].elems[j].n], kernels[i].elems[j].val);
145 C_ADDTO(cq[i], weighted_val);
146 }
147 }
148}
#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, sparse_arr::elems, fft, and sparse_arr::n_elems.

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

+ Here is the caller graph for this function: