Tuesday, November 10, 2026

SVF, clipping and fixes

The SVF and Juno filters still clip, and that's the last big blocker before ordering more voice cards. This incredibly boring post tries to document everything that clips, what the max input levels are and to answer how we can adress it/what solution to choose.
 

Design goals

 
Here are the goals I've decided on after testing everything
 
SVF: 
  • Unity gain through SVF (needed for chaining)
  • Input: 2.5V max 
  • No clipping with normal input
  • No clipping with in sync resonance when resonance is < 80% 
  • Remove BP gain (to prevent clipping.  NB: removing gain will invert phase and ruin AP/Notch s don't do that!). 
  • Redesigned AP/Notch using non-gained BP
  • Separate board from Moog filter to be able to change it later. 
  • Consider if possible to move AP/Notch on-board 
  • In software: Limit resonance to 80% and change taper law to logarithmic 

Juno:

  • 50% attenuation through filter (needed to prevent clipping resonance)
  • Input: 2.5V max in normal operation
  • No clipping with input <= 2.5V, including in sync resonance
  • No clipping with input < 10V if not using internal resonance (or specifically in sync reso) 
  • Clipping OK if fed for example in sync reso from SVF and using in sync reso internally
  • Keep current phase output to match Moog
  • Move post filter gain on-board (to make adding a soft clipper possible later without changing mainboard)

Pre filter mixer:

  • default to 2.5V max output
  • allow 5V max output if cutting or soldering jumpers, for future-proofing - must put two 100k in series for normal operation, and have solder jumper for one of them to reduce resistance to 100k.

Output mixer:

  • add 2x gain for Juno, to allow making up for attenuation? Default to unity gain in software. May clip when extra gain but that's a choice, not a bug. Can consider doing this with two 47k in parallel and a cuttable jumper to make gain drop back to normal

 

Input should be max 2.5V

This goal massively reduces clipping. It can be achieved either through changing the internal gain in the mixer OR by changing the wet/dry pan CVs. The CV generation is on the main board and unfortunately fixed, if we should change it we would need both to be 0-2.5V and 2.5V to 0, which isn't possible without another HW revision. The on-mixer change IS possible with the new slim version, perhaps even a switchable version could be made.

If doing the change on the mixer, we can increase the input resistors to 200k, or reduce the gain resistor for the two outputs. 

 

Tests

 

Cell 1 

Without resonance 

Tested with a direct input through a 100k resistor, no resonance, full filter sweep:

Max input triangle

LP1: -9.6 to 8.5 in, -8.5 to 9.3 out (but with slight compression)

HP1: -9.7 to 8.5 in, -9.3 to 8.6 out

BP1: -9.6 to 8.5 in, -4 to 5.5 out (no clipping at all)

BP1 gained: no clip either

Max input saw

LP1: -9.6 to 9.4 in, -9.1 to 8.9 out

HP1:-4.9 to 4.7 in, -4.9 to 6.1 out

BP1: no clip, also gain is not possible to measure properly

BP1 gained : -6.9 to 6.7 in, 

Comment: HP is very high above 0 but not very much below. 

Max inputs square

LP1: -9.1 to 8.6 in, -8.6 to 9.1 out. Locks up with too high input!

HP1: -4.3 to 3.9 in, -5.9 to 4.8 out.

BP1: No clipping 

BP1 gained : -6.8 to 6.3 in, -9.3 to 0.8 out (but not proper measurement as no square out)


With resonance at 0 (= full):
- NB: The clipping we see is always at 10V so it may be that it clips in the probes/logic analyzer before actually clipping. Op amp clipping is still fairly close though.

With resonance 

square: 

In general: self oscillation in sync, with freq as low as 4 x base freq, may clip. 

Also, self resonance at base frequency, once started, is unaffected by input amplitude. 

LP1: 

"normal reso": -9.8 to 9.7 in: -4.4 to 4.9 out

"in sync reso": Self reso, in sync, clips slightly. Independent of input signal amplitude

BP1:

"normal reso": -10 to 10 in: -4.8 to 4.9 out

"in sync reso": Self reso, in sync, clips slightly. Independent of input signal amplitude

HP1:

"normal reso": -10 to 10 in: -5.2 to 5.3 out

"in sync reso": Self reso, in sync, clips slightly. Independent of input signal amplitude

 

Saw: 

LP1:  

"normal reso": Self reso clips slightly when at a multiple of signal frequency, is not affected by changing input amplitude. When more than four times base frequency, no clip. For higher frequencies: -9.5 to 9.3 in: -3.5 to 5 out.

"in sync reso": -4 to 3.8 in, -10 to 10 out.

BP1:

"normal reso": -9.3 to 9 in, -2.5 to 2.5 out

"in sync reso": -4 to 3.8 in, -10 to 10 out, very slight clipping

HP1:

"normal reso": Clips when in 'sub sync', four times base freq for example.  

"in sync reso": -9.3 to 9 in, -4 to 3.8 out


Tri

LP1: 

"normal reso": -9.5 to 8.5 in, -2.9 to 1.9 out

"in sync reso": Hard to get a stable error, but clips a tiny bit sometimes when input is -9.5 to 8.5

BP1:

"normal reso": veldig lav output

"in sync reso": Hard to get a stable error, but clips a tiny bit sometimes when input is -9.5 to 8.5

HP1:

"normal reso": -9.9 to 8.5 in, -3.8 to 3 out at most.

"in sync reso": -2.5 to 2.0 in - very hard to get a stable error but clips a tiny amount at almost at any input. 

 

Cell 2 

Without resonance 

Tested with a direct input that has not been through Cell 1. First, no resonance:

Max input triangle to cell 2 through 150k that does not clip internally during normal filter sweep:

LP2: -9.6 to 8.6, out as -5.4 to 6.4 (inverted)

HP2: -9.6 to 8.6, out as -6.2 to 6 (inverted)

BP2: Doesn't really clip visibly but mostly because it never passes a clean triangle 

  

Max input saw to cell 2 through 150k that does not clip internally during normal filter sweep:

LP2: -9.7 to 9.5, out as -5.4 to 6.4 (inverted)

HP2: -8.1 to 7.9, out as -4.6 to 6.3 (inverted)

BP2: Doesn't really clip visibly but mostly because it never passes a clean triangle 

 

Max input square to cell 2 through 150k that does not clip internally during normal filter sweep:

LP2: not possible to see any clipping since output is also completely square. Output stops changing when input is +/-10V

HP2: -7.3 to 7.2, out as -6.4 to 5.3 at start, slants. (inverted)

BP2: Doesn't clip visibly, 10V in is -5.9 to 5.8 out.

 

So, max -7.3 to -7.2 in for a clean signal for all waveforms, that does not clip normally. 

 

With resonance 

With resonance at 0 (= full):
- Clipping is always at 10V so may be clipping in probes

square: 

LP2, BP2: 

"normal reso": -5.3 to 4.9 passes 

"in sync reso": -3.9 to 3.6 passes 

HP2: 

"normal reso": -5.4 to 5.8 passes

"in sync reso":     -2.7 to 2.4 passes 

 

Saw: 

LP2: 

"normal reso": -6.9 to 6.8 

"in sync reso": -6.7 to 6.6 

BP2:

"normal reso": -8.6 to 8.5 

"in sync reso": 5.7 to 5.5 (a bit unsure about this one)

HP2:

"normal reso": -6.4 to 6.2 

"in sync reso": -4.3 to 4.2 

 

Tri

LP2: 

"normal reso": +/- 10V approx

"in sync reso": -5.5 to 4.8

BP2:

"normal reso":: +/- 10V approx

"in sync reso": -4.4 to 3.8

HP2:

"normal reso":: +/- 10V approx

"in sync reso": -4.9 to 4.3



A possible fix, testing

 

Reducing output of mixer to +/- 2.5 instead of +/-5
 

Testing first with a square wave, -2.7 to 2.34 in

Measuring max output

Cell 1 

LP1

Normal: -2.9 to 3.3

Normal reso: < 5x base self osc: max +/-5V, normal reso -2 to 1.7 max

In sync reso: clips very slightly

HP1

Normal: -6.5 to 6.5 at max normal, but some kind of self oscillation when cutoff is too high

-- This is probably the param to watch, if this does not clip we can perhaps accept that reso clips? 

Normal reso: Up to around +/-6 at extremes.

In sync reso: Clips slightly

BP1

Normal: Around +/-2.5V (Normal with gain: -3.5 to 4)

Normal reso: Around 2-3V (With gain: Up to 8 but never clipping)

In sync reso: Clips slightly (With gain, clips more but still only at sync)

AP: 

-7.9 to 7 - but uses gained BP. Try again with non-gained BP?

 

Cell 2

 Measured at the output of the SVF, before the post filter gain stage. The post gain stage is 100/65 for LP and HP,  100/100 for cell 1 direct and 100/60 * 100/65 for BP

A 150k input resistor is used instead of 100k + 56k during testing, so gain is very slightly different. 

LP1 + LP2

Normal: -1.9 to 1.85

Normal reso: Above sync reso there are still tops up to 8V, but most max out at around 5 and "normal reso" is something like 2.5V

In sync reso: Slight clipping. Below sync frequency the output still high, up to 8.

HP1 + HP2

Normal: -4.75 to 4.6

Normal reso: Up to 8.5 at extremes. Never clips

In sync reso: Clipping starts much earlier than for HP1 alone

BP1 + BP2

Normal: -0.9 to 1

Normal reso: Maxes out at 7.5, more normal at 2

In sync reso: Clips the same places as BP1 but slightly harder

BP1 gained + BP2

Normal: -1.5 to 1.5

Normal reso: Maxes out at 9 but never clips

In sync reso: Clips slightly earlier.

 

Lower resonance

Resonance set at 0.2 in software (which is really 80% since pot is backwards).

Input: 2V square wave. 

Output without resonance: 2.2V


Cell 1

LP1:

Normal resonance: peaks at around 0.8V, flat part at around 0.3V

In sync: 3.2V 

BP1:

In sync: 3.2V 

HP1:

In sync: 3.2V 

 

Cell 2: NB: Raw outputs, no post cell gain: 

LP1 + LP2:

No reso, fully open: 1.5V NB! Means we have to have a post gain that will make in sync output higher!

Normal: 1.5V

In sync: 4.9V

BP1 + BP2 (no BP1 gain, raw output of BP1 fed into Cell 2 through 150k resistor) 

In sync: 5.1V

HP1 + HP2:

In sync: 6.2V 

 

Gain

Gains outside the SVF itself

Post cell 1: 

  • BP 1 gain: 1.47 

Post cell 2 gains are as follows:

  • Cell 1 direct: 1
  • LP 2: 1.54
  • HP 2: 1.54
  • BP 2: 1.67 * 1.54  (67 to make BP 2 unity gain I guess) 

 

Estimated outputs of cell 2 with gain:

LP1 + LP2:

Normal: 2.31

In sync: 7.55

HP1 + HP2:

Normal:  ?

In sync: 9.55 

BP1 + BP2:

In sync, NO additional gain: 7.85

In sync, WITH additional gain after Cell 2: 13.1 - clips massively.

 

In other words, without BP2 makeup gain, all pass fine.

Also, it's highly likely that a normal output will never clip in a (modified) Juno filter. In sync resonance will however likely clip. 


BP, AP and Notch with no extra gain

To prevent clipping, we reverse the additional gain for the BP output. That also requires changes to the AP and notch circuits: 

The current circuit:

Three resistors must be changed:

  • The input resistor to the BP inverter, R151, must be 100k for unity gain
  • The unfiltered input to the Notch circuit, R148, must be replaced with an 82k resistor
  • The unfiltered input to the AP circuit, R145 and R150, must be replaced with a single 75k resistor 


This leads to an approximate change of approximately -3dB for the BP/AP and notch outputs.  

 

Juno

 
Version 1.1.1 of the voice card has a Juno output gain of 100k/18k = 5.56, as the filter itself attenuates the input to 1/5. 
 
NB: version 1.1.3 of the voice card has changed the output gain circuit: output has a 100/39 = 2.56 gain op amp, so gain through the filter is at 0.5 (NB! Also inverts signal). This means output of core must be around 4V (10V/ 2.56) to not clip, including the in sync resonance. Previous measurements showed that in sync reso could get up to 6V, meaning it clips. This must be retested with a 5V and 2.5V max input.
 
Also, this means that even with a lowered input, we still need to attenuate both SVF and moog to match juno. 
 

Output before post gain:

 

Max input 

square: -1.6 to 1.7 at input of filter, -0.25 to 0.42 at juno output, would be 1.34 to 2.3 after post gain.

Can't get higher than 4.4V in from mixer. Will try chaining.
 

Things that may still clip, at least with 5V input

- 12dB HP filter chained through Juno if juno has resonance turned on - 12dB SVF filter outputs peaks at around 2x input. A 5V signal in will give 10V peaks around the cutoff frequency. This will appear at the Juno input which expects a max of 5V, and will likely clip there.

- SVF: Self oscillation with frequency same as signal base frequency will clip no matter the input amplitude (Cell 1 at least, and at full resonance. Lower resonance and 2.5V input does not clip.

 

Thoughts

 

If reducing to 2.5V max out of mixer, normal input to juno will also be 2.5V. Since we currently don't allow mixing chained signal with "bus B", whatever ends up at juno is what came out of SVF. 
 
The highest "normal" signal through the SVF is HP1 at 6.5, which after the final gain will be around 10V. This will probably still clip in the Juno filter. Test this.

Would reversing the order fix tings? Reducing input to max 2.5V, then reordering? What is the max out of the juno filter, and how would that affect the SVF? Also, what is the effect of changing the order, sound wise? It would require the juno filter to have unity gain (like it does now), so it depends on what happens if input is max 2.5V.

No comments:

Post a Comment