Adventures In Audio

What is harmonic distortion?

Harmonic distortion changes the shape of the audio waveform and creates additional frequencies that were not originally present. Often it sounds bad if there's too much of it. But electric guitarists love it!

For this demonstration we'll start off with a sine wave of 100 Hz at -20 dBFS. It looks like this in the edit screen of the digital audio workstation...

Sine wave in DAW

It sounds like this (you'll need to listen on loudspeakers or studio-quality headphones)...

A sine wave consists of only one frequency component, in this case - obviously - 100 Hz.

We can visualize this sine wave more flexibly using an oscilloscope plug-in.

Sine wave in oscilloscope
We can also view the frequency content using a spectrograph, which will create a spectrogram showing the frequency components. In this case there is only one, at 100 Hz.

Sine wave spectrogram

The spreading out at the bottom of the plot is due to spectral leakage, which can be ignored for most purposes. The pointy tip of the plot shows us that only 100 Hz is present.

To create distortion intentionally, we will insert the Soundtoys Decapitator plug-in, initially with default settings.

It looks like this...

Soundtoys Decapitator

And it sounds like this...

We can look at the waveform...

Decapitated waveform

As you can see, there is hardly any visual difference. But if we look at the spectrogram...

Decapitated spectrogram

Now we can see that there is a strong component at 100 Hz, which we expect, and also components at 200 Hz and 300 Hz. So the plug-in has created additional frequencies that were not originally present.

200 Hz and 300 Hz are whole-number multiples of the original 100 Hz frequency. This is usual in string and wind musical instruments, and also the human voice. We call it the 'harmonic series'. In this case 100 Hz is the 'fundamental' and also the 'first harmonic'. 200 Hz and 300 Hz are the second and third harmonics respectively.

Because of the similar pattern of frequencies to the harmonic series, we call this type of distortion 'harmonic distortion'.

At present the distortion is fairly mild. But we can easily increase it using the Drive control of the Decapitator.

Increased drive
It sounds like this...

The waveform looks like this...

Increased drive waveform

And the spectrogram looks like this...

Increased drive spectrogram

We can see changes in the waveform clearly. The tops and bottoms of the waveform have been squared off (the tilt is due to the low-cut filter which is set to 20 Hz). Also, the positive-going and negative-going halves of the waveform are slightly asymmetric. Every change from the shape of the sine wave contributes to the sound texture.

In the spectrogram we now see a mass of harmonics, all at whole-number multiples of the original 100 Hz fundamental. Some are missing, and we attribute this to quirks in the Decapitator plug-in.

All of this is interesting, but how does it apply to a real-world instrument? Well here's an electric guitar. It's a software instrument guitar and it sounds really quite weak.

But if we add the same distortion as we did to the sine wave, it sounds like this...

And with a little echo and reverb...

At this point, it sounds perfectly usable musically. And of course this is just one distortion plug-in and setting. There is an almost infinite variety of distortion effects and settings from which to choose.

Distortion is an amazingly useful audio process and in this brief tutorial we have only just scratched the surface of its possibilities.

Sunday December 22, 2019

Like, follow, and comment on this article at Facebook, Twitter, Reddit, Instagram or the social network of your choice.

David Mellor

David Mellor

David Mellor is CEO and Course Director of Audio Masterclass. David has designed courses in audio education and training since 1986 and is the publisher and principal writer of Adventures In Audio.

Audiophiles - You're wasting your money!

Audiophiles - You're wasting your money!

Watch on YouTube...

If you can't hear this then you're not an audiophile

If you can't hear this then you're not an audiophile

Watch on YouTube...

CD vs. 24-bit streaming - Sound of the past vs. sound of the future

CD vs. 24-bit streaming - Sound of the past vs. sound of the future

Watch on YouTube...

The Vinyl Revival - So wrong on so many levels

The Vinyl Revival - So wrong on so many levels

Watch on YouTube...

More from Adventures In Audio...

Get VU meters in your system and in your life [Fosi Audio LC30]

Is this the world's most diabolically expensive DAC? [iFi Diablo 2]

A tiny amplifier with a weird switch in a strange place

Will this DAC/headphone-amp dongle work with *your* phone? [Fosi Audio DS2]

When is a tube power amp not a tube power amp? - Aiyima T9 review

I test the Verum 1 Planar Magnetic headphones for listening and production

Your power amp is average - Here's why

Adding tube warmth with the Freqtube FT-1 - Audio demonstration

Adding tubes to a synth track with Freqport Freqtube

The tiny amp that does (nearly) everything

Can I unmix this track?

Why you need a mono amp in your system - Fosi Audio ZA3 review

Can you get great earbud bass with Soundpeats AIR4 Pro?

24 bits or 96 kHz? Which makes most difference?

16-bit vs. 24-bit - Less noise or more detail?

Are these earphones REALLY lossless? Questyle NHB12

Could this be your first oscilloscope? FNIRSI DSO-TC3

OneOdio Monitor 60 Hi-Res wired headphones full review

Watch me rebuild my studio with the FlexiSpot E7 Pro standing desk

Can a tiny box do all this? Testing the Fosi Audio SK01 headphone amp, preamp, EQ

Hi-Fi comfort OVER your ears? TRUEFREE O1 detailed review

Get the tube sound in your system with the Fosi Audio P3

Any studio you like, any listening room you like - For producers and audiophiles

Hidden Hi-Fi - The equipment you never knew you *didn't* need - Fosi Audio N3