Programmer Guide/SPU Reference/WINDOW: Difference between revisions

From STX Wiki
Jump to navigationJump to search
(initial import)
 
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{SPAtomTemplate}}
====WINDOW - signal window function====
====WINDOW - signal window function====


Line 9: Line 10:


{|
{|
! style="text-align:leftr;"|Name
! Description
|-
|-
|x
|x
Line 26: Line 29:


{|
{|
! style="text-align:leftr;"|Name
! Description
|-
|-
|<var>y</var>
|y
|window function or windowed signal
|window function or windowed signal
|-
|-
Line 86: Line 91:
|Bartlett (triangle) window
|Bartlett (triangle) window
|}
|}
;See also:
<[[../#Signal Processing Atoms|SP-atoms]]>

Latest revision as of 08:39, 13 October 2015

WINDOW - signal window function

Usage:

WINDOW x type c mode

Inputs:
Name Description
x window length or frame buffer
type window function type
c window function parameter
mode processing mode
Outputs:
Name Description
y window function or windowed signal
k window scaling factor
Function:

This atom implements a set of well known signal windowing functions. It can be used to compute a windowing function (which should be applied to the signal in a later processing step) or to multiply the signal with a windowing function directly.

The output k is set to a (average) scaling factor that can be used to align the energy of the input signal x and the weighted signal y. To compute the scaling factor, one frame of white noise is used as a test signal. The input mode determines whether the window function should be multiplied with the energy-scaling-factor k (mode=1) or not (mode=0).

Window computation, controlled by data input x

type of input x description
number The value of x (>2) is used as window length. The selected window function is computed and stored in the output vector y.
vector The input x is used as signal vector (length >2) and multiplied with the selected window function. The weighted signal is stored in the output y.

Windowing function, selected by type (function type) and c (parameter).

value of type value of c window function / comment
0 or RECTANGLE - rectangle window
1 or HANNING - Hanning window
2 or HAMMING - Hamming window
3 or BLACKMAN - Blackman-Harris window
4 or KAISER exponent (>0) Kaiser-Bessel window
5 or BARTLETT - Bartlett (triangle) window
See also

<SP-atoms>

Navigation menu

Personal tools