Compressor Table Format - Changing compressors at run-time

Document created by BrettG on Jun 4, 2013
Version 1Show Document
  • View in full screen mode

There are several compressors available in SigmaStudio. Some of them use peak detection, while others use an approximated RMS detection. In order to make the algorithm memory efficient, the transfer function of the compressor that maps input levels to output gain is stored in memory, and the output gain is calculated by linear interpolation.

 

A list of available compressors is available here: http://wiki.analog.com/resources/tools-software/sigmastudio/toolbox/dynamicsprocessors

 

The compressor table has 33 points, which matches the 33 points on the GUI. By changing a big point on the curve, you can change the shape of the overall curve. The big blue points act like "anchors" as they alter the curve of the small blue points behind them.

 

The calculation is actually done using 34 points stored in RAM. The first point stored in RAM represents the gain reduction value for any input below -90dB.

 

Here's an example: A compressor with a threshold of -6dB and a ratio of 2:1. For all inputs between -90 dB and -6 dB, the output gain is 1. For points above -6 dB, the output gain decreases by 3 dB for every 6 dB increase in input level.


The resulting table is as follows:

 

PointdB inputOutput Gain
1-901
2-871
3-841
4-811
5-781
6-751
7-721
8-691
9-661
10-631
11-601
12-571
13-541
14-511
15-481
16-451
17-421
18-391
19-361
20-331
21-301
22-271
23-241
24-211
25-181
26-151
27-121
28-91
29-61
30-30.85
3100.707
3230.6
3360.50

 

Note that at an input of -6dB (the threshold), the output = input.

At 0dB, the output is 0.707, or -3dB.

At 6 dB, the output is 0.51, or -6dB.

 

You can make your own curves and calculate the parameters in manually if you prefer. Typically, in a real world system, this is calculated by the microcontroller.

 

The GUI in SigmaStudio is intended as an easy way to set the compressor curve while tuning the system. To give an end user control over the curve, the table points should be calculated in the microcontroller.

 

In the GUI, the maximum ratio achievable is limited. However, you can enter in your own parameter data (or right click on a blue point and choose "Set Point Value" to bypass this limitation.

 

You are correct, the x values are always in 3 dB spacings.

 

The new "Standard RMS Compressor" has now been released - Check the toolbox under Dynamics Processors > RMS > Standard Resolution > Lower Range.

 

This FAQ was generated from the following discussion: Developing Sigma DSP Cluster

2 people found this helpful

Attachments

    Outcomes