Photocell state-variable envelope filter, 1972 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 Musitronics Mu-Tron III.

An envelope filter on ±9 V. The guitar’s peaks light an LED in a sealed module, and its two photocells move a three-op-amp state-variable filter. Gain sets how hard you have to play, Peak how sharp the filter is, and the switches set the mode, the range and which way it sweeps.

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 A1 amplifies the guitar by 0.12 to 36, set by Gain. Its output feeds the filter and the envelope. The filter is A2, A3 and A4 in a loop. A2’s output is high-pass, A3’s band-pass and A4’s low-pass, and Mode selects one. Each photocell sits across a 220 kΩ integrator resistor, so more light means a higher filter frequency. Peak sets how much band-pass returns to A2. At 0 the peak is about 3 times A1’s output, and at full about 34 times. The envelope side rectifies A1’s output into C9. In Up, A6 sets the LED’s current at C9’s voltage over R23, so the filter rests low and rises as you pick. In Down the LED rests bright and dims as you pick. Range Low adds 2200 pF to each integrator and drops the whole sweep to under half. The module’s cells and R23 are assumed.

Download.

Parts and what they do

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

−9 V, -9 V
The second 9 V battery, the −9 V rail. It feeds R18 and the op-amps’ negative supply.
Gain, 1 MΩ pot, reverse audio taper
Gain, 1 MΩ reverse audio, a variable resistor in series with the input. Clockwise there is less resistance and more gain, about 0.12 at 0, 1.2 at the middle and 36 at full. It is also the pedal’s input impedance, 1 MΩ down to 3.3 kΩ.
R1, 3.3 kΩ
Sets the highest gain, 120 kΩ over 3.3 kΩ, 36.
C1, 4.7 µF electrolytic
Input coupling cap.
R4, 120 kΩ
A1’s feedback resistor.
C3, 10 pF
Across R4. It rolls A1 off above about 130 kHz and keeps it stable.
R3, 120 kΩ
Holds A1’s plus input at ground.
C2, 100 nF
Across R3, to keep noise off A1’s plus input.
A1, RC4558
Input amp, half a 4558, inverting. Its output feeds the filter, the envelope side and the footswitch’s bypass contact.
R5, 4.7 kΩ
Brings A1’s output to A2’s plus input.
R9, 12 kΩ
In series with Peak, from A2’s plus input to the band-pass. It sets how broad the filter can get.
Peak, 150 kΩ pot, audio taper
Peak, 150 kΩ audio, a variable resistor. Clockwise there is more resistance, so less band-pass returns to A2 and the peak grows sharper and taller. It is about 3 times A1’s output at 0, 6 at the middle and 34 at full.
A2, RC4558
The filter’s summing amp, half a 4558. Its output is the high-pass, which is twice its plus input minus the low-pass.
R7, 22 kΩ
A2’s feedback resistor.
R8, 22 kΩ
Brings the low-pass back to A2’s minus input, equal to R7.
R10, 220 kΩ
A3’s input resistor. With the cell dark it sets the lowest filter frequency, about 400 Hz on High.
LDR1, Module cell
One cell of the module, across R10. Lit, its resistance drops and the filter frequency rises. Its figures are assumed.
C5, 1.8 nF
A3’s integrating cap.
C4, 2.2 nF
Added to C5 by Range Low.
A3, RC4558
First integrator, half a 4558. Its output is the band-pass.
R12, 220 kΩ
A4’s input resistor, as R10.
LDR2, Module cell
The module’s other cell, across R12, lit by the same LED.
C7, 1.8 nF
A4’s integrating cap.
C6, 2.2 nF
Added to C7 by Range Low.
A4, RC4558
Second integrator, half a 4558. Its output is the low-pass.
C10, 15 µF
Output coupling cap, 15 µF non-polar.
R25, 560 Ω
In series with the output, about 600 Ω out with the op-amp.
C8, 2.2 µF electrolytic
Couples A1’s output to the envelope side.
R14, 22 kΩ
A5’s input resistor. With R16 the rectifier’s gain is 45.
R24, 12 kΩ
Beside R14 in Drive Down, raising the rectifier’s gain to 129.
R15, 1 MΩ
Holds A5’s plus input at ground.
A5, RC4558
The rectifier, half a 4558, inverting. On the guitar’s down swings it charges C9 through D2 to 45 times the swing. On the up swings D1 holds it.
D1, 1N914 / 1N4148
Catches A5’s output on the up swings, so it doesn’t run to the rail.
D2, 1N914 / 1N4148
Passes A5’s output to C9 on the down swings only.
R16, 1 MΩ
A5’s feedback, taken after D2 so the diode’s drop doesn’t count.
R17, 330 Ω
Charges C9. With C9 the attack is about 1.6 ms.
C9, 4.7 µF electrolytic
The envelope cap. R18 drains it toward −9 V, so it falls back to 0 V in about 0.1 s from 5 V.
R18, 47 kΩ
Drains C9 to the −9 V rail. A5 holds the bottom at 0 V.
R19, 180 kΩ
Top of the Down reference divider.
R20, 120 kΩ
Bottom of the divider. With R19 it sets 3.6 V for Drive Down.
A6, RC4558
The LED driver, half a 4558. It holds the LED’s cathode at C9’s voltage in Up, or at 7.2 V minus C9’s voltage in Down, so the LED’s current is that voltage over R23.
R21, 120 kΩ
From C9 to A6’s minus input.
R22, 120 kΩ
From the LED’s cathode to A6’s minus input, equal to R21.
LED, Red LED
The module’s LED. Its light follows its current, which is none at rest in Up and about 2 mA on a hard pick.
R23, 3.3 kΩ
Sets the LED’s current. The factory picked it to suit each module. 3.3 kΩ is assumed.

About this version

Stock
Two 9 V batteries, ±9 V. 4558 op-amps, one red LED lighting two photocells.

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.