JFET state-variable envelope filter, 1977 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 Electro-Harmonix Zipper.

An auto-wah. JFETs used as resistors tune a state-variable filter, and the guitar’s peaks set their gate voltage through a control loop. Range sets how far a note moves the peak and Q how sharp it is. Two switches pick the attack and band-pass or low-pass.

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 The guitar goes through A1 first, a buffer that lifts the treble near 7 kHz. The filter is a state-variable type built from three op-amps. B1 subtracts the low-pass from the input. Two integrators follow it, A2 with the band-pass at its output and B2 with the low-pass. Each integrator is fed through a JFET used as a resistor, so Q1 and Q2 set the filter’s frequency. R9 and R10 cut the signal to about a twentieth ahead of each JFET, so the JFET stays close to a plain resistor. The envelope side starts at Range. C4 is a rectifier with a gain of 150, so on almost any note its output swings down hard on each upward half. It pulls C18 under Vbias. Once C18 is about 1.2 V under Vbias, current flows out of C1’s minus input through D4, D5 and R27. C1 sets Q3’s gate so Q3 carries that current, and Q1 and Q2 get the same gate voltage. More current means a less negative gate, less resistance and a higher peak. At rest the peak sits near 100 Hz. With Attack at 1, C18 charges through R22, so a steady A4 at 200 mV moves the peak up near 1.1 kHz over about half a second. It falls back over several seconds. At 2 a hard pick moves it near 1.9 kHz within about 50 ms, and it falls back in about half a second. R20 and C10 roll the top back down at the output. The JFETs are typical 2N5457s and the trim is set at mid-travel. Both are assumptions, so a real unit’s sweep may sit higher or lower.

Download.

Parts and what they do

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

