Showing posts with label juno. Show all posts
Showing posts with label juno. Show all posts

Friday, November 13, 2026

Testing filter fixes

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

  1. Signal through SVF, no resonance, cutoff set at the point where the output is the highest.
  2. 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. 1 and 2 from the SVF, with Juno cutoff set to max, e.g. fully open so that signal passes unchanged through the filter. 
  2. Juno resonance set to 1 and cutoff to 0.68, giving the max "normal" resonance
  3. Juno resonance set to 1 and cutoff set so that resonant frequency is in sync with the signal, generating the highest possible peaks.
  4. 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.

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.

Saturday, May 23, 2026

Moog filter trimming

 At the moment, the moog filter has to be at full output to match Juno. That may change.

 

Also, to get a proper amplitude out, the trimmers has to be set as follows:

4p: 4.95V

2p: 1.67V

reso: 5V.

 

Even with this, the output signal jumps up and down when switching between juno and moog, indicating that it is not properly centered. Check the signal at filter output to see the real centering. 

Friday, January 31, 2025

Filters clipping - current situation and solution

Edit: I've done a thorough testing of the situation here: 

https://atosynth.blogspot.com/2026/11/svf-clipping-and-fixes.html

and suggested fixes and tested them here:

https://atosynth.blogspot.com/2026/11/testing-filter-fixes.html

These fixes will be implemented on the 1.1.3 version of the Voicecard and onwards.

Filter clipping

All three filters clip but some are more extreme than others.

Juno clipping

The Juno filter has a major flaw, it has an output gain stage that clips for anything above 2V out. It outputs 2V from 10V in, which means that all resonance is clipped if it exceeds the max input signal.

JP6 clipping

The JP6 filter clips in the output selector/gain stage, but also slightly internally

Moog clipping

The moog filter clips the least as it has a fairly good soft clipping built-in. The output gain op amp still clips at extremes.


Fixes

I've worked a lot to find the best solution the last few days, and as such has come up with the following approach:

Bus mixer changes

Reduce amplitude from the bus mixer into the filters from max 10V to max 5V. This requires two changes:

- Double the input resistors to the wet/dry amps in the bus mixer, halving the output of the summer

- When turning on serial instead of parallel filters, disable input from sum B. 

- SVF must still somehow have unity gain, if not, chaining input will be too low.

This alone has a huge effect on most clipping, giving double the headroom. 


Reduce the post filter gain

Moog filter

For the Moog filter, this is simply done by using half the CV. It can be done in software for the current version. This stops any leftover clipping in the Moog filter.

Juno filter

For the Juno filter, we add a resistor to the output. This will end up in series with the 18k resistor in the post juno filter gain stage, and reduce the gain. A 22k resistor reduces gain from 5.5 to 2.5. This takes away most of the clipping, though the filter still clips when the resonance oscillation has the same frequency as the input signal. It does however require modification of the juno filter board. This requires some other mechanism, like soft clipping the signal. More on that later.

JP6 filter

For the JP filter, we need to keep unity gain through the filter, so we do the gain reduction in the output mixer. It does not prevent any clipping but is required to keep max levels the same as for the juno and moog filter. This is the simplest solution for now. 

 

Reducing JP clipping

Unfortunately, the JP filter clips very slightly at highest resonance at the point where oscillation is in sync with the signal. This is not easily changed as it happens inside the filter circuit, but it is also the least serious clipping. I will leave it as is for now. It also goes away if reducing the max input slightly, but requires at least another 20% reduction. Perhaps this is best done in software for now.

To prevent other clipping, we have to change the output gain that happens around the output selector. This can be done in two ways: 

- Changing the voice card. This is the correct solution, and should be done for future versions of the card. Gain for all but the BP2 cell is 100/65 = 1.54, so quite a bit of clipping can be removed here. We still may have to add some kind of soft clipping, though. If soft clipping is added, we may choose to reduce the input by the needed 20% and increase the output gain instead to get around the initial clipping.

- Making a drop-in-replacement for the IC56 DG408 mux that halves the output by adding more input resistors. Unfortunately, the maximum BP2 output is 8.6V, and this is followed by a 1.67x gain stage (IC52A) which immediately clips. This cannot be remedied by the card. Instead, we need to reduce the BP2 gain stage to unity by adding an output resistor > 39k (to make the sum of 56k + 3.9k + x = 100k) to the JP6 BP2 output. It may be possible to do with existing JP6 filter cards or we can order new cards with this modification, and use the current version with new voice cards.


TL;DR - these are the needed fixes

- Double the signal input resistors on the wet/dry mixer on the bus mixer board

- (fix the gain error on the bus mixer board)

