Overview
Sets filter coefficients in other modules
Discussion
The Coeff Table module, also called the Param Set Table module, writes the values of one column of a statically defined table to an internal array of another module. A common use case is to update the coefficients of an FIR module based on changing conditions in the system.
...
See the Param Set module documentation for more detail on how to specify the target module's array, and the meaning of each setBehavior type.
Type Definition
Code Block |
---|
typedef struct _ModuleCoeffTable { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure INT32 index; // current index to coeff table INT32 numRows; // the size of each vector INT32 numCols; // the number of vectors INT32 setBehavior; // Controls the behavior of the module FLOAT32* coeff; // 2-D coeff table. void * modPtr; // Points to the module to set void * varPtr; // Points to the variable to set within the module instance structure } ModuleCoeffTableClass; |
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
index | int | parameter | 0 | 0 | Unrestricted | |
numRows | int | const | 0 | 5 | Unrestricted | |
numCols | int | const | 0 | 1 | Unrestricted | |
setBehavior | int | parameter | 0 | 3 | Unrestricted | |
coeff | float* | parameter | 0 | [5 x 1] | Unrestricted | |
modPtr | void * | parameter | 1 | Unrestricted | ||
varPtr | void * | parameter | 1 | Unrestricted |
Pins
Input Pins
Name: in
Description: parameter value
...
Sample rate range: Unrestricted
Complex support: Real
MATLAB Usage
File Name: coeff_table_module.m
...