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

◆ _generate_hamming()

void _generate_hamming ( kiss_fft_scalar window[],
int N )

Definition at line 30 of file cq_kernel.c.

30 {
31 float a0 = 0.54;
32 for(int i = 0; i < N; i++){
33 #ifdef FIXED_POINT // If fixed_point, represent hamming window with integers
34 window[i] = SAMP_MAX*(a0-(1-a0)*cos(2*M_PI*i/(N-1)));
35 #else // Else if floating point, represent hamming window as-is
36 window[i] = a0-(1-a0)*cos(2*M_PI*i/(N-1));
37 #endif
38 }
39}
#define SAMP_MAX
#define M_PI
Definition math_macros.h:61

References kiss_fft_scalar, M_PI, and SAMP_MAX.

Referenced by _generate_kernel().

+ Here is the caller graph for this function: