Skip to main content
Skip table of contents

WindowV2

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
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

Data type: float

Channel range: Unrestricted

Block size range: Unrestricted

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

CODE
 M=window_v2_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.
 The input and output must have the same number of channels.
 Copyright 2020.  DSP Concepts, Inc.  All Rights Reserved.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.