LED and photocell envelope filter, late 1970s style

Pedal and tube amp circuits, simulated part by part the way an engineer’s circuit simulator does it, while you listen and watch. Turn the knobs, change any part, or tap a wire to put a probe on it.

Start here

Modeled after the DOD 440 Envelope Filter.

An auto-wah. The guitar’s peaks light an LED inside a light-tight module, and its two photocells set the peak of a Wien bridge filter. Level sets how hard you have to play, Range where the peak rests and how far it moves.

Input

Add

Peak voltage from the pickup for each note. Strum hard and a single coil puts out a few hundred millivolts. When you play a chord, its strings share this level.

How it’s played
Tap a part to change its value, or a wire to probe it. To add or take out parts, open Modify this circuit, below. Red numbers are DC voltages to ground, not warnings. Scroll or drag to see the whole circuit. Pinch to zoom.
Modify this circuit Add parts, take them out, or put one in series with another, then hear what it does. Tap to open.

Pick what to do, then tap the schematic. Your changes show in purple. Any change can go on a switch beside the knobs, from the menu in its row under Your changes.

Add a part

Tap where each leg goes. Tap both ends of a part to put the new one across that part.

Change a part

With Remove a part on, tap any part of the pedal or amp to take it out, and tap it again to put it back. Tapping a purple part you added deletes it.

Turn on Add in series with a leg and tap a part. In that part’s box, below the schematic, pick which leg to lift and what goes in the gap, such as a resistor between a cap and ground or a stopper in front of a grid.

Change a wire

With Cut into a wire on, tap any wire. Pick a part from the menu and it goes in the gap, wired in. Volume pot puts a pot there with the input on one end, the output on the wiper and the other end to ground.

With Run a wire on, tap a leg, then where the wire goes. Drag any piece of a wire you ran, or of an added part’s lead, to square it up or move it.

Keep and share

Your changes stay in this browser, on this device, for your next visit. Nothing is sent to us. Anyone using this browser can see them. They’re lost if you clear your browsing data or use a private window, so save a file to keep a copy. A shared link carries the circuit after the #, a part browsers never send to a server.

Test tone for the graphs
The graphs use a steady tone. Play sounds a plucked string that dies away.

Input

pickup, unloadedat the pedal input

Output

at the amp input

Probe

Spectrum

Frequency response

What the curves mean

The black curve (white in dark mode) is the response to a very quiet signal, from the generator to the probe. The blue curve is measured with pink noise at the level you set, like an audio analyzer. When stages clip, the blue curve pulls away from the black one and the gray coherence line (right-hand scale) drops below 1. When that happens the response depends on how loud the signal is, and neither curve describes it by itself. Both use the signal generator, whichever Input tab is picked.

Output

Bias

every voltage and current at rest

What to listen for Two paths leave R1. One is the filter. U1B is an inverting stage with a Wien bridge, a resistor-and-capacitor network tuned to one frequency, in its positive feedback. Away from that frequency the response is flat, about 2.5 dB under the input level. At it there is a peak about 10 to 14 dB tall. The peak’s frequency is 1 / (2π R C), where R is one half of the cell in parallel with its 220 kΩ and C is 20 nF. The other path is the envelope. U1A’s gain runs from 5 at Level 0 to about 45 at full. C7, D1 and D2 double its peaks into C8, and C8 drives the LED through R12. Range feeds the LED a resting current, from none at 0 to about 0.06 mA at full, so the peak rests between about 40 Hz and 260 Hz. A hard pick with Level at full charges C8 to about 4.7 V, which puts about 0.17 mA in the LED, and the peak rises to near 500 Hz. As C8 drains the peak falls back over about half a second. The cell’s figures are typical of a VTL5C module, assumed, so the real sweep may differ. The footswitch selects the filter or the input jack.

Download.

Parts and what they do

Stock values. Tap a part on the schematic to change it.

