ΣSigmaStudio Ask AI Русский Log in

ADAU1761 - Signal envelope attack and decay in db/s

SigmaDSP & SigmaStudio mcrr Aug 20, 2015 00:00 2 replies Original on forum ↗
Subscribe
mcrr Question
Aug 20, 2015 00:00

Friends,

I need to get the RMS signal value and controle the attack and decay in db/s. The signal envelope works fine, but I can't control the decay in db/s just linear. I would like to know if there is a way to solve my problem.

Regards.

Audio Signal Processors

SigmaDSP Audio Processors

adau1761

KJBob Reply
Nov 9, 2016 00:00

Hello,

Likely you need a quick Attack rate (such as 120 dB/s), and a slower Decay rate (perhaps 20 dB/s). The schematic below compares two envelope detectors -- a plain RMS Envelope block on top, and a RMS Envelope block followed by a homemade Decay stage below. In the two-stage detector, the RMS Envelope block provides the usual Attack rate and Hold time. Set this block's Decay rate as fast as possible (the same as the Attack rate) so that the following stage determines the overall Decay time.

Calculate the gain b according to the desired overall Decay rate (dB/s) with this formula:

b = e^ - [(dB/s) * ln10 / 20 * fs] Example: fs = 48000, dB/s = 20, b = 0.999952

Compare the plain RMS Envelope block's response to that of the two-stage design:

Best regards,

Bob

a699ee4f2aa0774667765e49a5038e8c.png
a699ee4f2aa0774667765e49a5038e8c.png
a699ee4f2aa0774667765e49a5038e8c.png-620x245.png
a699ee4f2aa0774667765e49a5038e8c.png-620x245.png
df4fe572f1fbd87fd2880c8b0807d294.png
df4fe572f1fbd87fd2880c8b0807d294.png
df4fe572f1fbd87fd2880c8b0807d294.png-620x183.png
df4fe572f1fbd87fd2880c8b0807d294.png-620x183.png
EZAdministrator Reply
Aug 2, 2018 00:00

This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.

Thank you,
EZ Admin