Op-amp distortion, 1978 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 ProCo RAT.

One slow op-amp with huge gain, diodes to ground after it, a one-knob low-pass filter, and a JFET output buffer. At high gain the op-amp can’t keep up, and that’s a big part of the sound.

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 At high distortion settings the op-amp can’t keep up. Its output moves only 0.3 V per microsecond, so fast edges turn into ramps before the diodes see them. Probe the op-amp output and turn the distortion up, then tap U1 on the drawing and change the compensation cap. A bigger cap slows it more and softens the clip, and a smaller one sharpens it. The two ground legs on the minus input cut the gain below about 1.5 kHz, so the lows clip least.

Download.

Parts and what they do

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

R10, 47 Ω
Supply resistor. With C11 and C12 it filters the 9 V line.
C11, 100 µF electrolytic
Supply filter cap.
C12, 100 nF
Supply bypass cap.
R11, 100 kΩ
Top of the 4.5 V divider.
R12, 100 kΩ
Bottom of the 4.5 V divider.
C13, 1 µF electrolytic
Filters the 4.5 V reference.
R1, 1 MΩ
Input pulldown.
C1, 22 nF
Input coupling cap. Against R2 it sets a corner near 7 Hz.
R2, 1 MΩ
Biases the op-amp input and sets the input impedance, about 500 kΩ with R1.
R3, 1 kΩ
With C2 it makes a filter against radio pickup.
C2, 1 nF
RF filter cap.
U1, LM308
The gain stage, a non-inverting amp with up to about 67 dB of gain. The 30 pF compensation cap, C3 on the board, is in this op-amp’s settings. It sets the slew rate, which is how fast the output can move, and the bandwidth.
Distortion, 100 kΩ pot, audio taper
Wired as a variable feedback resistor. More resistance means more gain.
C4, 100 pF
Across the distortion pot. It limits the top end at high gain.
R4, 47 Ω
First ground leg. With C5 its corner is near 1.5 kHz, and it sets the maximum gain.
C5, 2.2 µF electrolytic
First ground leg cap.
R5, 560 Ω
Second ground leg. With C6 its corner is near 60 Hz.
C6, 4.7 µF electrolytic
Second ground leg cap.
C7, 4.7 µF electrolytic
Output coupling cap.
R6, 1 kΩ
Current-limiting resistor for the diodes. The diodes hold their side near their turn-on voltage, and the rest of the op-amp’s swing drops across this 1 kΩ.
D1, D2, 1N914 / 1N4148, one each way
Clipping diodes to ground. They clip the signal outright, unlike the 1979 overdrive’s diodes in the feedback. LEDs here are the common mod for a louder, more open sound.
R7, 1.5 kΩ
Sets the darkest the filter can go.
Filter, 100 kΩ pot, audio taper
A variable resistor in series with R7 into C8. Turning it up adds resistance and lowers the corner, from about 32 kHz at zero to about 475 Hz at full.
C8, 3.3 nF
Filter cap. The output buffer is fed from this point, so R7, the pot and C8 make a simple low-pass, 6 dB per octave, after the clipping diodes.
C9, 22 nF
Coupling cap into the JFET buffer.
R8, 1 MΩ
Biases the JFET gate at 4.5 V.
Q1, 2N5458
Output buffer, a JFET source follower.
R9, 10 kΩ
Source resistor.
C10, 1 µF electrolytic
Output coupling cap.
Volume, 100 kΩ pot, audio taper
Output level.

Versions

Silicon
Negative ground. The 4.5 V reference biases the op-amp and the JFET buffer.
OP07, later units, modeled after the ProCo RAT2
The OP07 that replaced the LM308 once it went out of production, by 1996. It’s internally compensated, so the 30 pF cap does nothing. About the same slew rate, 0.3 V/µs, with 0.6 MHz of bandwidth. The RAT2’s status LED and its parts aren’t drawn.
Red LEDs, 1989, modeled after the ProCo Turbo RAT
The same circuit with red LEDs to ground instead of 1N914s. They clip near 1.7 V instead of 0.6 V, so the output is about 9 dB louder and the op-amp’s slewing is a bigger share of the sound. Early Turbo RATs used the LM308, like this build.

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.