SynthMaker Manual Help Watch Open SynthMaker (opens in a new tab)
Circuits

Circuits in the effects

A circuit written under effects plays there: once for the whole sound, on the mix, stereo, as a Delay or a Reverb does. So a board can do a board's job: a bucket-brigade chorus that sweeps both sides at once, an echo whose repeats ring on after the notes stop, a gate on a reverb that opens each time the snare hits.

Pro: anyone can open any module and read its code, parts list or patch. Writing your own, or changing one, needs SynthMaker Pro. Turning its knobs is free.

Chorus80's schematic: the input filter (a third-order Sallen-Key and an RLC section), two bucket-brigade delays B1 and B2 side by side, each into its own output filter, then the dry and wet summed through the mix pots into out and right.
Chorus80, a stereo chorus in the style of an early-80s polysynth's (by SM Research): one input filter, two bucket-brigade delays, and a left and a right way out.

1Writing one

Write the circuit's module under effects, with the effects, and its circuit … end block after the sound as always. The same block can be used in the voices too: each use is the section it's written in.

Each example here copies whole: the effects section and the circuit's block after it. Paste it in place of a sound's effects section, or at the end of a sound that has none.

  • Its ways in and out are an effect's: left and right. So voices -> chorus -> master is stereo all the way.
  • Out: out is the left side. A named output called right (out right in the parts list) is the right side. A circuit without one plays out on both sides: a mono board.
  • In: in takes the two sides added and halved, so a sound in the middle reaches it at its own level.
  • Its settings are knobs, as in the voices; its named inputs and named outputs are ways in and out after left and right.
Chorus80 · in the effects, with its parts listListen ↗: Warm Pad with Chorus80 (opens in a new tab)
effects
lfo    = GlobalLFO(shape: Triangle, rate: 0.513 Hz, depth: 1)
chorus = Chorus80(clockL: 42.9kHz, clockR: 42.9kHz, mix: 100%)

voices -> chorus -> master
lfo -> chorus.clockL, chorus.clockR

circuit Chorus80
  oversample 4x
  setting input: 5 V
  setting output: 5 V
  setting clockL: 42.9kHz, from 23.9kHz to 77.1kHz
  setting clockR: 42.9kHz, from 77.1kHz to 23.9kHz
  setting mix: 100%
  # the input filter: a third-order Sallen-Key (with its DC loss as a divider), then a second-order RLC (a coil: a circuit
  # holds 12 capacitors, the board needs 15 poles; the coils carry three)
  R1 in a1 10.3804k
  R2 a1 gnd 272.914k
  C1 a1 gnd 2.4487n
  R3 a1 a2 10k
  C2 a2 x1 2.6362n
  R4 a2 a3 10k
  C3 a3 gnd 0.8971n
  U1 a3 x1 x1 opamp
  R5 x1 a4 1.24488k
  L1 a4 a5 23.6741mH
  C4 a5 gnd 10n
  U2 a5 x2 x2 opamp
  # the two BBDs
  B1 x2 yl 256 clock clockL gain 2.3dB
  B2 x2 yr 256 clock clockR gain 2.3dB
  # the left output filter
  R7 yl l1 11.0109k
  R8 l1 gnd 108.926k
  C6 l1 gnd 1.2608n
  R9 l1 l2 10k
  C7 l2 lx 1.6588n
  R10 l2 l3 10k
  C8 l3 gnd 0.8727n
  U3 l3 lx lx opamp
  R11 lx l4 1.23524k
  L2 l4 l5 23.5051mH
  C9 l5 gnd 10n
  U4 l5 lw lw opamp
  # the right output filter
  R13 yr r1 11.0109k
  R14 r1 gnd 108.926k
  C11 r1 gnd 1.2608n
  R15 r1 r2 10k
  C12 r2 rx 1.6588n
  R16 r2 r3 10k
  C13 r3 gnd 0.8727n
  U5 r3 rx rx opamp
  R17 rx r4 1.23524k
  L3 r4 r5 23.5051mH
  C14 r5 gnd 10n
  U6 r5 rw rw opamp
  # dry and wet: the wet through the mix pot, then 39k; the dry through 47k
  P1 lw lm gnd 1k mix
  P2 rw rm gnd 1k mix
  R19 lm out 39k
  R20 in out 47k
  R21 rm right 39k
  R22 in right 47k
  out right
end

2One LFO into its settings

A wire into a circuit's setting turns its knob from where it's set: +1 takes it half its travel one way, −1 half the other. In the effects the wire comes from a Global LFO, one for the whole sound.

Chorus80 has a clock for each delay, clockL and clockR, and one LFO turns both. clockR's range is written from the bigger value to the smaller, so the same wire turns it the other way: as the left delay gets longer, the right one gets shorter, and the chorus moves across the stereo field.

Gate80's schematic: along the top, in through a 100k and 220 ohm divider into the OTA A1, its current into RL and the follower U4 to out; below, from the right, key into the peak detector U1 and D1 holding C1, the comparator U2 against the threshold pot P1, the hold capacitor C2 and its comparator U5, then C3 with its release resistor, buffered by U3 into the OTA's bias pin.
Gate80, a keyed noise gate: the key's envelope, a threshold, a hold and an OTA VCA.

