Build your own DIY digital multi-effect pedal with the following features

  • Guitar Tuner
  • Noise Gate
  • Compressor
  • Distortion
  • Tremolo
  • Delay and Reverb
Learn more HERE!

Envelope Detector Circuit with Separate Attack/Rise and Decay/Release Time Settings

Figure 1. Envelope Detector with Attack/Rise Time and Decay/Release Time
Figure 1. Envelope Detector with Attack/Rise Time and Decay/Release Time

Introduction to Envelope Detector Circuit

Envelope detector circuit is used to get the amplitude profile of a signal. Some important properties of an envelope detector are attack or rise time and decay or release time. In the Figure 1, a signal is plotted in blue, and the detected envelope is plotted in black. Since it employs capacitor for filtering inside the detection process, the process of charging and discharging of the the capacitor produces the attack and decay phenomenons. In some audio processing processes, such signal compressor or automatic wah effect, the characteristic of attack/rise time and decay/release time might produce some benefits and need to be controlled to produce various unique results.

Simple Envelope Detector Circuits

Figure 1. Simple Passive Envelope Detector Circuit Schematic Diagram
Figure 2. Simple Passive Envelope Detector Circuit Schematic Diagram

A very simple passive envelope detector circuit’s schematic diagram is shown in the figure 2. The detector assume a very low impedance in the input source and a very high impedance in the output devices. The drawback of this circuit is that the gain of the detector is affected by decay and delay setting, means that increasing attack time and or decreasing decay time will reduce the envelope gain. This would be difficult and inconvenient in many applications.

Figure 3. Simple Active Envelope Detector Circuit Schematic Diagram
Figure 3. Simple Active Envelope Detector Circuit Schematic Diagram

One improvement can be made using op-amp as an active amplifier. As seen in the figure 3, now the setting of the attack/rise time and decay/release time has separate paths through different orientation diodes. The drawback of this circuit is that the diode adds a dead-zone, when the difference between the output voltage (capacitor’s voltage) and the output of the op-amp falls within bias range of the diode. For silicon diode like 1N4148, both diode will be inoperative if the voltage difference s less than 0,6 volts.

The Ultimate Improvement: Separate Active Attack-Decay Rectification

To eliminate the bias error comes from the diodes, I have designed an envelope detector with separate attack and decay active rectification.

Figure 4. Schematic Diagram of Hamuro Envelope Detector Circuit With Separate Attack and Decay Controls

Operational amplifier (op-amp) U1A provide full-wave rectification, op-amp U1B provides active decay rectification, and op-amp U1C provides active attack rectification. At U1B, if the input is higher than the output then the output will be corrected as fast as possible since the op-amp will be actively drive the diode D2. But when the input gets lower than the output, the output will be slowly decayed through the resistor R3 and VR1 since the diode disconnect it from the strong negative pulling of the op-amp output. At U1C op-amp, the diode is reversed, so the op-amp will act to discharge as fast as possible whenever the input is lower than the output by actively driving the diode. But when the input is higher than the output, the capacitor will be charged slowly through the R4 and VR2. Ideally, VR2 should be connected to the buffered signal from D2 output, but it will need one additional op-amp. To avoid adding an additional op-amp while approximating D2 output, a diode D3 and a C5 capacitor is added to provide fast attack signal without affecting the decaying process of C4 capacitor discharging. Op amp U1D is provided to buffer the output, and D5 LED is provided as an indicator. If the indicator is not needed then D5 can be shorted directly to the output and the feedback path, and R5 can be omitted.  See the circuit in action in the following video.


  • Ren Kitchener

    The background description is well presented. I simulated this circuit, and it works perfectly. I adjusted a few component values (C6 was a bit too high for my application). The Hamuro generator name will be used to describe this circuit in my compressor. Thank you for this Hamuro, it’s a very good technical solution.

Leave a Reply

Your email address will not be published. Required fields are marked *

+ eight = 9