Thanks. I appreciate the explanation, I'll have to learn more about distortion in depth.
I thought you already knew what THD is but got a bit confused about it.
Harmonic distortion is a type of nonlinear distortion. Harmonic distortion means that if you have an input frequency of f, you'll have additional output frequencies at exactly 2*f, exactly 3*f and so on... Harmonic distortion is one of the more "benevolent" type of distortion, it's not easy to notice it compared to other types of distortions, and even if it's noticed, low order even numbered (2nd and maybe 4th) distortion can sound actually pleasing. Higher order distortion sounds bad, it doesn't matter if the harmonic is odd or even. If you ever noticed distortion that you would describe as "buzzing", that's what high order distortion sounds like. When the harmonics are at the integer multiples of the fundamental, there's not much to be worried about when the fundamental is at already 10kHz.
The "Total" part of THD means that all the distortion products are summed together. A high second harmonic combined with a low third harmonic could produce the same THD as a low second harmonic combined with a high third one but they could sound quite different.
Something else to point out is that THD is a ratio. Its value is always given in a unitless number, such as % or dB.
To be more precise, it's the ratio of the RMS value of all harmonics compared to the RMS value of the fundamental.
This has an interesting implication. If the amount of distortion produced by a speaker is perfectly even across all the frequencies but the fundamental is not, the THD will still vary over the frequencies. The THD shoots up at places where the fundamental is relatively weak and goes down at ranges where the fundamental is stronger.
You brought up linear distortion previously. The difference between linear and nonlinear distortion is that nonlinear distortion produces output frequencies that are not present in the input signal. Linear distortion never produces new frequencies, it just changes the existing ones.
The difference between generic nonlinear distortion and harmonic distortion is that harmonic distortion generates harmonics only at the integer multiples of the fundamental specifically but this does not hold true to nonlinear distortion in general.