slope generator module

#eurorack🎛️

https://kassu2000.blogspot.com/2016/04/slope-generator.html

![](/img/user/images/Pasted image 20230629153057.png)

Loop stability (update March 2019)

The basic slew limiter circuits shown above has stability issues at some settings, causing the output voltage of U1B to oscillate. While these oscillations are quite small at the final output, it is a good idea to fix them.

Slew Limiter

The slew limiter can be stabilized with a small resistance in series with the timing capacitor C1. This is shown as resistor R7 in the complete circuit below. The value of R7 can be adjusted if needed, in my tests 470 Ohm seemed to work well. Note that the output is tapped off between C1 and R7, such that the voltage drop over R7 does not affect the slew limiter output.

Envelope

The gate input is processed by a Schmitt trigger, Q5 + Q6 and surrounding components, which turns any input signal (at least ~ 1V) into a well-defined gate. This gate is turned into a short trigger pulse by C3/R17.

The envelope timing is controlled by U1D, which acts as a set/reset latch. The latch is "set" by the trigger pulse. This makes the output of U1D go negative, and this negative voltage is fed to the slew limiter, which then starts to ramp up the main output. Feedback resistor R11 keeps the latch "set" even when the trigger has ended. The slew output continues to rise, but when it reaches about 5V it "resets" the latch via R10 and D1. The slew limiter is now free to go downwards again, completing the Attack/Release envelope circuit. The Sustain function is created by feeding part of the gate signal to the slew input through R8.

Loop function

The loop function is very simple: it switches in a positive feedback path R5 around U1B. This makes that the slew limiter wants to continue in the direction it is going. It continues until the output reaches about +5V or -5V, and the negative feedback via R1 becomes stronger than the positive feedback through R5. Then it flips around, and loops eternally in the +/-5V range.

Control voltage processing

U2 forms four attenuverter circuits, that can attenuate as well as invert a CV signal with a single knob. U1A and U1C are for the rise and fall CV inputs, respectively, and these are scaled down and fed to the Rise2 and Fall2 points in the slew limiter. U1B and U1D are for the shape controls. These work by feeding a portion of the output back to the voltage control points Rise1 and Fall1, either directly or inverted. This creates, depending on the setting of the shape potentiometer, either exponentially growing or exponentially decaying outputs. Exponential decay is like the RC charging/discharging curve found in many traditional ADSRs (including mine), while exponential growth gives signals that start off slowly, but then end with a fast spike. The manual settings for rise and fall time are also combined to the Rise1 and Fall1 points.

Other details and modification ideas