...
Code Block |
---|
typedef struct _ModuleSCNRv4GainCalculator { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure FLOAT32 prioriSnrScaler1Gain; // Scaler gain. FLOAT32 prioriSnrScaler2Gain; // Scaler gain. FLOAT32 timeAlphaPrioriMs; // Averaging time for a-priori SNR computation, in ms. FLOAT32 minGaindB; // Minimum gain (maximum reduction) per subband, in dB. FLOAT32 smoothOctave; // Number of octaves for cross-bin logarithmic smoothing. FLOAT32 postSnrClipAsymUpper; // Asymmetric-clip upper limit. FLOAT32 prioriSnrClipAsymUpper; // Asymmetric-clip upper limit. FLOAT32 gainCalcLogScaleGain; // Scale Offset gain. FLOAT32 smoothStartFreq; // Start frequency for cross-bin smoothing. FLOAT32* aAPrioriFb; // A-priori SNR estimation feedback line. FLOAT32* aPrioriSnrDelay; // Block Delay single-block delay buffer. INT32* aSmoothStartIdx; // Starting index for the averaging process. INT32* aSmoothEndIdx; // Ending index for the averaging process. FLOAT32* aSmoothOneOverN; // Precomputed 1/N for averaging. } ModuleSCNRv4GainCalculatorClass; |
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
prioriSnrScaler1Gain | float | derived | 0 |
0.99992 | Unrestricted | ||
prioriSnrScaler2Gain | float | derived | 0 |
8.3327e-05 | Unrestricted | |||||
timeAlphaPrioriMs | float | parameter | 0 | 250 | 0:1000000 | ms |
minGaindB | float | parameter | 0 | -12 | -30:0 | dB |
smoothOctave | float | parameter | 0 | 0.1 | 0:1 | |
postSnrClipAsymUpper | float | const | 1 | 1000000 | Unrestricted | |
prioriSnrClipAsymUpper | float | const | 1 | 10000 | Unrestricted | |
gainCalcLogScaleGain | float | const | 1 | 0.033333 | Unrestricted | |
smoothStartFreq | float | const | 1 | 0 | Unrestricted | |
aAPrioriFb | float* | state | 1 | [1 x |
33] | Unrestricted | |||
aPrioriSnrDelay | float* | state | 1 | [1 x |
33] | Unrestricted | |||
aSmoothStartIdx | int* | derived | 1 | [ |
33 x 1] | Unrestricted | |||
aSmoothEndIdx | int* | derived | 1 | [ |
33 x 1] | Unrestricted | |||
aSmoothOneOverN | float* | derived | 1 | [ |
33 x 1] | Unrestricted |
Pins
Input Pins
Name: Yk
Description: Input signal power
...