Wiki

This version (18 May 2021 09:02) was approved by John Joseph.The Previously approved version (27 Feb 2020 05:47) is available.Diff

Click here to return to the Basic page

Gain



Variants

  1. Gain (No Slew)
  2. Gain (Clickless SW Slew)
  3. Gain (HW Slew)
  4. Gain (RC Accurate)
  5. Complex Gain (No Slew)
  6. Multiple Control Gain

Description

The Gain block scales the input signal by the specified value in the text field.
The value (Linear) specified in the textbox is the multiplication factor. The value of “1” will not change the gain value and the value of “0” will mute the audio. The value of “2” will double the signal level (adds 6dB) and the value of “-2” will invert the polarity and double the signal level (adds -6dB). If the value is between 1 and 0, the signal level will decrease. You can choose a slew or no-slew algorithm. Using slew RAM gradually ramps the signal from original to target value, while using no-slew RAM jumps the signal immediately.
The Multiple Control Gain module has separate gain for each of the inputs.

Usage

Linear or dB value can be entered by clicking on “Lin” or “dB” selection on the UI ( Multiple Control Gain has Linear input only)

Targets Supported

Name ADSP-214xx ADSP-215xx/SC5xx ADAU145x/146x
———————————————————— ——————-- ——————————-- —————————-
Gain (No Slew) B/S B/S B/S
Gain (Clickless SW Slew) B/S B/S NA
Gain (HW Slew) NA NA S
Gain (RC Accurate) NA NA S
Complex Gain (No Slew) NA NA B
Multiple Control Gain NA NA S


Pins

Input

NameTypeDescription
————————————————————————————————————————
InputXAudio(Complex pin for Complex Gain)Input channel X

Output

NameTypeDescription
————————————————————————————————————————
OutputXAudio(Complex pin for Complex Gain)Output channel X

Note:

  • X - Channel Index


Configurable Parameters

GUI Parameter NameDefault ValueRangeFunction Description
————————————————————————————-———————————————————-
Gain1 -128 to 128 Scales the input signal by the specified gain
NumChannels11 to 20Number of input channels. Change in this value requires re-compilation(only for growth supported module)
IsDB True True / False Controls the gain control is either in dB or linear scale
SlewType RC Slew NA Slew type. Applicable to HW slew modules
CustomVal 0x208A NA Custom slew value. Applicable to HW slew modules


DSP Parameters

Parameter Name Description ADSP-214xx/SC5xx/215xx ADAU145x/146x
—————————————- ————————————————————————————— —————————————- —————————-
GainScales the input signal by the specified gainFloatFixPoint8d24
SlewStepSmoothness for scaling the signal (only in Clickless SW Slew)FloatNA
slew_mode Slew mode and value for HW slew (only for HW slew) NA Integer32


DSP Parameter Computation

Gain(Linear) = 10^(Gain(dB)/20)

resources/tools-software/sigmastudiov2/modules/gain/gain.txt · Last modified: 13 May 2021 06:02 by Nikhin Shetty