- Reduce output amp gain for Moog, JP6 and Sines to 50% (in software)

- Set a max resonance for all filters to keep self resonance oscillation amplitude as low as possible.

 

To save the current voice cards

- Add a 22k resistor to the juno output boards (for this version).

- Double the Moog resonance CV somehow, possibly by adding a parallel resistor to the CV input to double the current.

- Create a drop-in for the DG408 JP output selector that reduces gain (and possibly adds soft clipping?)


For new version

- Replace the 18k juno post filter gain input resistor with a 39k one (or rather, move the post filter gain onboard the Juno filter PCB).

- Add soft clipping to the juno filter

- Fix Moog resonance CV on the moog board

- Update the circuit around the JP filter output selector to prevent clipping. May have to add soft clipping.


PS: Self oscillation with a very high frequency (>20kH<) makes what sounds like digital noise. Not sure exactly what to do with it, maybe a lower frequency output LPF would be a good idea.

PPS: There are a lot of weird things happening that may be caused by the ground plane noise from the waveshaper. 

PPPS: Knocking on the breadboard makes resonance wobble. I hope this is just poor connections but fear that some of the ceramic caps are picking it up. We'll see.

Tuesday, November 19, 2024

Testing the Juno, Moog and JP6 filters

Juno
 

The Juno filter seems to work fine as well. The output is +/- 500mV from a +/-5V input through a 230k input resistor. 

The filter output is compensated on the voice card, with a gain of 5. This will however only get +/-2.5V from the input. Not sure what is going on there but it can be tested more thoroughly when testing with the voice card.

Edit: I misread the schematics, I put an external 230k resistor on the input when the Juno board already has one, meaning the input was attenuated by 50%

Resonance, VCA linear FM and cutoff CVs work fine. The 12/24dB switch has not been tested, neither has the temp sensor.


Moog

The Moog filter also works as it should. The range of the 2p and 4p trimmer CVs are sufficient, the reso balance trimmer needs around 4.6V for centering which is a bit too close for comfort.

The resonance CV at 5V may not be entirely sufficient for self oscillation but that has to be retested when the filter is connected to the voice card.

JP6

The JP6 filter works fine out of the box. I haven't checked the output levels but all filter variants look good and resonance works fine.

Monday, July 29, 2024

New PCBs from JLCPCB - Voice card ++

All new cards. Top left: Bus mixer, VCO and Juno filter. Top right: Moog and Jupiter filter. Center left: Voice mainboard. Center right: 2X waveshaper, FX module and bus mixer angled connector. Bottom: CV board
 
Everything mounted together. Looks a bit Frankenstein-ish but it fits!

Even the Juno filter, sandwiched between the voice card and the Moog/JP6 filter fits. I wonder how hot it will get though.

A true beauty!


Monday, January 1, 2024

Biasing cap and filter response

1uF

While looking for the reason why the filter output jumps frantically between +/- max when the cutoff is low or the input is close to zero when turning up distortion (spoiler: it's the biasing capacitor), I realised that I should have a closer look at what the output biasing/centering capacitor is actually doing to the filter's response. 

The cap is there to make sure the output is centered around 0, i.e. filter out any DC component (AC coupling the signal). The higher the capacitor, the longer the filter takes to change to 0V after an abrupt (DC) change. In the case of the jumping described above, I would like the change to settle as fast as possible, which means replacing the current 1uF cap with a smaller one, but what would that do to the output?

Looking online, it seems that the most common value of cap is 10uF. The Juno synths use 1uF. The cap in combination with a resistor/resistance creates a high pass filter with the cutoff frequency f=1/(2*PI*C*R). In my case, I have an 82k resistor immediately following the cap so I assume that this is R in the formula (the JP8 uses 100k and Juno 6 56k + a 20k trimmer).

The red line in the first plot here shows what our current 1uF cap does.

0.47uF

1uF 3dB
The 470uF cap clearly moves the cutoff frequency higher. Its -3dB point is at approximately 2.9Hz, compared to the 1.4Hz of the 1uFthe calculated values are 1.94Hz and 4.2Hz so 82k is at least close to the "real" resistance).


0.47uF at 20Hz
The human hearing is usually considered incapable of hearing frequencies of less than 20Hz. At this point the 0.47uF cap attenuates the signal by 90mdB. This in itself is not a lot, but it means that any sub-audible, ground shaking frequencies are filtered out. This may not be a problem as the equipment later in the chain may also have similar filtering, but it is something to think about.


10uF

In comparison, the 10uF cap gives a cutoff of less than 0.2Hz which is probably the reason why it's the more common choice.

0.047uF
I've seen some designs use a 47nF cap. This gives a -3dB cutoff at 370Hz which is a complete no-go combined with my 82k resistor.

