Overview
Extracts a range of samples from a block of data. Can also zero pad the signal at the start or end.
Discussion
This module outputs a range of samples between the STARTINDEX and ENDINDEX arguments to the function. The module can be used to output a subset of the samples of a signal or to zero pad at the start or end of the buffer.
...
The module works on multichannel signals and supports real or complex data.
Type Definition
Code Block |
---|
typedef struct _ModuleBlockExtract { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure INT32 startIndex; // Start index of the data to extract. INT32 endIndex; // End index of the data to extract. } ModuleBlockExtractClass; |
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
startIndex | int | const | 0 | 0 | Unrestricted | |
endIndex | int | const | 0 | 0 | Unrestricted |
Pins
Input Pins
Name: in
Description: Input signal
...
Complex support: Real and Complex
Output Pins
Name: out
Description: Output signal
Data type: {float, int, fract32}
MATLAB Usage
File Name: block_extract_module.m
...