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

◆ _generate_hamming()

void _generate_hamming ( kiss_fft_scalar window[],
int N )

Definition at line 31 of file cq_kernel.cpp.

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

References kiss_fft_scalar, M_PI, and SAMP_MAX.

Referenced by _generate_kernel().

+ Here is the caller graph for this function: