Overview
Sample-by-sample polynomial nonlinearity
Discussion
Polynomial nonlinearity, computed on a sample by sample basis. The module implements the following equation:
...
where y is the output, x is the input, and c is the array of polynomial coefficients.
Type Definition
Code Block |
---|
typedef struct _ModulePolynomial { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure INT32 numCoeffs; // Number of coefficients in the polynomial. FLOAT32* coeffs; // Coefficient array in descending order. X^(N-1)*C[0] + X^(N-2)*C[1]+ ... } ModulePolynomialClass; |
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
numCoeffs | int | const | 0 | 3 | Unrestricted | |
coeffs | float* | parameter | 0 | [3 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: polynomial_module.m
...