STM32_AI_AudioPreprocessing_Library
Enumerations | Functions
Window functions

Window functions generation. More...

Enumerations

enum  WindowTypedef { WINDOW_HANN , WINDOW_HAMMING , WINDOW_BLACKMAN }
 Window function types. More...
 

Functions

int32_t Window_Init (float32_t *pDst, uint32_t len, WindowTypedef type)
 Generate a window function.
 
void cosine_sum_window_create (float32_t *pDst, uint32_t len, float64_t a0, float64_t a1, float64_t a2)
 Helper function to create cosine-sum windows.
 

Detailed Description

Window functions generation.

A lot of different window have been developed and tested in DSP, but common choice is between Hanning, Hamming, Blackman and Flat-Top (even if many others are available).

Enumeration Type Documentation

◆ WindowTypedef

Window function types.

Enumerator
WINDOW_HANN 

Hann (Hanning) window

WINDOW_HAMMING 

Hamming window

WINDOW_BLACKMAN 

Blackman window

Function Documentation

◆ Window_Init()

int32_t Window_Init ( float32_t *  pDst,
uint32_t  len,
WindowTypedef  type 
)

Generate a window function.

Parameters
*pDstpoints to the output buffer.
lenwindow length.
typewindow type.
Returns
0 if successful or -1 if there is an error.