R29, 47 kΩ
Top of the reference divider, from the battery.
R30, 47 kΩ
Bottom of the reference divider. With R29 it makes 4.5 V.
C13, 10 µF electrolytic
Filters the divider.
C3, LM324
One LM324 section as a follower. Its output is Vbias, 4.5 V, the point every signal part returns to. The original schematic calls it C3.
C14, 100 µF electrolytic
Holds Vbias steady.
C1, 47 nF
Input coupling cap. With R1 it rolls off below about 80 Hz.
R1, 43 kΩ
Holds A1’s plus input at Vbias. It is most of the input impedance.
A1, JRC4558D
Half of a 4558, the input buffer. Its gain is 1 except near 7 kHz, where the bridged T beside R2 lifts the treble before the filter.
R2, 4.7 kΩ
A1’s feedback resistor.
C2, 22 nF
One cap of the bridged T in A1’s feedback.
C3, 22 nF
The other cap of the bridged T.
R3, 220 Ω
The bridged T’s leg to Vbias. With C2, C3 and R2 it sets the lift near 7 kHz.
R4, 4.7 kΩ
Feeds the guitar into B1’s plus input. With R5 it halves it.
R5, 4.7 kΩ
From B1’s plus input to Vbias.
R8, 10 kΩ
Carries the band-pass from the Q pot back into B1’s plus input. This feedback sets how sharp the peak is.
Q, 100 kΩ pot, linear taper
Q, 100 kΩ, the band-pass output at its counterclockwise end. Counterclockwise more band-pass goes back to B1, so the peak is lower and wider. Clockwise the peak is taller and narrower. Taper assumed.
C16, 1 µF electrolytic
Ties the Q pot’s far end to Vbias for the signal only.
B1, JRC4558D
Half of a 4558, the filter’s summing stage. It subtracts the low-pass from the input, and its output is the high-pass.
R6, 4.7 kΩ
B1’s feedback resistor.
R7, 4.7 kΩ
Brings the low-pass back to B1’s minus input. This closes the filter’s loop.
R9, 470 Ω
With R10 it cuts the high-pass to about a twentieth, so Q1 sees only a few tens of millivolts and acts as a clean resistor.
R10, 22 Ω
Bottom of the divider ahead of Q1.
Q1, 2N5457
A JFET used as a variable resistor. The less negative its gate, the lower its resistance and the higher the filter tunes. The original schematic doesn’t name the type. A 2N5457 is assumed.
Rx, 160 kΩ
Across Q1. It sets the most resistance the path can have, so the filter’s lowest note.
R12, 22 MΩ
Carries the control voltage to Q1’s gate.
C4, 5 µF electrolytic
Blocks DC between Q1 and A2, so no DC flows through Q1.
A2, JRC4558D
The other half of A1’s 4558, the first integrator. Its output is the band-pass.
R14, 2.7 kΩ
In series with C5. It keeps the peak from growing without limit as Q is turned up.
C5, 2.2 nF
The first integrator cap. With C7 and the JFETs it sets the filter’s frequency.
R13, 4.7 MΩ
A DC path around A2, so its output stays at Vbias.
R16, 470 Ω
With R17 it cuts the band-pass to about a twentieth ahead of Q2.
R17, 22 Ω
Bottom of the divider ahead of Q2.
Q2, 2N5457
The second JFET resistor, matched to Q1. Its gate gets the same control voltage.
R34, 160 kΩ
Across Q2, as Rx is across Q1.
R11, 22 MΩ
Carries the control voltage to Q2’s gate.
C6, 5 µF electrolytic
Blocks DC between Q2 and B2.
B2, JRC4558D
The other half of B1’s 4558, the second integrator. Its output is the low-pass.
C7, 4.7 nF
The second integrator cap.
R18, 4.7 MΩ
A DC path around B2.
C8, 4.7 µF electrolytic
Couples the band-pass to the slide switch.
C9, 4.7 µF electrolytic
Couples the low-pass to the slide switch.
R19, 43 kΩ
Keeps the unused output cap charged, so the slide switch doesn’t pop.
R20, 3.3 kΩ
With C10 it rolls off the treble above about 2.2 kHz, undoing A1’s lift.
R21, 47 kΩ
Holds the output at 0 V DC.
C10, 22 nF
The treble roll-off cap at the output.
C17, 2.2 µF
Feeds A1’s output to the Range pot. A nonpolar cap on the original schematic.
Range, 10 kΩ pot, linear taper
Range, 10 kΩ. It sets how much of the guitar reaches the rectifier, so how far the filter sweeps on a pick. Taper assumed.
R35, 2.2 kΩ
Under the Range pot, so its lowest setting still sends a little signal.
C11, 3.3 nF
Shorted by the Attack switch in position 1. In position 2 it passes mostly treble to the rectifier, so the envelope rises less on low notes.
R36, 10 kΩ
The rectifier’s input resistor.
C12, 2.2 µF
Blocks DC into the rectifier. A nonpolar cap on the original schematic.
C4, LM324
An LM324 section, the rectifier. On each upward half of the guitar its output swings hard down, near 0 V. On the other half D1 holds it near Vbias. The original schematic calls it C4.
R37, 1.5 MΩ
With D2 it sets the rectifier’s gain to 150 on the upward halves, so the output slams down on almost any note.
D2, 1N914 / 1N4148
Lets R37’s feedback work only while the output is low.
D1, 1N914 / 1N4148
Clamps the rectifier’s output about 0.6 V over Vbias on the other half.
D3, 1N914 / 1N4148
Lets the rectifier pull C18 down, never up.
R22, 33 kΩ
Sets the attack in position 1. C18 charges through it.
R33, 100 Ω
In series with the fast-attack diodes.
D7, 1N914 / 1N4148
One of three diodes in the fast-attack path. In position 2 C18 charges through them and R33 once the rectifier is about 2 V under it.
D8, 1N914 / 1N4148
The second fast-attack diode.
D9, 1N914 / 1N4148
The third fast-attack diode.
C18, 4.7 µF electrolytic
The envelope cap. It charges below Vbias as you play and drains back through D4, D5 and R26 and R27.
D4, 1N914 / 1N4148
With D5 it keeps small envelopes from moving the filter. C18 has to fall about 1.2 V under Vbias before current flows.
D5, 1N914 / 1N4148
The second of the two threshold diodes.
R26, 43 kΩ
Part of C18’s drain path, to Vbias.
R27, 27 kΩ
Turns the envelope into a current pulled out of C1’s minus input. More current tunes the filter higher.
R23, 10 kΩ
From the battery’s minus to R24. With R24 it makes about 1.1 V under Vbias.
R24, 3.3 kΩ
From R23 to Vbias.
R25, 1.5 MΩ
Pulls a steady 0.75 µA out of C1’s minus input, so the filter has a resting frequency with no envelope.
C1, LM324
An LM324 section that drives the three JFET gates. It sets Q3’s gate so that Q3 and R28 carry exactly the current R25 and R27 pull out of its minus input. Q1 and Q2 get the same gate voltage. The original schematic calls it C1.
R28, 160 kΩ
Across Q3, as Rx and R34 are across Q1 and Q2.
Q3, 2N5457
The control JFET, matched to Q1 and Q2. It runs with the trim voltage across it, and its gate sets its current. Q1 and Q2 copy its resistance.
R31, 1 MΩ
From the battery to the trim.
R32, 25 kΩ pot, linear taper
The internal trim, 25 kΩ, wired as a variable resistor to Vbias. It sets the trim voltage between 0 and about 0.11 V over Vbias, and with it the whole sweep. Set at mid-travel, an assumption.
C2, LM324
An LM324 section as a follower. It holds the far end of Q3 and R28 at the trim voltage. The original schematic calls it C2.

About this version

Stock
Negative ground, 9 V, a 4.5 V reference for the signal. 4558 and LM324 op-amps, three 2N5457-type JFETs.

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.