Overview
Overlap and add method
Discussion
The OverlapAdd module implements the "overlap add" processing found in many frequency domain algorithms. At instantiation time you specify the blockSize of the input pin (ILEN) and the blockSize of the output pin (OLEN). The module allocates an internal state buffer of size ILEN words at instantiation time.
...
The module is designed to work on multiple channels.
Type Definition
Code Block |
---|
typedef struct _ModuleOverlapAdd { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure INT32 stateIndex; // Index of the oldest state variable in the array of state variables INT32 overlapLength; // Number of samples to be overlapped INT32 channelCount; // Number of channels FLOAT32* state; // State variable array } ModuleOverlapAddClass; |
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
stateIndex | int | state | 1 | 0 | Unrestricted | |
overlapLength | int | parameter | 1 | 256 | Unrestricted | |
channelCount | int | state | 1 | 1 | Unrestricted | |
state | float* | state | 1 | [256 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: overlap_add_module.m
...