...
This module accepts a real or complex input and generates multiplies each value by a complex exponential.
Discussion
This module multiplies the input by the complex exponential exp(-j*2*pi*modBin*n/K) where modBin is an inspector parameter, K is the size of the input buffer (the FFT size) and n = 0:1:(K-1) is the sample number in the block. The only tunable parameter is modBin and K is taken from the wire size.
...
Code Block |
---|
typedef struct _ModuleComplexModulate { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure FLOAT32 modBin; // Omega of modulation coefficient equation. FLOAT32* modCoeffs; // Modulation coefficient array } ModuleComplexModulateClass; |
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
modBin | float | parameter | 0 | 0.25 | Unrestricted | |
modCoeffs | float* | state | 1 | [32 x 1] | Unrestricted |
Pins
Input Pins
Name: in
Description: Real or complex input
...