Versions Compared

Key

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

Overview

Windows the signal and accumlates to an internal buffer

Discussion

This module implements windowing and overlapping. The module has an array of window coefficients equal to the input blockSize. The module multiples the window by the input block and accumulates this to an internal state buffer. The state buffer acts as a FIFO. After the accumulation, the last OUTBLOCKSIZE samples are copied to the output wire and the whole state buffer is then shifted and the first OUTBLOCKSIZE samples set to zero.

...

The module operates on any number of channels. The module requires that the output blockSize be equal or smaller in length to the input blockSize.

Type Definition

Code Block
typedef struct _ModuleWindowOverlap
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    FLOAT32* window;                              // Window coefficients
    FLOAT32* state;                               // State variable array
} ModuleWindowOverlapClass;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

window

float*

parameter

0

[32 x 1]

Unrestricted

state

float*

state

1

[32 x 1]

Unrestricted

Pins

Input Pins

Name: in

Description: audio input

...

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: audio output

Data type: float

MATLAB Usage

File Name: window_overlap_module.m

...