Wiki

This version (18 May 2021 09:02) was approved by John Joseph.The Previously approved version (19 Jan 2021 06:50) is available.Diff

Click here to return to the Gain page

Single Volume Shared



Varaints

  1. Single Control (HW Slew)
  2. Single Control (No Slew)
  3. Single Control (RC Accurate)
  4. Single Control Adjustable (RC Accurate)
  5. Complex Single Volume Control (No-Slew)

Description

The Single Volume Shared block controls level of the signal through slider. This block has single volume control for 'N' number of inputs. Connect an input signal and control its level with the slider. Optionally the slew rate can be adjusted in the range 1 to 23.

Usage

To modify the slider settings, right click on the slider control to customize the max/min and step size for slider.

Targets Supported

Name ADSP-214xx ADSP-215xx/SC5xx ADAU145x/146x
———————————————————— ——————-- ——————————-- —————————-
Single Control (HW Slew) B/S B/S S
Single Control (No Slew) NA NA S
Single Control (RC Accurate) NA NA S
Single Control Adjustable (RC Accurate) NA NA S
Complex Single Volume Control (No-Slew) NA NA B

Pins

Input

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

Output

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

Note:

  • X - Channel Index


Configurable Parameters

GUI Parameter NameDefault ValueRangeFunction Description
————————————————————————————————————————
Gain0dB-200 to +200 dBchange the level of the input signal
SlewRate(StepSize)121 to 23 (RC and Linear)
0.1 to 0.8 (DB)
Controls the transition time of the signal from one level to another level
SlewType RC Slew NA Slew type. Applicable to HW slew modules
CustomVal 0x208A NA Custom slew value. Applicable to HW slew modules
IsDBChosenTrueTrue/FalseControls the volume slider is in dBps/Linear
NumChannels1 1 to 20Num of input and output channels. Change in this value requires re-compilation


DSP Parameters

Parameter Name Description ADSP-214xx/SC5xx/215xx ADAU145x/146x
———————— —————————————————————————————————— —————————————- —————————-
Gainchange the level of the input signalFloat FixPoint8d24
SlewRateControls the transition time of the signal from one level to another level Float NA
slew_mode Slew mode and value for HW slew (only for HW slew) NA Integer32
alpha scales the value based on Slew mode and value for HW slew (only for HW slew) NA FixPoint8d24
om_alpha scales the value based on Slew mode and value for HW slew (only for HW slew) NA FixPoint8d24


DSP Parameter Computation

————————————————————————————————————
SlewRate = Math.Pow(2, (-1 * StepSize))
Gain = Math.Pow(10, (DbGain/20))
tc = 0.04 * Math.Pow(2, (_slewRate - 1)) / 1000
alpha = Math.Exp(-1 / (tc * FS))
om_alpha = 1 - alpha


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