I've implemented my intended fixes on a breadboard and combined them with the two current versions of the SVF and juno filters.
All voltages noted here is to be read as the +/- voltage of a signal swinging around 0V.
Changes
That should be implemented in the updated software/hardware
Max input 2.5V
Set input to 2.5V max (in reality, the input used during testing was a single square wave which currently has an amplitude closer to 2.2V). In hardware these will be the result of making the output from the pre filter mixer peak at 2.5V. Summing two 5V signals will result in an output of max 2.5V.
No BP Gain
Removed band-pass post filter gain for both cells, and updated AP and notch circuits to take this into consideration.
![]() |
| Changes to AP and notch circuit when removing BP gain (op amp is still there to keep phase) |
Reduced Juno post filter gain Gain is reduced in hardware from 100/18 = 5.56 to 100/39 = 2.56. We have measured the output from the Juno filter directly, not post gain, so the filter is expected to clip when its core output is 10.3 / 2.56 = 4.02V
Limit max SVF resonance
Set max resonance to 80% for SVF and also measuring both resonance at 0.51 and 1 for Juno. This is a software change.
Limit max Juno cutoff and/or resonance
Set max cutoff for Juno to 0.68, which gives a self-resonating sine of around 20kHz, this should be the highest audible signal. Higher than this and the self-resonation should go silent for humans (poor dogs though). Tests were primarily done with resonance at 1. If it turns out that we need a higher cutoff we should reduce the max resonance. We've also tested max amplitude with a resonance at 0.51. These are software changes.
Testing
Circuit used for testing
I have not used the voice card's input selectors, instead moving wires on the breadboard. All cell 1 and cell 2 outputs are fed through the voice card's LP2 input which has a 47k input gain resistor. To get correct gain for the cell 1 direct I've added 35k (33k + 2.2k) to the breadboard output when measuring cell 1 direct (12dB) signals, making the total 82k.
Software settings for testing
- Osc 1 Waveform: Square wave
- Osc 1 Pulse width: 0.48 for the best 50/50 duty cycle, without this the signal won't be centered properly during peak measurements.
- Pre filter mixer: All muted except oscillator 1 which is routed to SVF only
- Filter routing: Series, which routes the output of SVF1 to the input of the Juno filter
Probe placement
Probes placed at
- LP1
- BP1
- HP1
- AP
- Notch
- SVF chain (on pre filter mixer, equals SVF output)
- Juno out (on filter card, before post filter gain on voice card)
How were measurements done
Measured at SVF chain
- Signal through SVF, no resonance, cutoff set at the point where the output is the highest.
- Signal through SVF, resonance set at 0.2 (=80%), cutoff set so that resonant frequency is in sync with (has same frequency as) with the signal, generating the highest possible peaks.
Measured at Juno low pass filter output
- 1 and 2 from the SVF, with Juno cutoff set to max, e.g. fully open so that signal passes unchanged through the filter.
- Juno resonance set to 1 and cutoff to 0.68, giving the max "normal" resonance
- Juno resonance set to 1 and cutoff set so that resonant frequency is in sync with the signal, generating the highest possible peaks.
- Both SVF and Juno resonance and cutoff set in sync with the signal.
How is possible clipping evaluated
For the SVF output, anything not visibly clipping on the scope is fine. It won't clip on the updated voice card either.
For the Juno filter, we take the new post filter gain of 2.56 into account, meaning anything measured to > 4.02V is expected to clip.
Results
These are based on the tests above. There may still be corner cases or other effects at different pitch, but it should be an indicator:
- Nothing clips in the SVF, even with resonance (up to 80%)
- Nothing clips in the Juno filter, including any tested output from the SVF
- For a Juno filter with max resonance, only the HP outputs (without resonance) from the SVF may clip very slightly.
- A Juno filter with in sync resonance will clip for almost all inputs, but most clipping is very slight.
- With both filters at in sync resonance, we will see massive clipping.
- With a resonance set to 0.51, which still gives a lot of resonance, just not self resonance, the Juno filter won't clip even at in sync resonance.
Cases to be careful about
When using resonance set to 1 on the Juno filter, high cutoff (> 0.68) may lead to clipping, though this happens at frequencies higher than 20kHz. Most likely, a resonance of less than 1 will be more than enough and reduces the chance of clipping.
Unrealistic cases
- When using max resonance for both filters, and hitting in-sync resonance points on both simultaneously, we will get massive clipping. This is not a very likely use case though.
- Juno resonance should not be set to max in practice
Conclusion
All general cases look good. We may still see some clipping, but limiting the resonance output on the Juno filter to less than 1 may make things even better.


No comments:
Post a Comment