DSP Run-Time Library Reference
gen_hanning
generate hanning window
Synopsis
#include <window.h>
void gen_hanning_fr16(w,a,N)
fract16 w[];
int a;
int N;
Description
This function generates a vector containing the Hanning window. The
length of the window required is specified by the parameter
stride parameter
vector
. The length of the output vector should therefore be
w
window is also known as the Cosine window.
Algorithm
=
−
w
[
n
]
0
5 .
0
5 .
cos
where n = {0, 1, 2, ..., N-1}
Domain
a > 0; N > 0
4-68
/* Window vector
/* Address stride in samples for window vector */
/* Length of window vector
is used to space the window values within the output
a
π
2
n
−
N
1
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
, and the
N
. This
N*a
for ADSP-219x DSPs
*/
*/
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?