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 _ModuleWindowOverlapFract32
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    fract32* window;                              // Window coefficients
    fract32* state;                               // State variable array
} ModuleWindowOverlapFract32Class;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

window

fract32*

parameter

0

[32 x 1]

Unrestricted

state

fract32*

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

MATLAB Usage

File Name: window_overlap_fract32_module.m

...