Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scroll Documents: Update page title prefix

Overview

This module applies a user defined window function to the input.

Discussion

This module applies a user defined window to the input. The input and output pin must have the same attributes. There is a "blocksize" argument that defines the input block size and the window size. This module will operate only on non-complex float samples.

Type Definition

Code Block
typedef struct _ModuleWindowCustom
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    FLOAT32 amp;                                  // The peak level of the window
    FLOAT32* window;                              // Window coefficients
} ModuleWindowCustomClass;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

amp

float

parameter

0

1

0:1

window

float*

parameter

0

[128 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_custom_module.m

...