Wiki

This version (18 May 2021 08:59) was approved by John Joseph.The Previously approved version (08 Feb 2021 05:40) is available.Diff

Click here to return to the Dynamic Processors page

AGC Core

Description

This Module is the gain computation part of a compressor. Compression happens by taking the RMS of i/p samples i.e. by passing the input samples through a low-pass filter, converting this to dB scale and then looking up the corresponding gain value. There is a threshold set as a parameter in the Module, below which compression occurs.

Targets Supported

Name ADSP-214xx ADSP-215xx/SC5xx ADAU145x/146x
——————————————————-- —————————- ——————————-- —————————-
AGC Core B B NA


Pins

Input

Name Type Description
————————————— —————————— ————————————————
Input Audio Input channel

Output

Name Type Description
————————————— —————————— ————————————————
Output ControlCompressor Gain


Configurable Parameters

GUI Parameter NameDefault ValueRangeFunction Description
———————————————- —————————- ————————————- —————————————————————-
Decay 20ms 20 to 100ms Decay coefficient of the compressor
Attack time 20ms 20 to 100ms Attack coefficient of the compressor
Ratio 1 1 to 100 The ratio is ratio of the gain reduction below the threshold
Gain 0dB -120 to 20dB The make-up gain of the compressor, in dB
Threshold 0dB -80 to 20dB The compression threshold, in dB, below which compression takes place


DSP Parameters

Parameter NameDescriptionADSP-214xx/SC5xx/215xx
—————————— ——————————————————————————————————-- ——————————————-
DecayCoeff Decay coefficient of the compressor Float
SmoothDecay Decay smooth coefficient of the compressor Float
AttackCoeff Attack coefficient of the compressor Float
SmoothAttack Attack smooth coefficient of the compressor Float
Slope The ratio is ratio of the gain reduction below the threshold Float
Gain The make-up gain of the compressor, in dB Float
Threshold The compression threshold, in dB, below which compression takes place Float


DSP Parameter Computation

Hold = (int) FS * Hold/1000
Decay = 1/10^(Decay * 2/(10 * (FS + 0.000001)))
Where FS is the sampling rate

resources/tools-software/sigmastudiov2/modules/dynamicsprocessors/agccore.txt · Last modified: 12 May 2021 09:37 by John Joseph