3A key: the gated reverb

A circuit's named input (in key) is a voltage a wire drives, 1.0 on the wire is 5 V. In the effects, that wire can come from the sound's own voices, so a gate after a reverb can listen to the dry sound before the reverb.

  • The dry sound. voices -> master plays the snare itself, and the room comes in after it, gated.
  • The key's envelope. U1 and D1 follow the key's peaks onto C1.
  • The threshold. The comparator U2 opens the gate while the key's peak is over threshold, a share of full scale: 5% is a key peaking at 0.05.
  • The hold. While the key is over the threshold C2 stays charged; after it falls under, C2 lets down through hold and the gate stays open until it passes 1.6 V: about 1 µF × hold (240k: 240 ms), however loud the hit was.
  • The VCA. C3 sets the OTA's bias. Open, the sound comes through at its own level; then C3 lets down through release and the gate shuts in about 20 ms, with no click.
The gated room · in the effects, with Gate80's parts listListen ↗: Snare with a gated room (opens in a new tab)
effects
room   = Reverb(size: 0.85, decay: 2.4 s, predelay: 4 ms, mix: 1)
gate   = Gate80(threshold: 5%, hold: 240k, release: 4.7k)

voices -> room -> gate -> master
voices -> gate.key
voices -> master

circuit Gate80
  oversample 1x
  setting input: 5 V
  setting output: 0.86 V, from 0.086 V to 8.6 V
  setting threshold: 5%, from 0.5% to 100%
  setting hold: 240k, from 10k to 2.2M
  setting release: 4.7k, from 470 to 100k
  in key
  # the key's envelope
  U1 key k d1 opamp rails 13.5V
  D1 d1 k
  C1 k gnd 100n
  R2 k gnd 100k
  # the threshold and its comparator
  V1 ref gnd 5V
  P1 ref thr gnd 100k threshold
  U2 k thr g comparator rails 0V 5V
  # the hold: C2, and the comparator after it (against 1.6 V)
  D2 g a2
  R3 a2 h 100
  C2 h gnd 1u
  R4 h gnd hold
  R10 ref h2 34k
  R11 h2 gnd 16.2k
  U5 h h2 g2 comparator rails 0V 5V
  # open and shut: C3
  D3 g2 a3
  R5 a3 e 100
  R6 e d4 release
  D4 d4 g2
  R7 e gnd 1M
  C3 e gnd 1u
  U3 e eb eb opamp
  # the VCA
  Rb eb b 47k
  R8 in p 100k
  R9 p gnd 220
  R12 m gnd 220
  A1 p m o b CA3080
  RL o gnd 47k
  U4 o out out opamp
end

4Its limits

  • One way in. A circuit has one in, so a stereo sound reaches it as one. For a stereo reverb through a gate, use one gate a side, each fed its own side on both its ways in, both keyed by the same key:
Two gates, one each side · with Gate80's parts listListen ↗: Snare with two gates, one each side (opens in a new tab)
effects
room   = Reverb(size: 0.85, decay: 2.4 s, predelay: 4 ms, mix: 1)
gl     = Gate80()
gr     = Gate80()

voices -> room
room.left -> gl.left, gl.right
room.right -> gr.left, gr.right
gl -> master.left
gr -> master.right
voices -> gl.key, gr.key
voices -> master

circuit Gate80
  oversample 1x
  setting input: 5 V
  setting output: 0.86 V, from 0.086 V to 8.6 V
  setting threshold: 5%, from 0.5% to 100%
  setting hold: 240k, from 10k to 2.2M
  setting release: 4.7k, from 470 to 100k
  in key
  # the key's envelope
  U1 key k d1 opamp rails 13.5V
  D1 d1 k
  C1 k gnd 100n
  R2 k gnd 100k
  # the threshold and its comparator
  V1 ref gnd 5V
  P1 ref thr gnd 100k threshold
  U2 k thr g comparator rails 0V 5V
  # the hold: C2, and the comparator after it (against 1.6 V)
  D2 g a2
  R3 a2 h 100
  C2 h gnd 1u
  R4 h gnd hold
  R10 ref h2 34k
  R11 h2 gnd 16.2k
  U5 h h2 g2 comparator rails 0V 5V
  # open and shut: C3
  D3 g2 a3
  R5 a3 e 100
  R6 e d4 release
  D4 d4 g2
  R7 e gnd 1M
  C3 e gnd 1u
  U3 e eb eb opamp
  # the VCA
  Rb eb b 47k
  R8 in p 100k
  R9 p gnd 220
  R12 m gnd 220
  A1 p m o b CA3080
  RL o gnd 47k
  U4 o out out opamp
end
  • Names. In the effects, left and right are the circuit's two sides: a setting or named input can't be called either, nor a named output left.
  • A board and the dry around it meet in time. A circuit's oversampling delays its sound by a little under a millisecond. Where its out and the same sound taken around it add up (voices -> chorus -> master and voices -> master), SynthMaker delays the dry by just as much, so the two don't cancel each other at some frequencies.
  • A delay's clock runs from the moment the sound loads, as a real unit's does, not from each note.
  • The Mac app doesn't play a circuit in the effects yet; the web app does.

Remember