17 return T(0.5) * (1 -
simd::cos(2 * T(M_PI) * p));
22 for (
int i = 0; i < len; i++) {
23 x[i] *=
hann(
float(i) / (len - 1));
40 for (
int i = 0; i < len; i++) {
41 x[i] *=
blackman(alpha,
float(i) / (len - 1));
53 - T(0.4891775) *
simd::cos(2 * T(M_PI) * p)
54 + T(0.1365995) *
simd::cos(4 * T(M_PI) * p)
55 - T(0.0106411) *
simd::cos(6 * T(M_PI) * p);
59 for (
int i = 0; i < len; i++) {
73 - T(0.01168) *
simd::cos(6 * T(M_PI) * p);
77 for (
int i = 0; i < len; i++) {
void hannWindow(float *x, int len)
Multiplies the Hann window by a signal x of length len in-place.
Definition window.hpp:21
void blackmanWindow(float alpha, float *x, int len)
Definition window.hpp:39
T hann(T p)
Hann window function.
Definition window.hpp:16
T blackman(T alpha, T p)
Blackman window function.
Definition window.hpp:32
T blackmanHarris(T p)
Blackman-Harris window function.
Definition window.hpp:68
void blackmanNuttallWindow(float *x, int len)
Definition window.hpp:58
void blackmanHarrisWindow(float *x, int len)
Definition window.hpp:76
T blackmanNuttall(T p)
Blackman-Nuttall window function.
Definition window.hpp:50
float_4 cos(float_4 x)
Definition functions.hpp:138
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9