OTA state-variable envelope filter, early 1980s 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 545 Wah/Filter.

An auto-wah on two CA3094 OTAs. The guitar’s level, rectified, sets both OTAs’ bias current, and that tunes a two-integrator filter. Sensitivity sets how hard you have to play, Attack how fast the peak follows, Peak how tall it is.

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 Each CA3094 is an OTA, an amplifier whose output current is set by a bias current, with a follower inside. Each OTA charges a 10 nF cap, so it integrates, and the two in a loop make a filter. Its peak moves up as the bias current rises. With the knobs at their default settings the response is flat up to a peak near 470 Hz, about 8 dB tall, and falls above it. U1B amplifies the guitar up to about 100 times, set by Sensitivity. C8 and R20 cut its input below about 1 kHz, so it follows mostly the pick’s attack. C9, D1 and D2 rectify its output into node P, which rests at about 1.6 V. Through Attack, C10 smooths it, and Q1 drives the OTAs’ bias pins through R14 and R15. With 1.5 V on Q1’s emitter the peak is near 1 kHz, with 4 V near 3.6 kHz. A 200 mV pick at A2 with Sensitivity at full moves the peak to about 1.5 kHz. The drawing has no part numbers, and its pot tapers and directions are assumed. The bypass switching, the LED and the supply’s slow-start circuit are left out.

Download.

Parts and what they do

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

RB1, 22 kΩ
Top of the Vbias divider.
RB2, 22 kΩ
Bottom of the Vbias divider. With RB1 it sets Vbias at 9 V.
CB, 10 µF electrolytic
Filters Vbias.
C1, 10 nF
Input coupling cap.
R1, 10 kΩ
In series with the buffer’s input.
R2, 470 kΩ
Holds the buffer’s input at Vbias. Most of the pedal’s input impedance.
U1A, TL062 (low power)
Half of the TL062, a follower that buffers the guitar.
R3, 10 kΩ
From the buffer into OTA 1’s plus input. With R4 it divides the guitar down about 11 times, since an OTA’s input handles only tens of millivolts cleanly.
R4, 1 kΩ
From OTA 1’s plus input to N0.
R5, 1 kΩ
From OTA 1’s minus input to N0.
U2, CA3094
The first CA3094’s OTA. Its output current, set by the bias current from the envelope, charges C2, so it integrates.
C2, 10 nF
The first integrator’s cap.
QA1, 2N3904
The first CA3094’s Darlington follower, first half. It buffers C2.
QA2, 2N3904
The Darlington’s second half. Its emitter is the band-pass output.
R7, 22 kΩ
The first follower’s emitter load.
R8, 22 kΩ
Feeds part of the band-pass output back into OTA 1’s minus input, through Peak.
Peak, 100 kΩ pot, linear taper
Peak, 100 kΩ, a variable resistor in series with R8. More resistance feeds back less of the band-pass output, so the peak is taller and narrower. Taper and direction assumed.
R9, 22 kΩ
Feeds the low-pass output back into OTA 1’s minus input. This closes the filter’s loop.
R10, 22 kΩ
From the band-pass output into OTA 2’s plus input. With R11 it divides it down about 23 times.
R11, 1 kΩ
From OTA 2’s plus input to N0.
R12, 1 kΩ
From OTA 2’s minus input to N0.
U3, CA3094
The second CA3094’s OTA, the second integrator.
C3, 10 nF
The second integrator’s cap.
QB1, 2N3904
The second CA3094’s Darlington follower, first half.
QB2, 2N3904
The Darlington’s second half. Its emitter is the low-pass output.
R13, 22 kΩ
The second follower’s emitter load.
R6, 5 kΩ
From the band-pass output toward the output jack.
C5, 1 µF electrolytic
Output coupling cap.
R16, 1 kΩ
In series with the output.
C6, 100 nF
Second output cap.
R17, 100 kΩ
Holds the output at 0 V DC.
C8, 1 nF
Couples the buffer into the envelope amp. With R20 it cuts below about 1 kHz, so the envelope follows the pick’s attack more than the note’s body.
R20, 150 kΩ
Holds the envelope amp’s plus input at Vbias.
U1B, TL062 (low power)
The other TL062 half, the envelope amp. Its gain is 1 plus 1 MΩ over R18 and Sensitivity.
R19, 1 MΩ
The envelope amp’s feedback resistor.
R18, 10 kΩ
Sets the envelope amp’s highest gain, about 100.
C7, 100 nF
Blocks DC from the gain leg.
Sensitivity, 500 kΩ pot, linear taper
Sensitivity, 500 kΩ, a variable resistor in the envelope amp’s gain leg. Clockwise there is less resistance and more gain. The drawing marks its taper D. Linear and the direction are assumed.
C9, 4.7 µF electrolytic
Couples the envelope amp to the rectifier.
D1, 1N914 / 1N4148
Clamps C9’s far side near ground on the down swings.
D2, 1N914 / 1N4148
Passes the up swings into node P.
R21, 22 kΩ
From node P to ground. With R22 it holds P at about 1.6 V between picks.
R22, 220 kΩ
From 18 V to node P. It sets the resting bias current, so where the peak rests.
Attack, 100 kΩ pot, linear taper
Attack, 100 kΩ, a variable resistor from node P to C10. With C10 it sets how fast the peak follows a pick. Clockwise, less resistance and a faster attack. Taper and direction assumed.
C10, 4.7 µF electrolytic
Smooths the envelope at Q1’s base.
Q1, 2N4124
2N4124, a follower that feeds both OTAs’ bias pins.
R14, 10 kΩ
Sets OTA 1’s bias current from the envelope.
R15, 10 kΩ
Sets OTA 2’s bias current from the envelope.
C4, 1 nF
On OTA 2’s bias pin.

About this version

Stock
Negative ground, 18 V. Two CA3094s and a TL062. Each CA3094’s Darlington is drawn as two transistors.

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.