MFOS Seven Segment Linear Envelope Generator

Ray Wilson authored this content while he was actively running MFOS as the founder and resident genius.
We retain the content because it reflects a valuable point of view representing that time and place.

Article by Ray Wilson
This is a very advanced project requiring understanding of electronics and electronic building and trouble shooting skills and equipment. Access to a good oscilloscope, DVM, bench power supply, soldering station and hand tools will be required. Only the schematic, circuit description, and suggested panel layout are provided. Please read over the entire project before ordering PC boards or other products. This is a fairly tricky project to troubleshoot. I advise extreme care during construction.

Features

  • Selectable Two to Seven Linear Envelope Segments
  • Positive and Negative Slopes
  • Triggered Mode Supports Sustain Segments
  • Gate Mode 1: Complete Envelope on Gate Release.
  • Gate Mode 2: Reset Envelope on Gate Release.
  • Level and Polarity Output Control
  • Two millisecond to several minutes long segment times.
  • Slope runaway detect and reset.
  • Envelope Repeat
  • Manual Gate
  • LEDs Identify Active Segment

Introduction

I got the bug to make a multi-segment linear envelope generator because the challenge was there. I have not seen another hardware version with more than four linear segments offered anywhere else. However that doesn't mean there isn't one out there somewhere and I know there are software versions with more segments and more control. There are a fair number of PCB to panel connections because there are fifteen knobs, one six position selector switch, ten LEDs, three switches and two jacks. I cooked this down from my initial far more complicated design. There are a fair number of quirks to this module but it will generate multi-segment linear envelopes when adjusted properly. You have to understand what is going on with the unit to get the most out of it. I highly suggest you print the schematic so you can follow along while reading the circuit descriptions if you decide to build this project. Building this project blind will lead to major frustration if you run into trouble shooting issues and don't understand the operation of the circuit.

Full Schematic PDF

Block Diagram

Upon being gated the envelope generator enters slope/threshold one. When segment one has completed by ramping up or down at the slope setting to its associated threshold voltage setting the counter is clocked forward and the unit advances to the next segment. This continues until all segments have executed. You may select from 2 to 7 envelope segments with the Envelope Segments selector switch. Envelope Repeat is included in the design as well as segment sustain.

Schematics

Schematic Page 1

 View as PDF

Page one of the schematic shows the slope and threshold voltage generation as well as the LED drivers and segment count selector switch. The ten volt zener's voltage (zener's vary slightly so the ten volts is nominal) is applied to the common I/O pin of U1 (CD4051 8 channel analog multiplexer). The binary count on the A,B and C inputs of U1 determine which set of two pots (one slope and one threshold) is energized with the Z1's voltage. When a set of pots is active they act as variable voltage dividers. The wiper of either one can be varied from zero volts to the zener's voltage (nominal 10V) by adjusting the slope or threshold pot from CCW to CW. The voltage from each active slope pot's wiper is fed via its corresponding 100K mixing resistor to the inverting input of U2-A (1/4 TL074 Quad Op Amp) pin 2. U2-A applies a gain of about .9 and permits offset to be added via R15 240K and R16 100K trim pot. Set up of the module requires that R16 be adjusted as described in the calibration procedure so that the output of U2-A pin 1 varies from approximately +4.5V to -4.5V as the knob is adjusted from fully CCW to fully CW. The integrator fed by the slope pot ramps high when the voltage fed to it is negative and ramps low when the voltage fed to it is positive. Thus positive slope will correspond to adjusting the slope knob CW and negative slope will correspond to adjusting the slope knob CCW.

The CD4051B CMOS Single 8-Channel Analog Multiplexer/Demultiplexer is a fantastic chip to become familiar with. It can switch any of eight analog signals to one output or one input to any of eight outputs. It is able to switch signals oscillating about ground within a limited voltage range (see the data sheet for the rather involved details). For example when powered by +5V to VDD (pin 14), ground to VSS pin (pin 8), and -5V to VEE (pin 7) the device can switch +/-4.5V signals but still be controlled with ground and 5V logic. It is addressed with 3 binary bits (A,B,C) which select the connected channel. An inhibit control when at logic one disconnects all switches. If you can't find a use for this IC somewhere in your synth I'd be surprised. CD4051 TI Data Sheet

The voltage from each active threshold pot's wiper is fed via its corresponding 100K mixing resistor to the inverting input of U2-B pin 6. U2-B applies a gain of about 1.8 and permits offset to be added via R45 240K and R46 100K trim pot. U2-B inverts the voltage fed from each active threshold pot's wiper and thus we must invert it again via gain of one inverter U2-D so that CW adjustment increases the threshold voltage and CCW adjustment decreases the threshold voltage. Set up of the module requires that R46 be adjusted as described in the calibration procedure so that the output of U2-D pin 14 varies from approximately -8.6V to +8.6V as the knob is adjusted from fully CCW to fully CW.

Additionally, U1 applies Z1's voltage to the resistor driving the base of each of the segment annunciator LED driver transistors (Q1 through Q8). Thus the LED that is lit will correspond to the channel currently controlling slope and threshold voltages. Resistor R12 (3K) delivers current to all of the transistor collectors but only the one that is turned on by U1 will light it's corresponding LED.

I used a dual 6 position selector switch for the segment count selector. I only show one half of the switch for simplicity as the other half is not used. When the channel selected by the switch becomes active the module resets to the "Ready" condition. Note that for two segments we reset when U1 activates I/O 3, for four segments we reset when U1 activates I/O 5, this pattern is followed except that for seven segments we never need to reset the counter driving U1's A,B and C inputs (which is U6 CD40193 by the way).

Some of the circuit points we will see again in circuit descriptions to come include: