Flip-flop octave down with an OTA gate, 1982 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 Korg OCT-1 Octave.

A low-pass filter and two comparators turn the note into clean edges. A 4013 divides them by two, and that square switches an OTA on and off on the dry note, so the note comes through on every other cycle.

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 OC-2 switches the note’s polarity with the divided square. The OCT-1 turns an OTA on and off with it instead, so the octave below comes with the note itself mixed in. IC6b’s low-pass, near 690 Hz with some peaking, keeps the upper harmonics out of the trigger. One comparator sets the first flip-flop as the wave goes positive. The other resets it once the wave falls from its peak. The second flip-flop divides by two. Its square sets IC2’s bias current, about 65 µA when high and 3 µA when low. Polarity inverts the trigger stage’s input, so the edges come from the wave’s lowest points. Effect and Direct set the two levels into IC5. The model leaves out the footswitch.

Download.

Parts and what they do

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

R15, 10 kΩ
Top of the 4.5 V reference divider.
R16, 10 kΩ
Bottom of the reference divider.
C6, 100 µF electrolytic
Filters the 4.5 V reference.
R20, 10 kΩ
Input series resistor.
C8, 22 nF
Input coupling cap.
R23, 1 MΩ
Biases the input buffer at 4.5 V and sets the input impedance near 1 MΩ.
IC4a, JRC4558D
Input buffer, a follower.
C9, 10 µF electrolytic
Couples the buffered input to the OTA and the Direct pot.
R27, 100 kΩ
Holds IC4b’s plus input at 4.5 V when Polarity is in B.
R25, 91 kΩ
Into IC4b’s minus input. In B the buffered note comes in here, for a gain of minus 470 k over 91 k.
R26, 22 kΩ
In A it adds to R25, so the gain is 1 plus 470 k over 113 k, the same 5.2.
IC4b, JRC4558D
The Polarity stage, a gain of about 5.2 either way round.
R24, 470 kΩ
Feedback resistor of the Polarity stage.
R28, 22 kΩ
With C18, a treble cut from about 720 Hz.
C18, 10 nF
The first low-pass cap.
R39, 330 kΩ
First resistor of the Sallen-Key low-pass.
C14, 2.2 nF
From the filter’s middle to IC6b’s output. Against C15 it sets the peaking.
R38, 330 kΩ
Second resistor of the Sallen-Key low-pass. With C14 and C15 the corner is near 690 Hz.
C15, 220 pF
The Sallen-Key’s cap to ground.
IC6b, TL062 (low power)
The Sallen-Key’s follower.
R34, 3.3 kΩ
With C12, a treble cut from about 15 kHz.
C12, 3.3 nF
Trims the top end before the comparators.
C11, 22 nF
Couples the filtered note to the trigger node.
R33, 1 MΩ
Holds the trigger node near the 4.5 V reference.
R43, 22 MΩ
Lifts the trigger node about 0.2 V over the reference, so the comparators sit still with no note.
IC3b, TL062 (low power)
Comparator. Its output goes high while the trigger node is over 4.5 V.
R14, 47 kΩ
Into the first flip-flop’s set input.
R35, 220 kΩ
Feeds the trigger node to the peak detector.
R36, 1 MΩ
With C13, a small treble trim at the peak detector’s input.
C13, 1.5 nF
In series with R36 to ground.
IC6a, TL062 (low power)
Peak detector. With D5 inside its feedback it charges C7 to the wave’s peaks.
D5, 1N914 / 1N4148
The peak detector’s diode, a 1S1555 on the drawing.
R19, 1 kΩ
Charges C7. The held peak lags the wave by about 47 µs.
C7, 47 nF
Holds the peak.
R18, 1 MΩ
Lets the held peak fall back, over about 50 ms.
IC3a, TL062 (low power)
Comparator. Its output goes high once the wave falls under the held peak.
R17, 47 kΩ
Into the first flip-flop’s reset input.
IC1a, CD4013B
Half a 4013, used only by its set and reset inputs. Its Q bar goes low while the wave rises to its peak and high after, one clean edge a cycle.
IC1b, CD4013B
The other half, its D input on its Q bar, so each edge flips it. Its output is a square an octave below the note.
D3, 1N914 / 1N4148
Passes the square’s high half to the bias network, a 1S1555 on the drawing.
R3, 47 kΩ
With R4, holds the bias network near 1.6 V while the square is low.
R4, 10 kΩ
Bottom of the bias network’s divider.
R8, 10 kΩ
With C4, it rounds the square’s edges.
C4, 22 nF
Rounds the edges, so the gate opens and closes over about 0.2 ms with less click.
R13, 100 kΩ
Sets IC2’s bias current, about 65 µA with the square high.
R12, 5.1 kΩ
With R7, it cuts the note to about a twelfth, small enough for the OTA’s input.
R7, 470 Ω
Bottom of the OTA’s input divider.
R6, 470 Ω
Holds the OTA’s minus input at the reference, matching R7.
VR1, 100 kΩ pot, linear taper
A 100 kΩ trimmer inside the pedal. Through R11 it nudges the OTA’s minus input to null the square’s thump. Its setting isn’t on the drawing, so it’s set at the middle.
R11, 470 kΩ
From VR1 to the OTA’s minus input.
IC2, LM13700 (one half)
Half an NJM13600. Its output is a current, the voltage across its inputs times a gain that follows the bias current, so the square turns it on and off.
R9, 47 kΩ
The OTA’s load. Its current through R9 is the gated note.
C2, 3.3 nF
Trims the treble at the OTA’s output, from about 1 kHz.
IC2 buffer, 2N5088
The NJM13600’s Darlington buffer, first half.
IC2 buffer, 2N5088
The buffer’s second half.
R2, 10 kΩ
The buffer’s emitter load.
C3, 1 µF electrolytic
Couples the buffer to the Effect Level pot.
R5, 27 kΩ
With C5, a treble cut from about 270 Hz on the octave.
C5, 22 nF
Rounds the gated note before the Effect pot.
Effect, 100 kΩ pot, linear taper
Effect Level, 100 kΩ linear.
Direct, 100 kΩ pot, linear taper
Direct Level, 100 kΩ linear, the buffered note straight to the mixer.
R31, 220 kΩ
Mixing resistor from Effect. With R30 the gain is 1.
R32, 100 kΩ
Mixing resistor from Direct. With R30 the gain is 2.2.
IC5a, JRC4558D
The mixer, inverting.
R30, 220 kΩ
The mixer’s feedback resistor.
R29, 100 kΩ
Input resistor of the output inverter.
IC5b, JRC4558D
Inverter with a gain of 1, so the mix comes out right way up.
R41, 100 kΩ
Feedback resistor of the inverter.
C17, 1 µF electrolytic
Output coupling cap.
R42, 100 kΩ
Holds the output side of C17 at ground.
R40, 470 Ω
Output series resistor.
R44, 47 kΩ
Output pulldown at the jack.

About this version

OCT-1
Values from the factory drawing. The NJM13600 is the LM13700 model with two 2N5088s for its buffer.

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.