# 12-TET and harmonics

I recently found out that 12-TET tuning does not produce perfect fifths or thirds, but that most intervals are a few cents out of key. It's actually a compromise that works very well.

I wanted to think about what this means for guitar harmonics. In a guitar with good intonation, the 12th fret harmonic will sound exactly the same pitch as fretting the note on the 12th fret.

However, if I understood this correctly, playing the 19th fret harmonic (or the 7th fret, they are the same), should not produce the same note as fretting the same string on the 19th fret? The harmonic will create a Pythagorean perfect high fifth (twelfth? - 3 times the frequency of the open string), whereas the fretted note will generate the 12-TET equivalent.

According to the chart here, there should be a difference of 1.96 cents between both. Is that correct, or am I getting my facts wrong? (of course, my ear cannot perceive such a tiny difference).

That's absolutely correct. We can also find it out by ourselves like this:

In 12-TET, raising a tone by fifth means multiplying its frequency by 27/12 (because it's 7 semitones), while in just intonation, it means multiplying by 3/2. Dividing those numbers, we get 0.9988713..., so the 12-TET fifth is slightly flat with respect to the just intonation fifth.

Now if we want to know exactly how much it is off, we can use the formula for 12-TET again: raising a tone by x semitones means multiplying its frequency by 2x/12. So, in order to see how many semitones flat it is, we need to solve the equation 2x/12 = 0.9988713.

However, that is easily done. First take log2 of both sides to get x/12 = log2 0.9988713, and then just multiply by 12 to obtain x = 12 log2 0.9988713 = -0.01955... So the 12-TET fifth is truly 1.96 hundredths of a semitone flat with respect to the just intonation fifth.

If you want to get a difference that can be immediately heard, first make sure that your low E and high E are well tuned together (the harmonic at the 5th fret of the low E is the same tone as the open high E). Then play the harmonic at the 2.7th fret (I mean it) and compare with d'' at 10th fret of the high E. The harmonic is quite flat. We can also calculate the difference just as we did before: the harmonic has 7 times of the fundamental frequency, which means multiplying by 4 (two full octaves) and then by 7/4. In 12-TET, the d'' is 2 octaves and 10 semitones higher. Calculating x = 12 log2 [(210/12 / (7/4)] = 10 - 12 log2 7 + 12 × 2 = 0.3117..., so the 12-TET note is almost 1/3 of semitone too sharp.

• Thanks for the thorough answer. You mentioned d" twice... I'm not familiar with that notation. What does it stand for? Apr 2, 2020 at 14:59
• @mkorman: Sorry for the confusion. It's the "Helmholtz" notation for octaves, as used in German tradition (which is also followed in my homeland of Czech Republic). In the English notation, you would write D5. Apr 2, 2020 at 15:53

You are 100% correct in that the harmonics do NOT match the fretted notes. The fretted notes will be "closer" to (2)^(n/12)*f0 while the harmonics will be an integer times the fundamental. As for the number of cents difference I'd have to calculate it but I trust your source. The important fact is that they are NOT in tune. The just tuning of the major scale is based on harmonics and ensuring that the ratio of any note to the tonic, Do, is a rational fraction. Equal tempered tuning divides the octave, a factor of 2, into 12 even interval ratios. That is the ratio of consecutive notes in the chromatic scale should be the twelfth root of 2. This is an irrational number and cannot be evaluated exactly so we round it. This leads to subtle intonation issues that need correction. There are schools of thought that would assert that 12TET RUINED western music.

Does it matter? Maybe, maybe not. It really does NOT matter if your 5th is not 3/2*f0 since you can define the 5th any way you like. However the notes you play on any instrument are NOT the only notes created by the instrument. The natural harmonics are generates by attack and those will cause other strings to vibrate in sympathetic resonance. In just tuning I'd expect those resonances to be slightly stronger since the harmonic is "in tune" with the note being played. But in reality damping in the instrument broadens the response cure and I would expect a slightly out of tune 3rd or 5th to excite the harmonics.

These harmonics are also generated in your ear so they are always present as part of your Aural experience. The real issue is do the create dissonance where it is unwanted. Some people with perfect pitch claim that it does. Most people probably cannot tell the difference when notes are playing in a chord or in a full orchestra. If you play notes in succession in a silent room you will hear it. He can hear 1/4 tones (1/2 of a 1/2 step), and even smaller intervals. But when the perfect 5th is played next to the 12TETE tonic or other notes the slight difference may fall into the Critical Band for human pitch discrimination. At some point we cannot tell the difference. This phenomenon is pretty well understood and one can read about it in texts on physics and music or psychoacoustics.

• There are also schools of thought that say that 12 TET is the single biggest achievement of Western music. I think it's fair to present both sides of the argument :) Apr 2, 2020 at 15:15
• I agree and that depends on what is important to the player, and the listener.
– user50691
Apr 2, 2020 at 15:16
• I believe the critical band is not in relation to consonance, but rather the pitch interval at which to notes will sound "separate". Apr 2, 2020 at 16:32
• I agree, but when played together the clash of the two is perceived as dissonance.
– user50691
Apr 2, 2020 at 16:48

of course, my ear cannot perceive such a tiny difference

It can if you're playing a chord, or two notes at the same time. Try tuning your B string to the 7th fret harmonic of the E string. Then play the open B string against the stopped string. You should hear a slow waver in the amplitude. For 2 cents, the wavering will be quite slow. For a larger discrepancy such as the fifth harmonic (the major third), it will be much faster. For this reason, many would dispute the characterization of equal temperament as working "very well."

• I'm aware of this, thanks. I also wonder whether those who criticize 12-TET have ever played an instrument that's not tuned to 12-TET (like an old harpischord?) Apr 3, 2020 at 8:47
• @mkorman indeed. It is also frequently (no pun intended) said that that piano hammers are positioned 1/7 of the way down the string to minimize the out-of-tune 7th harmonic, but some quick internet research turned up a spectrogram showing that the 7th harmonic with a similar amplitude to the 6th and 8th. Still, the position at which a guitar is picked or strummed ought to have some bearing on how out of tune a given chord sounds. Apr 3, 2020 at 14:34
• Is the 7th harmonic well known for being out of tune? Ramillies mentions it in his answer, and it's almost 31 cents off! I was quite shocked to read that. Also, how would the position where the guitar is strummed have an influence on how out of tune it sounds? Could you expand on that? I'm veeeeery curious! Apr 3, 2020 at 14:43
• Do you mean "Try tuning your B string to the 7th fret harmonic..." ? Apr 3, 2020 at 14:47
• @mkorman it is probably not obvious why I brought that up, which is that old harpsichords won't necessarily observe this 1/7 rule. This is a major factor in the rather more nasal tone of the harpsichord, which in turn is a major reason why harpsichords sound rather worse in equal temperament than do pianos. Apr 3, 2020 at 16:25

I've always used the 12th and 19th fret harmonics to intonate guitars and basses. It's always worked for me! Not saying it's the correct way, but it's always been a good way - for me. And the 24th fret harmonic is probably accurate as it splits the sound evenly into octaves. But - I reckon the guitar fretboard is calculated to 12tet, so there may be a discrepancy. Help!!

• The 24th harmonic should work. In 12-TET octaves are perfect, so you should be fine. But, if what I asked above is true, then the 19th fret harmonic cannot be used for perfect intonation, unless you're OK with a 1.96 cent error. Apr 2, 2020 at 12:36
• I guess I've been o.k. with that small error. That's my two cents worth - nearly...
– Tim
Apr 2, 2020 at 12:44
• @mkorman, what defines "perfect intonation"? We are free to define the intervals any way we like. And have over the centuries.
– user50691
Apr 2, 2020 at 15:16
• Your 1.96 cents worth :) Apr 2, 2020 at 15:16
• @ggcg from what I have read, what most common types of tuning/intonation have in common is in defining the octave as 2*f0. This works for Pythagorean, 12-TET and 17-TET. In my comment above, a "perfect" octave means 2*f0 Apr 2, 2020 at 15:17