R4, 22 kΩ
Top of the Vbias divider, from the battery.
R5, 22 kΩ
Bottom of the Vbias divider. With R4 it sets Vbias at 4.5 V.
C2, 10 µF electrolytic
Filters Vbias, so the filter’s cell and R3 return to a quiet point.
C1, 10 nF
Input coupling cap.
R1, 10 kΩ
In series with the input. Both op-amps are fed from its far end.
R2, 100 kΩ
From the input to the filter input. With R3 it halves the guitar into the filter.
R3, 100 kΩ
Holds the filter input at Vbias.
R6, 220 kΩ
Into U1B’s minus input from the filter input.
R7, 430 kΩ
U1B’s feedback. Away from the peak the gain from the input jack is about minus 2.5 dB.
U1B, TL022
Half of the TL022, the filter. Its plus input is the cell’s tap, fed back from the output through the Wien bridge.
LDR1, VTL5C-type cell
Half of the photocell, from the tap to Vbias. With R8 and C3 it is the Wien bridge’s parallel arm. Lit, its resistance drops and the peak rises. The cell’s figures are typical of a VTL5C module and assumed.
R8, 220 kΩ
Across LDR1. It limits how high the arm’s resistance can go, so the peak never rests below about 36 Hz. Drawn as one of a pair under one 220k label.
C3, 20 nF
The Wien bridge’s parallel cap.
LDR2, VTL5C-type cell
The other half of the photocell, lit by the same LED. With R9 and C4 it is the Wien bridge’s series arm.
R9, 220 kΩ
Across LDR2, as R8 is across LDR1.
C4, 20 nF
The Wien bridge’s series cap, from the output.
C5, 50 nF
Output coupling cap, to the footswitch.
U1A, TL022
The other half of the TL022, the envelope amp. Its gain is 1 plus 470 kΩ over R11 and Level.
R10, 470 kΩ
U1A’s feedback resistor.
R11, 10 kΩ
Sets U1A’s highest gain, about 45 with Level at full.
C6, 100 nF
Blocks DC from the gain leg, so U1A sits at Vbias.
Level, 100 kΩ pot, reverse audio taper
Level, 100 kΩ reverse audio, a variable resistor in U1A’s gain leg. Clockwise there is less resistance and more gain, so softer playing moves the filter. At 0 the gain is about 5, at full about 45.
C7, 4.7 µF electrolytic
Couples U1A to the rectifier.
D1, 1N914 / 1N4148
Clamps C7’s far side near ground on the down swings, so D2 sees the whole swing.
D2, 1N914 / 1N4148
Charges C8 on the peaks.
C8, 1 µF electrolytic
The envelope cap. It charges fast through D2 and drains through R12 into the LED and the Range network.
R12, 22 kΩ
Carries C8’s voltage into the LED. The LED drops about 1.6 V, so its current is C8’s voltage minus 1.6 V, over 22 kΩ.
LED, Red LED
The module’s LED. Its light follows its current. It runs from about 0.03 mA at rest to about 0.2 mA on a hard pick.
R13, 100 kΩ
From 9 V to the top of Range.
Range, 100 kΩ pot, linear taper
Range, 100 kΩ, its wiper on the LED. Clockwise it feeds the LED a resting current, about 0.06 mA at full, so the peak rests higher. Counterclockwise it pulls the LED’s node toward 0.9 V and diverts part of the envelope’s current. Taper and direction assumed.
R14, 22 kΩ
From the bottom of Range to ground.

About this version

Stock
Negative ground, 9 V. TL022 op-amps, a red LED lighting two VTL5C-type cell halves.

How this tool works. Every part is described by an equation, and the whole circuit is solved several times for each audio sample: 192,000 samples a second while you drag a knob, and 384,000 once you let go. Transistors use the standard Ebers-Moll model, with gain, leakage, base resistance, junction capacitance, temperature and the small rise in current with collector voltage (the Early effect). The charge a transistor stores is worked out at its idle point. That is accurate for small signals and rough while the transistor switches hard. Tubes use Koren’s equations, matched to each type’s datasheet, plus grid current. Diodes use the standard diode equation with series resistance. Presets are typical of each type. Caps are ideal, and the battery or HT is a voltage behind a resistance.

Spot an error, or want a circuit added? Email info@swellamps.com. A schematic or a clear photo of one helps. Anything you send may be used to improve these models and our desktop app.

From Swell Amplification, swellamps.com.