The "modulator" part for the roll-off in a raised cosine filter.
The "modulator" part for the roll-off in a raised cosine filter. It follows the formula
x(n) = cos(a*n * Pi) / (1 - (2a*n)^2)
with a = freq/sr
the normalized roll-off frequency, specified as the window's
param
, and the singularity of x(0) = 1.0
.
The sinc or "cardinal sine" function.
The sinc or "cardinal sine" function. The parameter is the normalized frequency (frequency divided by sampleRate).