Even-Only Harmonics Generator

Charles Eric LaForest, PhD., GateForge Consulting, Ltd.

This is a sketch of a circuit which generates only the even harmonics of the input (2,4,6,8,10,...), unlike conventional distortion circuits which must generate either only the odd harmonics (3,5,7,9,11,...), or a mixture of even and odd harmonics.

Theory of Operation

By enumerating the possible types of distortion and the harmonics they generate, we can predict that only one type of circuit can generate only even harmonics:

We can accomplish this specific distortion by using a variation of the Precision Rectifier circuit (a pair of "superdiodes") where one path has unity gain, and the other has a selectable constant gain. The gain only depends on the sign of the input signal, not its level.

The circuit shown here does exactly that: the pre-biased input IN goes through a non-inverting amplifier with two feedback loops which each include a diode (1N4148) so they only pass current when forward-biased, and both feed a conventional output buffer and volume control. The output buffer is mandatory to avoid causing other distortions and create odd harmonics.

You can try out this circuit (including the bias supply and a pre-biased signal source) in the interactive CircuitJS1 simulator: even_harmonics_generator.cjs1.

Negative Input

When the input is negative, the first diode provides a direct negative feedback and so a gain of unity. However, we cannot take the output signal from the output of the op amp, as it includes the forward voltage drop of the diode, and the second diode is reverse-biased and so lets no current pass. Thus, we take the output from the inverting input pin, through one of the resistances of the other feedback loop, and tied to the other end of the second diode, further ensuring it stays reverse-biased, then into the output buffer.

Positive Input

When the input is positive, the first diode is reverse-biased, and the second diode feeds back through a conventional variable voltage divider to control the gain. Here, the 4.7k resistor and the 5k potentiometer give us a gain ranging from unity to 2.06. A higher maximum gain will generate more harmonics, but a gain between 1 and 2 suffices to generate a lot of even harmonics. The feedback resistance values are not critical, since the op amp will compensate for the non-linear current through the diode and its current-dependent forward voltage drop. We can take the output directly from the second diode, and into the output buffer.

Output Waveform and Spectrum

Given a 200 Hz sine input, we can see the asymmetric constant gain (2.06 here) on the waveform: the positive half of the output is a clean sine of twice the amplitude and of the same period as the negative half. The sudden transition between the positive and negative gain is visible below the 0V line, as the output buffer removes the non-zero average DC offset contained in the asymmetric output waveform.

The spectrum of that waveform shows the generated even harmonics of the 200 Hz fundamental (400, 800, 1200, 1600, ...), with faint traces of the odd harmonics present due to limits in the possible perfection of the circuit. Note that even with a gain of only 2.06, we see significant even harmonics up to about 4kHz, which has psychoacoustic consequences.

NOTE: even though the gain is 2.06, since it only applies to one half of the waveform, the total gain is only 1.66.

Implementation Details

Although I am showing a simulation using semi-ideal components and op amps approximating a TL072, I have physically built this circuit using variously different parts (e.g.: OPA141 op amps, a different biasing voltage source) and it does work as shown.

However, this circuit is very sensitive to imperfections, since any form of distortion except the one we are trying to implement will generate odd harmonics.

Therefore, we have to be exceptionally careful when implementing:

On the other hand, since we absolutely have to operate the op amps linearly, it does not matter much which one you choose, so long as the input and output voltage ranges fit the surrounding circuitry, the slew rate and gain-bandwidth product are sufficient, and it is unity-gain stable.

Psychoacoustics (How Does It Sound?)

The oft-repeated wisdom is that even harmonics are more pleasant to the ear than odd harmonics. Unfortunately, now that we have a pure example, it turns out it's not always true. That said, this part needs further work.

When a pure sine wave is fed through this even-only harmonics generator, the result does sound quite good. As the level of the harmonics rises, it first sounds like a mild octave effect, then grows into something more complex. This is especially true for sub-bass frequencies. For example, with a 30 Hz sine input, it takes a very high level before it's clearly audible due to the frequency response of the ear and of the headphones. But adding the even harmonics increases the pitch perception and perceived loudness of the signal. It sounds a lot like the largest pipes of a pipe organ.

However, when fed a bass guitar signal, the result is strikingly bad: there is a perception of a strong buzzing noise at the same pitch as the note being played, which worsens as the level of the harmonics increases. The buzzing diminishes as the notes go up in pitch (so this might work on guitar). Adding a feedback filter capacitor (as shown in the schematic) will reduce the range of harmonics and the buzzing, but then the effect sounds like a plain bass boost EQ. I have a few hypotheses as to why the even-only harmonics of a complex signal sounds so bad:

These all suggest that even-only harmonic distortion might work best by applying it to a strongly low-passed copy of the input signal, subtracting that low-passed copy from the distorted version (to avoid boosting the original low frequencies), and adding the result into the original input signal, thus adding harmonics related to the lowest frequencies. This a known technique for improving the perception of bass on limited equipment (e.g.: earbuds and other small speakers).

Related Works

I could not find any other published circuits which generate only even harmonics. Every "even harmonic generator" example I found uses the term because it generates even harmonics in addition to odd harmonics. A few patents stand out:


fpgacpu.ca