# RMS Lim/Exp

This block implements the code found [here ](http://spinsemi.com/get_spn.php?spn=rms_lim_exp.spn\&prodnum=SPN1001)in the Spin Semiconductor Free Programs.

<figure><img src="https://4148137667-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvkMElNCYnDaBJfC78R6c%2Fuploads%2FoSF7U1l5eNrB0yfdjQzw%2Fimage.png?alt=media&#x26;token=0bf6b5ac-d1ff-4b37-ae46-91a670bebcc7" alt=""><figcaption></figcaption></figure>

It looks like it limits the input signal to -12 dB FS.  The tones shown below are at 110, 440, and 2200 Hz.  Top trace is input, bottom trace is output.

<figure><img src="https://4148137667-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvkMElNCYnDaBJfC78R6c%2Fuploads%2Fb7uWiku8iIgNm4L51S5Y%2Fimage.png?alt=media&#x26;token=1e921aa1-4e75-4669-965c-01aab60764f7" alt=""><figcaption><p>Linear Scale</p></figcaption></figure>

<figure><img src="https://4148137667-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvkMElNCYnDaBJfC78R6c%2Fuploads%2F0vMC7VK59vAT30oWto4Q%2Fimage.png?alt=media&#x26;token=a0fb98fd-b111-46de-9778-16a332d9ea73" alt=""><figcaption><p>Log scale</p></figcaption></figure>

The expansion can be seen in the next image.  The input signal (top) is white noise at 10 dB steps from -60 to 0 dB FS.

<figure><img src="https://4148137667-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvkMElNCYnDaBJfC78R6c%2Fuploads%2FzXEAG1jwrCNTOMmH7XJB%2Fimage.png?alt=media&#x26;token=bb0913a4-c343-4781-a39c-4cdf6040238f" alt=""><figcaption><p>Expansion and limiting ranges.</p></figcaption></figure>
