Stuck with a SynthEdit project?

Tag: Digital Distortion

Multimode clipper

This small structure uses a third party distortion module, but is otherwise quite simple. It uses three TD_Driver modules set into different modes. I found the best ones were:
1) Analogue (a softer distortion, more akin to an overdriven valve pre-amp)
2) Digital (a harsher distortion, like a transistor “fuzz box”)
3) Tanh (a softer sound, that can be used as a saturator)

The “Drive” control is set with its Min/Max range set to Minimum 8 V and a Maximum of 40 V this give a nice useful range of effect from almost no distortion, to full blown clipping in the Analog and Digital modes.
The divide and inverter modules are used to control the output level when the Tanh mode is selected, otherwise the output can quickly exceed the default SE audio range causing unwanted (and very unpleasant) clipping. The divider is set with the Input2 plug set to 8. The divider/inverter circuit converts the +8 to +40 range to the correct voltage when applied to the +10V applied to the Input 2 plug of the Level Adj module to keep the audio signal level from the Tanh TD_Driver fairly constant in line with the other two modules.
Symmetry:
The symmetry control is set with a Minimum of -2.5 volts, and a Maximum of 2.5 volts, and fed to the input of each control. This allows us to control whether positive , negative or both polarity peaks are clipped. This allows us more control over the type of harmonics (odd/even) that are produced. The TD_Driver module does have asymmetric modes, but I found this method more effective and controllable than these built in modes.
HP Filter:
The 1 Pole HP filter in the output is in kHz/Volt mode, and set to a pitch of 0.001 to prevent any DC offset appearing in the output. we are really just using it as a DC blocker.

Note: Although I have used Sasha’s SVG controls for the design, you can use the controls supplied with SE just as well.

SynthEdit:- Aliasing and distortion.

Audio Aliasing is an effect which occurs when converting an analogue signal into a digital one with an insufficient sampling frequency.
The result of this effect is that the high-frequency components of that analogue signal will not be correctly interpreted, and the digital signal will not be an accurate copy of the analogue one.
Analogue to Digital conversion.
When analogue signals are digitised and turned into digital signals, the analogue signal is sampled at regularly occurring points in time, or in other words, the instantaneous amplitude of the analogue signal is recorded to create a digital copy of the analogue signal.
This happens very quickly in audio signals, for example, CD audio is sampled at 44.1 kHz (44,100 samples per second).
Aliasing occurs when a signal is sampled at an insufficient rate. Two audio signals can become indistinguishable from each other once they have been sampled and converted– they have become aliases of each other.

The Nyquist sampling theorem states that:
“To avoid aliasing, the sampling frequency must be at least twice that of the highest frequency which is to be represented“. If we use the example of CD audio, a sampling frequency of 44.1 kHz means that the highest frequency which can be represented without aliasing is 22.05 kHz. For CD audio this is sufficient as the upper limit of human hearing is around 15 to 20 kHz depending on the individual.

Aliasing can occur either because the anti-alias filter in the A-D converter (or in a sample-rate converter) doesn’t have a steep enough roll-off, or alternatively because the system has been overloaded. Distortion caused by overloading the input or conversion circuitry is the most common source of aliasing, because overloads result in the generation of multiple high-frequency harmonics within the digital system itself after the anti-aliasing filtering.
Sampling images.
The sampling process is similar to a form of amplitude modulation in which the input signal frequencies are added to, and subtracted from the sample-rate frequency. In radio terms, the sum products are called the upper sideband and the subtracted products are called the lower sideband. In digital circles they are just referred to as the ‘images‘.
Unwanted Effects.
These images play no part in the digital audio process — they are essentially just a side-effect of sampling. However they must be kept well above the wanted audio frequencies so that they can be removed easily without affecting the quality of the required audio signals. This is where all the can trouble begin. The upper image isn’t really a problem – that’s easily filtered out, but if the lower one is too low in frequency, it will mix with the audio we do want and because the frequencies are similar, this will create ‘aliases‘ that cannot be removed.
Unwanted guests you can’t get rid of.
This is what the aliases turn into… that guest at the party who causes bad feelings and will not leave. Once aliasing effects are there there is no way you can filter them out without causing even more audio degradation.

Spectrum of aliasing signal images

Note that, unlike an analogue system, in which the distortion products caused by overloads always follow a normal harmonic series, and can even give quite a pleasant sound, (consider tape saturation on an old reel to reel recorder, or soft clipping in a valve amplifier) overloading, or incorrect clock frequencies in a digital system aliasing result in the harmonic series being “folded back or mirrored” on itself to produce audible signals that are no longer harmonically related to the source (they are referred to as “Inharmonics”).
In this very basic example, we have ended up with aliases at 2kHz and 18kHz that have no obvious musical relationship to the 10kHz source. This is why overloading a digital system sounds so nasty in comparison to overloading an analogue system.