Tuesday, December 26, 2023

Stacking PCBs

To have enough room on the voice card PCB, I think I will have to stack at least the Juno and Moog filter PCBs on top of eachother. But I don't want to pay for double sided boards and I don't want to solder the connectors myself.

Here are some options that I've come up with. All of them requires the filter PCBs to be mounted with their parts facing downwards:

This is probably the best option. It has a clearing of 5mm between the middle and lower board, and 4.4mm between the top and middle. Further more, we can increase this to 5.9mm by not covering the whole connector of the middle board, this is necessary as the Moog board has some 5.7mm high capacitors.

It also has the smallest possible space needed on the bottom board, 1.28cm (at least if parts on the bottom board are not higher than 2.5mm). 


It would be possible to put the middle board closer to the bottom, but this only leaves 2.5mm for parts and we need more space without parts to be able to slide the card in. It does leave a lot of space between the middle and top though.

This is a slightly more stable version of the first, as it uses a double sided connector on both cards. This will however steal more than twice the space from the bottom board as we need a lot of space to slide the card into place.

Tuesday, March 7, 2023

Filter FM and a dash of VCO linear FM research

It's time to hook up the FM inputs on the low pass filter.

I have an option to use both linear and exponential FM.

The most common option is exponential (v/oct) as this is readily available by mixing oscillator output with filter cutoff CV.

I found a nice post earlier about the use of both types but cannot find it right now, but here is a thread about linear FM at least:

https://modwiggler.com/forum/viewtopic.php?t=119415

FM off

I did initially design the FM input with two SPST (on/off) switches. This allows me to disconnect the input completely, as I was unsure how far down I could get the VCA to go.

Now I've done some calculations:

At 0V, the VCA has -80dB attenuation. That means that a 5V input signal would give a 0.5mV output.

If we've set the modulation to 1V/octave, 1 semitone would be 83.3mV, in which case 0.5mV = 0.6 cent. The input is bipolar (+/-5V) so the total change is 1.2cents.

For VCO tuning/tracking, I've assumed that a relative pitch change of about 3cent is at the limit of human hearing - and that's for VCOs. I think it is probably quite safe to use the VCA as a switch in this case. 

That leaves me with two options 

- either I use a DG413 as an SPDT switch, switching between lin and log - that saves me a single digital control signal. 

- or I use only exponential FM, in which case I don't need a switch at all.

I am currently breadboarding this. Both lin and exp FM works fine, but +/-5V linear FM seems to saturate something so the wave is cut off in some way. I will do a recording of it and add soon. Then I have to simulate the same to see what is actually going on. If I cannot make it work well I will just go for an exponential FM only.

Filter out: DCO1 is filtered, DCO2 modulates filter cutoff. Before red line: Linear FM, after: Exponential (v/oct) FM


Self resonance and exponential FM settings

Self resonancce and exponential FM output

Self resonance and linear FM output



Observations

Lin FM makes the filter "flatline". when the CV (DCO2) is low enough, the filter reaches a zero Hz cutoff, but the CV still goes lower, meaning the cutoff stays at 0Hz for some time - the filter does not support "through zero" modulation. 

PS: The output flatlines when input CV is positive, this is because the reference current is negative and any positive cv "negates" the reference current. Once the sum reaches 0 we cannot go any higher and the output flatlines.


Linear FM: When DCO2 is above a certain level,  the output "flatlines", presumably because cutoff reaches 0Hz before DCO2 reaches its peak.





Some measurements of linear FM CV vs I_abc

I_ref without any modulation is -12V / 1.2MOhm = -10uA (NB: mislabeled as -15V in captures)

With a +/-5V CV and a 120k input resistor, we will get 5V/120kOhm = 41.7uA, or approximately +/-4x the original I_ref. But since we cannot use an I_ref > 0, we get a flat line when the input from the linear FM CV reaches +10uA.


Cutoff CV: 0V, Lin FM CV: +/-5V


Cutoff CV: 2.5V, Lin FM CV: +/-5V


Cutoff CV: 3.5V, Lin FM CV: +/-5V


Cutoff CV: 4.5V, Lin FM CV: +/-5V


In my simulation I have written that we should use an input resistor that is approximately 10x the one used for the reference current, as that is what Yusynth.net uses for his VCO. That is not true.

Yusynth generates his reference current from a 5V source through a 1M resistor, giving a reference current of 5uA. For the linear FM input, he uses a 100k resistor, so a +/-5V input gives a +/-50uA output, which is 10x the normal reference current.

I, on the other hand, has used a CV that gives 4x reference current.


Cutoff CV: 0V, Lin FM CV: +/-5V, but this time we use a 50k lin CV input resistor


