Window
Discussion
THIS MODULE IS DEPRECATED AND NOT RECOMMENDED FOR NEW DESIGNS. PLEASE USE THE WindowV2 MODULE INSTEAD.
This module applies different types of windows to the input. The input and output pin must have the same number of channels. The value startIndex specifies the starting of the range from where the window has to be applied. The index is zero based. and must lie in the range [0 blockSize-1]. The value endIndex specifies the ending of the range where the window has to be applied. The index is zero based. and must lie in the range [0 blockSize-1]. If startIndex and endIndex are outside of the allowable range, it is clipped to the ends of the buffers.
Module Pack
Advanced
ClassID
classID = 1357
Type Definition
typedef struct _ModuleWindow
{
ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure
INT32 startIndex; // starting of the window that should be extracted. The range of the startIndex is 0 to (blockSize-1)
INT32 endIndex; // ending of the window that should be extracted. The range of the endIndex is 0 to (blockSize-1)
FLOAT32 amp; // The peak level of the window
INT32 winType; // Type of the window
INT32 currentWinType; // Type of the window
FLOAT32* window; // Window coefficients
FLOAT32* customWindow; // Custom window coefficients
} ModuleWindowClass;
Variables
Properties
| Name | Type | Usage | isHidden | Default Value | Range | Units |
|---|---|---|---|---|---|---|
| startIndex | int | parameter | 0 | 0 | 0:127 | |
| endIndex | int | parameter | 0 | 127 | 0:127 | |
| amp | float | parameter | 0 | 1 | 0:1 | |
| winType | int | parameter | 0 | 1 | 1:16 | |
| currentWinType | int | const | 0 | 1 | Unrestricted | |
| window | float* | parameter | 0 | [128 x 1] | Unrestricted | |
| customWindow | float* | const | 0 | [128 x 1] | Unrestricted |
Pins
Input Pins
| Name | in |
| Description | Input signal |
| Data type | {float, int, fract32} |
| Channel range | Unrestricted |
| Block size range | Unrestricted |
| Sample rate range | Unrestricted |
| Complex support | Real and Complex |
Output Pins
| Name | out |
| Description | Output signal |
| Data Type | {float, int, fract32} |
Matlab Usage
File Name: window_module.m
M=window_module(NAME)
Creates a window_module for using in the Audio Weaver.
This module applies different types of windows to the input.
Arguments:
NAME - name of the module.
BLOCKSIZE - Input blockSize.
The input and output must have the same number of channels.
Copyright (c) 2026 DSP Concepts, Inc.