Overview
This module applies different types of windowing functions to the input.
Discussion
This module applies different types of windows to the input. The input and output pin must have the same attributes. This module will operate only on non-complex float samples.
Certain window types take optional arguments (opt1 and opt2). To see what the optional input arguments are, see the Matlab help for the individual windows, for example, KAISER or CHEBWIN.
Type Definition
Code Block |
---|
typedef struct _ModuleWindowV2 { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure FLOAT32 amp; // The peak level of the window INT32 winType; // Type of the window INT32 currentWinType; // Type of the window FLOAT32 opt1; // Coefficient generation option INT32 useOpt1; // Apply option FLOAT32 opt2; // Coefficient generation option INT32 useOpt2; // Apply option FLOAT32* window; // Window coefficients } ModuleWindowV2Class; |
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
amp | float | parameter | 0 | 1 | 0:1 | |
winType | int | parameter | 0 | 1 | 1:17 | |
currentWinType | int | derived | 0 | 1 | Unrestricted | |
opt1 | float | parameter | 0 | 0 | Unrestricted | |
useOpt1 | int | parameter | 0 | 0 | 0:1 | |
opt2 | float | parameter | 0 | 0 | Unrestricted | |
useOpt2 | int | parameter | 0 | 0 | 0:1 | |
window | float* | parameter | 0 | [32 x 1] | Unrestricted |
Pins
Input Pins
Name: in
Description: Input signal
...
Sample rate range: Unrestricted
Complex support: Real
Output Pins
Name: out
Description: Output signal
Data type: float
MATLAB Usage
File Name: window_v2_module.m
...