Calculations

To get a better feeling of the lin FM range I've done some simulations on the filter circuit. Here is the Frequency CV vs cutoff frequency vs I_control vs A/Hz (through a single cell):

1.0V:    10Hz    259nA    25.9nA/Hz

1.5V:    37Hz    1.03uA    27.8nA/Hz    

2.0V:    150Hz    4.18uA    27.8nA/Hz

2.5V:    604Hz    16.4uA    27.15nA/Hz

3.0V:    2.3kHz    63.6uA    27.7nA/Hz

3.5V:    8.2kHz    223uA    27.2nA/Hz

4.0V:    22.4kHz    639uA    28.5nA/Hz

4.5V:    42kHz    1.3mA    31.0nA/Hz

1.3mA is the highest possible value before we reach a flat top.


If we disregard the first and the last two (>= 4.0V) as we already know that they are not tracking that well, we get an average of 27.5nA/Hz


From my previous work I have that: 

R_linfm is often selected so that I_linfm = I_ref when linfm CV is at its highest (often 5 or 10V), which means that the frequency can be modulated by +/- 100% (the reference current will be between  0V and 2 * I_ref).

This is only true as long as we do not use through zero modulation. 

Also, looking at the Yusynth VCO with its 10x FM, this is clearly not what everyone does.


What are others doing. VCOs:

Rene Schmitz: 

https://www.schmitzbits.de/vco2.html

VCO 1-3: 15V / 1M ref current, 5V / 220k lin FM (15uA vs 23uA, ca 1.5x mod)

VCO 4 (TZFM) 15V / 470k ref current, 5V / 220k lin FM (32uA vs 23uA, or 0.72x mod)


Yusynth VCO

https://yusynth.net/Modular/EN/VCO/index.html

5V / 1M ref current, 5V / 100k lin FM (5uA vs 50uA, or 10x mod)


CEM3340

Pin 13 on the CEM3340 is the reference current summer. The datasheet has a 1.5M resistor to 15V and a 1M + 0.1uF cap to lin FM. In the last paragraph of the datasheet it says "The value of the input resistor should be selected so that the maximum peak to peak input signal produces a plus and minus current equal to the reference current". This is exactly what I have written in my own research on VCOs, so I guess this is where I got it from (?).

