Analog self oscillating filters - even harmonics

DSP, Plugin and Host development discussion.
RELATED
PRODUCTS

Post

If you look at the spectrum of self-oscillating analog filters you can see that in most cases (all?) resonance peak contains all harmonics.

http://vellocet.com/dsp/analog/SelfOscHarmonics.html

Is this caused by asymmetric saturation or DC added somewhere? What are the most common curves then?
giq

Post

Nearly all analogue filters contain non-linearities which get pretty strong when the filter is overdriven or goes into self-oscillation (which also saturates the filter and therefore get's distorted).

The rest depends on the circuit, components used, topology, ... a circuit modeller might help here.
... when time becomes a loop ...
---
Intel i7 3770k @3.5GHz, 16GB RAM, Windows 7 / Ubuntu 16.04, Cubase Artist, Reaktor 6, Superior Drummer 3, M-Audio Audiophile 2496, Akai MPK-249, Roland TD-11KV+

Post

Yes I know, but almost in every publication this nonlinearity is a symmetrical sigmoid :), hence my question. Where do even harmonics come from?

If you look sh-101 or ms-20 filter.. this response is almost a filtered saw...
giq

Post

i have the feeling that the plot is in log scale while the frequencies printed below are linear

if the fundamental freq is 2kHz, then going up an octave each time you get 4, 8, 16..
or am i completely wrong?
It doesn't matter how it sounds..
..as long as it has BASS and it's LOUD!

irc.libera.chat >>> #kvr

Post

No it's right... Harmonics goes 1,2,3,4,5 ... :)

I tested my MS-20, MFB Dominion and Waldorf pulse.. all analog filters I met so far produce all harmonics.. So seems symmetrical saturation like tanh is the biggest myth here
giq

Post

DIstortion within filter is different to external distortion. Even simple "distort the states" non-linearity produces all harmonics. ( as i remember :D)

Edit: symmetric "distort the states" do not produce even harmonics.
Last edited by 2DaT on Wed Apr 23, 2014 3:13 am, edited 1 time in total.

Post

I see the following possible reasons:
1. components characteristic curve is asymmetrical - the question how and where?
2. a dc offset is added somewhere..
3. (unintended) control modulation?
4. These measurements (and mine) are wrong, because signal is distorted after the filter

I did some tests with my ladder filter model, to get close enough to e.g. sh101 filter I had to use quite sharp asymmetric saturations at several places, but this still generated less harmonics than the original.

Still no answer :) anybody there?
giq

Post

Filters are extremely complicated. I like to think of them as the work of genius, probably only because I partially understand them.
1. components characteristic curve is asymmetrical
This is not the only case that can create even harmonics via waveshaping. If the signal itself is asymmetric, then symmetric waveshaping will create even harmonics.

Post

Slight variations in transistors in differential stages account for a bit of the effect, asymmetric buffers account for the rest.

The asymmetry is typically 10% or greater. To get the effect of the ms-20 (korg35) you need at least 50% to 80%, plus many different asymmetrical stages. The opamp is offset with the diode clamp, clipping off the feedback from one side of the waveform. The transistors interact much like in the tb-303 or minimoog ladder filters such that the frequency is dependent upon both input signal and resonance.

The idea of using a plain tanh function is bullshit. The tanh function approximates the effect as a result of the exponential (diode function) base to emitter current transfer curve in a perfectly symmetrical differential amplifier. However this is never the case in long-tailed-pairs less than $50 - in other words pretty much all of them.

Extremely precise laser trimming is used in addition to measurement and matching of components to get accuracies anywhere near 1%.
Free plug-ins for Windows, MacOS and Linux. Xhip Synthesizer v8.0 and Xhip Effects Bundle v6.7.
The coder's credo: We believe our work is neither clever nor difficult; it is done because we thought it would be easy.
Work less; get more done.

Post

Thats it! Thanks a lot!

I realised with asymmetric saturation and HPF in feedback loop I get some DC at the filter output..
giq

Post

I noticed that cutoff/resonance modulation depending on internal state does the job better than using wave shapers. I need to figure out the proper function yet.
giq

Post

https://soundcloud.com/aciddose/korg35-noaudiopathclamp

Actually the cutoff / resonance modulation is a result of the structure of the filter, there is absolutely no modulation going on directly.

This is in software, entirely done using a configuration of accurate transistor/diode functions. Main difference is the signal path diode clamp isn't here, this is as if you moved the diode clamp to the feedback.

Another huge difference is I'm using a 4-pole filter for this while the ms-20 is a 2-pole.

Note that when I say transistor/diode, i mean functions that ARE NOT TANH.

I don't mean there is any ridiculous complicated spice simulation going on or anything like that. This is absolutely naive, simple c code. Nothing magic happening what-so-ever.

All you need to do is put the correct structure in with the correct functions applied and boom, the exact identical result will come out.

For comparison, this is the actual hardware.

https://soundcloud.com/aciddose/ressy-pulse

Main difference here is of course the res is slightly lower and the filter is 12db rather than 24db. So you should immediately hear the timbre difference.
Free plug-ins for Windows, MacOS and Linux. Xhip Synthesizer v8.0 and Xhip Effects Bundle v6.7.
The coder's credo: We believe our work is neither clever nor difficult; it is done because we thought it would be easy.
Work less; get more done.

Post

Thanks again,

As for shaping function... as I see diode clamp is almost hard-clipper.
giq

Post

Here is my latest MS-20 Sallen-key emulation test:

http://www.mixcloud.com/giku/ms20-filte ... =cloudcast

I used a single asymmetric waveshaper in the feedback loop, tuned 'by ear'.. Resonance peak harmonic structure is identical to that produced by my ms-20 mini.
giq

Post

Sounds like it's ready for techno (i like techno)

Post Reply

Return to “DSP and Plugin Development”