15 / 1.5M ref current, 5V / 1M lin FM (10uA vs 5uA, or 0.5x mod. Or, could it be they expected a +/-10V lin FM CV? In that case they follow their own doubling rule.


Ian Fritz

https://ijfritz.byethost4.com/sy_cir2.htm

6.9V / 690k ref current, 5V / 100k lin FM (10uA vs 50uA, or 5x mod)

https://ijfritz.byethost4.com/sy_cir16_teezer.htm

Hard to tell as lin FM is done differently


MFOS

https://hackaday.io/project/47158/gallery#ecedc0e5555ada3907345e3c0c4cda3d

A bit hard to tell, lin FM enters through the middle of a voltage divider??

12V / 1M ref current, 5V / (1M || 100k) lin FM (1M til summer) 


JJ Clark

https://electro-music.com/wiki/pmwiki.php?n=Schematics.XR2207VCOByProfessorJamesJClark

12V / 68k ref current (!), 5V / 10k lin FM (176uA vs 500uA, or 2.8x mod)


Thomas Henry

https://electro-music.com/wiki/pmwiki.php?n=Schematics.ACD4046BasedVCOByThomasHenry

15V/1.5M ref current, 5V / 100k lin FM (with AC/DC switch) (10uA vs 50uA, or 5x mod)


Lots of VCOs here: 

https://electro-music.com/wiki/pmwiki.php?n=Category.VCO


Ken Stone CGS48 VCO and VCF-ish thingie with built in VCO

https://electro-music.com/wiki/pmwiki.php?n=Schematics.Bi-N-TicFilterByKenStone

https://sdiy.info/wiki/CGS_VCO

15V/150k ref current, 5V/100k lin FM (100uA vs 50uA, or 0.5x mod)



Linear FM and "amplitude" in Hz

As described in more detail here, increasing the base frequency also increases the "amplitude" of the modulation (if you think about the FM as a bipolar signal). The higher you get the larger the change is. 

So, what to choose

That's the hard question, isn't it... Right now I'm having a hard time understanding why anything more than a 0-to-doubling of the reference current is used on a non-through-zero FM VCO/VCF. Once we go lower than 0 the average frequency starts to drop and the VCO goes flat. I guess that's an effect as well, but why do we want it? And why on earth would we want 10x the input as is the case on the Yusynth VCO? Hmm.... I guess the only way of finding out would be a proper test.

Update: After a little thinking I think (...) I will try this: Select an R_linfm that gives a I_linfm that is 4x the reference current. That way I can just divide the CV by four (= shift right 2) to get an I_linfm equal to I_ref, meaning that the output of the exponential divider will never be below 0. 

Juno filter FM

Incidently, for the juno filter with a 10uA I_ref, this whould mean a 125k resistor. My current design uses a 120k, which gives a 41.7uA max, or 10.4uA after division by 4. This is very close to the ideal. One could argue that a 130k would be better, making us not quite reach I_ref, but again, it's better to test. It is also possible that a 5V input to the VCAs does not give exactly a unity gain, so 120k, being a standard resistor value, may be good enough anyway.

VCO lin FM

As for the VCO, we have a slight issue. My current design expected a 15V input using a 1.5M resistor, giving a 10uA I_ref. Now, hopefully, I'll be able to tune away the difference, but selecting the proper R_linfm depends on whether I match it with the current design or with a possible updated/corrected design. Anyway, here are the two options:

For 10uA, I could use the same 120k or 130k resistor as for the juno VCF.

For 12V / 1.5M = 8uA i will need 32uA. The correct value would be 156k. The closest standard value is 150k which gives 33.3uA - again, a little high (3.5% vs 4% for the juno filter) but it may work anyway.

Jupiter 6 filter lin FM

This uses the same expo converter as the juno filter. Right now they both use 15V and 1.5M R_ref, giving an I_ref of 10uA. As I've already redone the Juno filter for 12V with a 1.2M R_ref I will probably do the same with the JP6 version. That means that I can use a 120-130k R_linfm here as well.

Moog filter lin FM

The current 15V version has a 1M R_ref, giving I_ref = 15V / 1MOhm = 15uA 

If we switch to an 800k version (or 820k perhaps) for the 12V version, we will keep the I_ref the same.

I_linfm would then be 60uA and we would need an 83.3k resistor.

If we continue using the 1M R_ref, I_ref would be 12uA. I_linfm would be 48uA and we would need a 104k resistor


Tuesday, February 14, 2023

Filter CV range calculations

Update: I've used 17.9mV throughout this post as the V/oct input to the exponential converter. Not sure where I got this number from, but in my posts on temperature compensation I use 17.5mV per octave at 20C. The change in range per degree is approximately 60uV. This places 17.9V 0.4mV or 400/60 = 6.67 degrees up, at 26.67C. I've recalculated things and it doesn't really change anything except for the tracking so I've left this post as is. 

Now here's the fun part of the last post :-) 

I did a quick measurement of the input CV to the exponential converter.

For an output of 150nA we need an input of 72mV

For an output of 1.16mA we need an input of -149mV


This means we have a total range 231mV. With the expected 17.9mV/octave this covers 12.9 octaves. If we want to cover 14 octaves, we need 17.9 mV * 14 = 250.6mV.

It looks like 14 oct may be hard to achieve in practice, as < 150nA will give an output that always attenuates, and one additional octave when we're at 1.16mA would need 2.32mV which is much more than the max we're able to generate. But for the sake of this discussion, let's go for a 14V range, starting at 72mV.

We then want to add +/-3 octaves of tuneability, to cover temperature changes and parts differences. Normally, these 3 octaves will be useless, but being able to change the input voltage by a similar amount will give a voltage at the expo converter that is +/- 3*17.9mV.

To cover this, the range seen at the expo converter should have a range of 17.9mV * 20 = 358mV. It should start at 72mv - 3 * 17.9mV = 125.7mV and go down to -232.3mV

We know that the maximum output of the CV summer is around +/-10V with +/-12V rails. That means that if we set -10V out of the CV summer to end up as -232.3mV, we need an 1/43 attenuator.

Selecting a nice and round number for the attenuator, 1/40, we would need -9.25V in to reach -232.3mV

That would put the top voltage at 5.03V, giving a range of 5.03V - -9.25V = 14.28V

ok, so that is the MOST we can do. But let's pick a number that is easier to work with. Let's restrict the output of the CV summer to a range of 10V. Having a 0-5V CV input (that should cover 20 octaves) means we can use a -2x gain, that's pretty neat.

So, with a 10V range in, and a 358mV range out of the voltage divider before the expo converter, we need a 10V/0.358V = 27.93 attenuation. We already have a 560Ohm tempco at the bottom of the divider. Picking a 15kOhm resistor at the top will give us a 27.78 attenuation, that's pretty close - it gives 360mV out for 10V in.

Applying this to the original output values gives us:

Needed input top: 125.7mV * 27.78 = 3.49V

Needed input bottom: -232.3mV * 27.78 = -6.45V


So - we need a circuit that produces a 0 to -10V output from a 0-5V input, and then offsets that output by 3.49V

We already know that the first part is achieved by a -2x gain. Using a 100k feedback resistor we could use a 50k input to achieve that.

For the 3.49V we connect a resistor to -12V. The gain has to be 3.49 / -12 = -0.2908. With a 100k feedback resistor we thus require a 344k resistor. 

The nearest standard value is 330k or 360k if using a more fine grained scale. Using a 360k resistor will give a gain of 100 / 360 = 0.278 and an output of 3.33V. A 330k resistor gives a gain of 100/330 = 0.303 and an output of 3.64V. Let's go for the 360k first, just because -3.33(3333)V is such a nice number. The range at the input is now 3.33333V to -6.666V (mmmmm!).

Converting back to the output at the expo converter, we get 3.33/27.78 = 120mV and -6.66/27.78 = -240mV. 

If we instead go for the 330k resistor, it would set the range at 3.64 / 27.78 = 131mV to -6.36 / 27.78 = -228.9mV

Now, none of these cover the entire range we originally wanted. The 360k resistor is 5.7mV away from reaching the lowest point, the 330k resistor is 3.4mV away from the highest point. The worst offset is thus about 0.31 octave away from our intended range. As we have 3 octaves to work with in both directions, I'd say both options will work.

Backtracking a bit more, we get that our new range, 360mV (for the 360k resistor, or 359.9 for the 330k resistor), covers 360mV/17.9mV = 20.11 octaves. That's fairly accurate without any kind of tuning, which is a very good starting point!

To sum it up:

Use a 50k resistor between CV input and the negative op amp terminal

Use a 100k feedback resistor

Use a 330k resistor between -12V and the negative op amp terminal

Use a 15k resistor on top of the voltage divider (connected to the op amp output)

Use a 560R resistor to ground at the bottom of the divider

NB: 15V/-15V supply is really 12V/-12V, I just couldn't be bothered changing the labels.

Update:

When using 17.5mV the range is instead 124.5mV to -229.5mV. 20 octaves would be 350mV. Using a 0-10V input to the resistor divider would give perfect tracking for a 28.57 attenuation, which would require a 15.44k resistor on top.

If we keep the 15k resistor we will get 0.486V/octave instead of 0.5 at the input. It doesn't matter too much as we have a lot of tuning range, though we COULD combine a 15k and a 470Ohm resistor if we wanted to.

Now it's time to test this. Quick Batman, to the LTSpice-mobile!

(We have one last issue to tackle though, temperature compensation. But let's not spoil the fun yet!)


Edit: testing

Red: CV input, Blue: CV summer output, Green: I_abc

My calculations are correct. I see a 3.64V to -6.36V output after the CV (With a 330k offset resistor). 

The voltage at the expo converter is 130.87mV down to -161.3mV, after that it flattens out meaning we've reached the limit of the converter at its 25C state (we needed it to reac -149mV for a 1.16mA current so that's ok). This happens when CV is 4.44V btw.

I_abc is 15nA to 1.28mA.

Light blue: expo converter base voltage, Green: I_abc

We do see a bit of non-linearity when the expo converter base voltage reaches around -122mV (CV is around 3.6V). Not sure what is going on there, I saw the same thing with the unchanged circuit. It would mean that the last octave (-122mV to 149.9mV) is not tracking properly, though this either should not be a problem because it is so high anyway, or we have a bit of room to calibrate it out. 

Frequency response

I did some fairly manual frequency response measurements, plotting the filter response for various CVs and reading the -3dB cutoff frequency. It's not entirely accurate but gives a good indication:

CV: Frequency

0.75V: 3.48Hz (oct 0, but never gets above -2.2dB)

1.00V: 8.6Hz (oct 1)

1.25V: 17.9Hz (oct 2)

1.50V: 36Hz (oct 3) "Baseline" for expectations later

1.75V: 74.33Hz (oct 4)

2.00V: 150Hz (oct 5)

2.25V: 304Hz (oct 6)

2.50V: 606Hz (oct 7)

2.75V: 1.21kHz (oct 8)

3.00V: 2.34kHz (oct 9)

3.25V: 4.47kHz (oct 10)

3.50V: 8.20kHz (oct 11, expected 9.2kHz)

3.75V: 14.1kHz (oct 12, expected 18.4kHz)

4.00V: 22.34kHz (oct 13, expected 36.8kHz)

4.25V: 32.8kHz (oct 14, expected 73.7kHz)

4.50V: 41.9kHz (additional octave, highest reachable cutoff)

As we can see, tracking is quite accurate from between oct 1 and 2 up to between octave 10 and 11. We will be able to tune in 40kHz as well, with an additional 0.5V CV (=2 octaves) left for temperature compensation etc, meaning we can get a workable 4Hz to 40kHz.

PS: Since it looks like the most compensation is needed at the top range, we could perhaps go for the 360k shifting resistor option instead, it will shift everything up by about 2/3 octave and allow more calibration on top.


Temperature compensation

We're using a 560Ohm tempco. Let's see what PPM rating it should ideally have. Now, tempco values are usually defined with a 0% change at 25 degrees. At 25 degrees, we would expect the expo converter to need 17.5mV + 5 * 0.06mV = 17.8mV per octave. Let's calculate the necessary input voltage:

V_in * 560 / (15000+560) = 0.0178V, V_in = 0.494V

Now, if the temperature rises by 10 degrees, we would need 17.8mV + 10 * 0.06mV = 18.4mV for the same change. To keep the CV input equal, we see that

0.494 * x / (15000 + x) = 0.0184V

x = 580.32Ohm. In other words, the resistance needs to change by 20Ohm or 0.5Ohm per degree.

From my previos work I have that

560 * (1 + x * (10^-6)/10) = 580

x*10^-6 = 580/560 - 1

x = (580/560 - 1) / 10^-6 = 3571

Which should mean that the resistor should have a 3571ppm/C temperature coefficient.

The ones I have, Vishay Linear PTC, TFPT0805L5600FV (684-1021 from RS components), are nowhere near this. They are 4110+/-400 ppm/K, and a simple example says they are expected to be 560 * 1.042 = 583.52 at 35 degrees. The worst case scenario should be 1.046, = 585.76, let's round to 586. While this may not be good enough for a VCO, I think it has a fair chance of working for a VCF. Let's calculate.

The output of the voltage divider at 35 degrees should be near

0.494V * 586 / 15586 = 18.57mV, or 0.17mV off from what we expected.

At 35 degrees, a semitone is 18.4mV / 12  = 1.533mV. 0.17mV equals 11cents of error. Over a 14 octave range, the accumulated error will be 155 cents or 1.5 semitones. 

If instead the temperature rose by 25 degrees to 50C, the resistor should be at 1.110 * 560 = 622Ohm. The needed output would be 17.8mV + 0.06 * 25 = 19.3mV. The output from the divider would be 19.67 or 0.37mV off, equaling 24 cents, and over 14 octaves 338 cents, equaling 3.5 semitones.

Without temperature compensation

To get a better understanding of what we are up against, let's see what the offset looks like if we don't use a tempco.

Starting again at 25 degrees, we know that 0.494V in gives 17.8mV out.

But then, at 35 degrees, it STILL gives approximately 17.8mV out, while the exponential converter needs 18.4mV. We have a 0.6mV error instead of the 1mV we would get with the tempco.

Over 14 octaves that accumulates to 8.4mV or 5.5 semitones - or almost half an octave. This is for a 10V change. If the change is more drastic, say 25 degrees, the error will be 0.06 * 25 = 1.5mV/oct for a total of 21mV, or 1.14 octaves. As we have a +/-3 octave tuneability, this should also be within reach. We would, however, need to know the temperature!

Keeping multiple VCFs tracking

With a tempco in place, and assuming that it is somehow affected at least not too much differently than the internal temperature of the expo converter, and also assuming that the VCFs won't drift THAT much from each other in terms of temperature, say +/-5 degrees, we COULD see as little as 0.38 semitones difference (given all VCFs are tuned to the middle freq, we would see a +/-7 oct range to drift in). This would not be perceptible in terms of cutoff but perhaps for resonance. 

WITHOUT the tempco, we have different option - measuring temperature and keeping several lookup tables. Apparently, this is what some Sequential synths do their VCO calibration, making them playable without warmup. 

We would however need a temperature sensor close to the expo converter. It is an exciting thought and I should definitely explore it further, especially seeing as thermistors are hard to get, expensive (2-3USD per chip) and have to be manually soldered.

It may even be an idea to use a temperature sensor for tuning the filters even with the thermistor in place...

A thought about tuning

I started wondering about how to best tune the cutoff. We can send a sine-like wave and see how it is attenuated. This will work up to the maximul DCO frequency which is something like 20kHz, but above that, in the most troublesome territory, we have no built-in source (though we could possibly use a VCO, but they are themselves not completely stable).

But we DO have resonance. If the resonant frequency is directly and proportionately related to the cutoff frequency, could we measure the resonance wave (e.g. just frequency counting) instead?

Monday, February 13, 2023

Tuneable filter with 14 octave span

I intend to make the juno filter tuneable in software. To do this, I hoped to add a 20 octave range to the CV and just use that. But simulating the filter gave a few surprises:
- when using a 25k input resistor to get 20 oct range, the output of the initial op amp exceeds the rails, so it will clip.
- the maximum cutoff for the filter at the current implementation is around 48kHz
- Below 7-ish Hz the filter acts like a band pass filter so the input is always attenuated, meaning lower frequencies are not possible.

Now, the two last facts are not a big problem. They happen on the filter side of the exponential converter, which is not as temperature sensitive so range hopefully won't change that much with temperature.

The expo converter however will change a lot, meaning the input needed to get a certain output will not stay the same. THIS is where we need to apply tuning relative to temperature.

So what I need to look at is the circuit before the expo converter transistor pair. I need to make sure that THAT can go above and below what is needed for control at 25 degrees celcius. To do this I've started out mapping out what currents into the filter core gives what cutoff. Here is a short table:

2mA = 47.2kHz
1.5mA = 45kHz
1.2mA = 43.5kHz
1.1mA = 42.5kHz
1.0mA = 41.5kHz
0.8mA = 38.6kHz
0.7mA = 36.5kHz
0.6mA = 34.2kHz
0.5mA = 31.3kHz
0.4mA = 27.3kHz
0.3mA = 22.5kHz
0.2mA = 16.3kHz
0.1mA = 8.7kHz
50uA = 4.4kHz
25uA = 2.23kHz
12.5uA = 1.11kHz
6.25uA = 553Hz
3.125uA = 274Hz
1.56uA = 136Hz
781nA = 67.4Hz
390nA = 33Hz
195nA = 16Hz
97.7nA = 7.64Hz
48.8nA= n/a, alltid under -3dB

So... from around 100nA and up to 0.2mA, the tracking seems to follow the rule of doubling the current = double the -3dB cutoff point. After that it falls off a bit. I think that a range of approx 4-40kHz is fine, that's about 13.5 octaves. 

That means that the input range we're looking for is about 100nA to 1.2mA. Next up will be looking at the circuit as it is and see what the input to the expo converter is at these currents. Then I'll see if I can change how the circuit works to allow the input to go lower and higher than this. At a stable 25degrees this won't have any impact (it simply won't work), but it will allow us to correct for changes later. Maybe.

A bit more testing

I did some more measuring and calculations today. First of all, I calculated the necessary resistor to get 1V/oct response. The Juno uses a resistor voltage divider with a 560Ohm tempco at the bottom. To get 1V in = 17.9mV out (17.9mV is the magic number for expo converters at 25C), the top resistor needs to be 31.745k to get perfect tracking. In the current design this is achieved by a 20k multiturn pot combined with a 10k and 8k2 resistor. 

In the 12V version of the filter, we have a few issues.

Without any changes, Iabc tops out at 1.07mA. We need at least 1.16mA to reach 40kHz.
Allowing a 20V input (or rather, changing to a 25k input to get 20 octaves from 5V input) will not work as the cv input opamp output will hit the low power rail (-12v) before going all the way.

So, what can be done:

1) By switching the 10k input resistors on the LM13700 Iabc inputs for 8.2k ones, we get a max Iabc of 1.3mA

2) By decreasing the top resistor in the resistor divider, we can get a response that is lower than 1V oct, for example 0.8V/oct. This means that the range output by the cv input summer can be within the power rails. 

I did some inital trials without calculating too much. For easier reading I use a 0-20V CV input with a 100k input resistor. Swapping R34 with a 5k (reducing the top resistor by 5k) and replacing 10k Iabc resistors with 8.2k, I get a CV AFTER the summer that goes from 6 to -10V (at 15.6V input). The Iabc response goes from 25nA at 0V to 1.3mA at 14V. 150nA, which we know from earlier is about the lowest we need, is output at 2V input. 

20V CV input and around 0.8V/oct tracking. +/-12V filter

Red: CV input, Green: Voltage after summer, shows saturation at around 16V CV. Blue: I_abc, tops out when CV is around 14V.



This means that our useable range is around 12V, from 2V to 14V, and that we have around 2V above and below this. We already have a fairly useable tuning range.

So, what should I do next?

Given 20V in and 100k input res (will be changed to 5V/25k)

1) Find the range we need for 14 octaves (150nA to whatever)
2) Find a gain + resistor divider that puts 3 V in at 150nA and 17V in at whatever is needed for 14 octaves up.
3) Input summer must not saturate, eg. stay within +/-10V output for the full range.

This will be fun!

BUUUT. What about the tempco resistor? Will it still adjust itself correctly when the top resistor is no longer the same? Well, that needs to be checked. 

And for later: At what input audio does the filter start to distort?

EDIT: Input to expo conv: 72mV in = 150nA out, -159mV in = 1.16mA out