Pitch and tuning

One guitar tuning serves every key, and it is the D shape's

A guitar tuned once for a set of pop songs in five keys is tuned exact for the D shape. The open question was the converse: which songs a given tuning serves, and how many keys a set can span before its best tuning stops being any shape's. Grown one key at a time round the circle of fifths, the set never stops sharing a shape: up to three keys it is the C shape's tuning, and from four keys to all twelve it is the D shape's, with the same offsets to a fifth of a cent. The five-key tuning serves the seven keys outside the set better than the two open keys inside it, and not retuning between songs costs less the more keys the evening spans.

Assumes: A guitar tuned for a set is tuned for the D shape · A silent string tunes the minor chord

A guitar tuned for a set is tuned for the D shape tuned a guitar once for an evening rather than once per song. For the I–vi–IV–V ground in C, G, D, A and E, at the valuation a typical player puts on intonation — five frets of hand movement for a cent — the set’s best tuning was exact for the D shape, the one fingering every key’s route used for some chord, with that shape’s two silent strings placed for the set. Not retuning between songs cost a fifth of a cent.

It ended by turning the question over. A player chooses the set as well as the tuning, and five keys are not twelve. Given one tuning, which songs does it serve best? And how many keys can a set span before its best tuning stops being any shape’s — before the guitar has to be tuned for nothing in particular, as a guitar tuned for a still hand was? The answer would also say something about an old practice: retuning between sets rather than between songs, one tuning per half of the evening. Is that about the strings stretching, or about the keys changing?

A set never stops sharing a shape. Grown one key at a time round the circle of fifths, the set’s tuning is exact for the C shape up to three keys, and exact for the D shape from four keys to all twelve, with the same offsets to within a fifth of a cent from five keys on. The tuning chosen for five keys serves the keys outside the set better than it serves C and G, which are in it.

However many keys the set spans, its tuning is exact for a shape — the D shape from four keys on. The I–vi–IV–V ground in a set of songs whose keys are added one at a time round the circle of fifths from C — C, G, D, A, E, B, F♯, D♭, A♭, E♭, B♭, F — at five frets a cent: the set's mean cost with each song given its own tuning, with one tuning for the set, and on equal-tempered frets, with the shape the set's tuning is exact for above each point. 1 key: own 5.17, set 5.17 (C), frets 7.60; 2 keys: own 5.27, set 5.27 (C), frets 7.67; 3 keys: own 5.27, set 5.43 (C), frets 7.54; 4 keys: own 5.01, set 5.33 (D), frets 7.39; 5 keys: own 5.14, set 5.36 (D), frets 7.43; 6 keys: own 5.23, set 5.41 (D), frets 7.46; 7 keys: own 5.29, set 5.47 (D), frets 7.48; 8 keys: own 5.34, set 5.49 (D), frets 7.49; 9 keys: own 5.38, set 5.51 (D), frets 7.51; 10 keys: own 5.41, set 5.54 (D), frets 7.52; 11 keys: own 5.43, set 5.55 (D), frets 7.53; 12 keys: own 5.45, set 5.57 (D), frets 7.51. The set never stops sharing a shape: up to three keys it is the C shape's, and from four to all twelve the D shape's.
Fig. 1 The I–vi–IV–V ground in sets of keys added one at a time round the circle of fifths from C, at five frets a cent: the set’s mean cost with each song given its own tuning (dashed), with one tuning for the set, and on equal-tempered frets, with the shape the set’s tuning is exact for above each point. C for one to three keys; D from four to twelve. The set’s cost rises from 5.17 to 5.57, its own-tuning cost from 5.17 to 5.45, and the frets stay near 7.5.

The same search, one key at a time

The search is the fifteenth essay’s. Every song in the set is routed at the same exchange rate under the current tuning — each chord given the fingering that, with the moves between chords, costs least in cents from just plus frets moved over the rate — and the six strings are then retuned for the union of all the songs’ chords, each weighted by its share of its song and each song by its share of the evening. The two steps repeat until no route changes, from eight starting tunings: the five placed shape tunings, the frets and two seeded random ones. Each set’s tuning is compared with retuning for every song, which is what the still-hand essay’s single-song search gives, and with equal-tempered frets.

The sets are grown round the circle of fifths from C: C, then G, D, A, E, B, F♯, D♭, A♭, E♭, B♭ and F, the order in which a guitarist’s keys get progressively less open. The exchange rate is held at five frets a cent, the figure tuned for one shape, a cent is worth five frets measured for a typical player.

The C shape, then the D shape, and never nothing

With one key, C, the set is one song, and its tuning is the C shape’s with its silent low string placed — the tuning a silent string tunes the minor chord found best for this ground on its own. G added changes nothing: the ground in G is also played mostly in the C shape at a moderate valuation, and the two songs want the same tuning. D added still leaves the C shape’s tuning best, but now at a cost: 0.16 over retuning for each song, because the ground in D would rather have something else.

At four keys, with A added, the answer changes. The set’s tuning becomes exact for the D shape, and from there to all twelve keys it stays exact for the D shape. The prediction that a set spanning many keys would end up tuned for nothing — as the still hand’s route did, with every string within two cents of its fret — does not come true at any span. The set never stops sharing a shape, because every key’s route contains the D shape.

Every key's route plays its chords in the D shape at least three times. Under the tuning found for five keys at five frets a cent, the route each of the twelve keys' ground takes: the shape of each of its 8 chords, the first time round and the second. C: D, E minor, C, D, G, E minor, C, D; G: D, E minor, C, D, D, E minor, C, D; D: D, A minor, D, D, G, E minor, C, D; A: D, E minor, D, D, A, E minor, D, D; E: D, A minor, D, D, G, E minor, C, D; B: D, E minor, C, D, G, E minor, C, D; F♯: D, A minor, D, D, G, E minor, C, D; D♭: D, E minor, C, D, G, E minor, C, D; A♭: D, E minor, C, D, G, E minor, C, D; E♭: D, A minor, D, D, G, E minor, C, D; B♭: D, E minor, C, D, G, E minor, C, D; F: D, A minor, D, D, G, E minor, C, D. The D shape, which has no open string and moves anywhere on the neck, is the one shape every route uses, three to five times in its eight chords.
Fig. 2 Under the tuning found for five keys at five frets a cent, the route each of the twelve keys’ ground takes, twice round: the shape of each chord, with the D shape highlighted. Every key plays three to five of its eight chords in the D shape; A major plays five.

The routes show why. The D shape has no open string in it, so it can be played at any fret, and at a moderate valuation the routes use it wherever it keeps the hand near the chords around it. Under the five-key tuning, every key’s route plays at least three of its eight chords in the D shape, and A major five. No other shape is in every route. The C shape is in the routes of the keys where open strings are useful and disappears from the others; the E-minor and A-minor shapes serve the vi chord in some keys and not in others. A tuning must make some shape exact to be worth anything over the frets — tune a guitar for the shape of its key’s open chord found that a player who keeps every chord in the tuned shape plays exactly in tune while the hand travels — and the only shape every key can use is the one without an open string. The minor chords cannot share it: a tuned guitar has no minor chord in tune, because every minor shape disagrees with every major shape about some pair of strings, so the vi chord in each route is left to whichever minor shape is nearest.

The tuning settles

From five keys on, adding keys does not move the tuning. The offsets from the frets of the set's tuning, string by string with the low E pinned, for sets of 1, 3, 4, 5, 8 and 12 keys round the circle of fifths at five frets a cent. 1 key (C): low E +0.0, A +13.7, D +0.0, G +15.6, B +13.7, high E +0.0. 3 keys (C): low E +0.0, A +13.7, D +0.0, G +15.6, B +13.7, high E +0.0. 4 keys (D): low E +0.0, A +0.1, D +0.1, G +2.0, B +0.1, high E −13.6. 5 keys (D): low E +0.0, A +2.0, D +2.0, G +4.0, B +2.0, high E −11.7. 8 keys (D): low E +0.0, A +2.0, D +2.0, G +3.9, B +2.0, high E −11.7. 12 keys (D): low E +0.0, A +2.0, D +2.0, G +3.9, B +2.0, high E −11.7. The C shape's tuning raises the A and B strings and the G string by about fourteen to sixteen cents; the D shape's leaves them near their frets and lowers the high E by nearly twelve.
Fig. 3 The set’s tuning, string by string from the low E, for sets of 1, 3, 4, 5, 8 and 12 keys. With one to three keys the C shape’s tuning raises the A and B strings 13.7 cents and the G string 15.6. With four keys the D shape’s tuning leaves the A, D and B strings near their frets and lowers the high E 13.6. From five keys on it is A +2.0, D +2.0, G +3.9, B +2.0 and high E −11.7, to within a fifth of a cent.

The offsets make the change of shape concrete. The C shape’s tuning raises the A string 13.7 cents, the G string 15.6 and the B string 13.7 — the just third and fifth of the C shape’s major chord, measured against the low E and the D string. Neither tuning is tuning by ear in the usual sense: a guitar tuned by harmonics hides a comma, because standard tuning’s four fourths and a third, tuned pure, close a comma short of two octaves, and both shape tunings decide where that comma goes. The D shape’s tuning leaves those strings within four cents of their frets and lowers the high E about twelve cents, a just major third below where the frets put it, which is the D shape’s own third.

At four keys the D tuning’s silent strings, the low E and A that the D shape does not play, sit exactly on their frets. From five keys on they move two cents up, placed for the chords of the added keys that do sound them. After that nothing moves. The tunings for five, eight and twelve keys agree on every string to within a fifth of a cent. Past five keys, adding keys to a set does not change what the guitar should be tuned to.

Which songs the tuning serves

The converse question can now be answered directly: take the five-key tuning and play the ground in every key under it.

The tuning chosen for five keys serves the other seven better than it serves C and G. The tuning found for the ground in C, G, D, A and E at five frets a cent, used for the ground in all twelve keys: what each key gives up against its own best tuning, in cents plus frets over the rate, keys in the set dark. C (in the set): 0.497, against the frets' 2.44, 3 chords made exact; G (in the set): 0.332, against the frets' 2.38, 4 chords made exact; D (in the set): 0.097, against the frets' 1.98, 4 chords made exact; A (in the set): 0.085, against the frets' 2.72, 5 chords made exact; E (in the set): 0.097, against the frets' 1.91, 4 chords made exact; B: 0.002, against the frets' 1.94, 3 chords made exact; F♯: 0.097, against the frets' 1.91, 4 chords made exact; D♭: 0.002, against the frets' 1.94, 3 chords made exact; A♭: 0.002, against the frets' 1.96, 3 chords made exact; E♭: 0.097, against the frets' 1.91, 4 chords made exact; B♭: 0.002, against the frets' 1.94, 3 chords made exact; F: 0.097, against the frets' 1.66, 4 chords made exact. The keys it serves worst are C and G, whose own best tuning is the C shape's; B, D♭, A♭ and B♭, none of them in the set, give up two thousandths.
Fig. 4 The tuning found for C, G, D, A and E at five frets a cent, used for the ground in all twelve keys: what each key gives up against its own best tuning, keys in the set dark. C gives up 0.50 and G 0.33; D, A, E, F♯, E♭ and F about a tenth; B, D♭, A♭ and B♭ two thousandths. Every key is two cents or more better off than on the frets.

The keys it serves worst are C and G, which were in the set. C gives up half a cent against its own best tuning and G a third. The keys it serves best are B, D♭, A♭ and B♭, none of which was in the set, which give up two thousandths of a cent — nothing a player could hear or measure. The rest, D, A, E, F♯, E♭ and F, give up about a tenth.

The reason is which shape each key’s own tuning is for. C and G are the open keys: their best routes at this valuation use the C shape’s open chords, and their own best tuning is the C shape’s, so a D-shape tuning is a compromise for them. The keys a guitarist plays in barre shapes — B, D♭, A♭, B♭ — have routes built almost entirely of movable shapes, and their own best tuning already is the D shape’s. For them the set’s tuning is their tuning.

So the answer to “which songs does a given tuning serve best” is not “the songs it was chosen for”. A tuning serves best the songs whose own best tuning is for the same shape, and the D-shape tuning is every barred key’s own. A set chosen from the open keys is served worst by the tuning the set itself chose, because it was the open keys that pulled against it.

That gives a player a rule that does not need the search. An evening in the open keys alone — C and G — wants the C shape’s tuning, and loses nothing against retuning for each song. Add D and the C shape’s tuning still wins, at a sixth of a cent. Add A, or any key further round the circle, and the D shape’s tuning wins and keeps winning. So the choice is between two tunings, not twelve, and it is made by one question: does the evening include a key in which the guitarist barres more than they play open? If it does, the D-shape tuning; if the evening is all open-position songs in C and G, the C-shape tuning. Nothing in between is ever best at this valuation, and the frets are never best at all.

Not retuning costs less the more keys there are

Not retuning costs most for a set of four keys, and less the more keys it spans. For sets of the ground in one to twelve keys round the circle of fifths from C, at five frets a cent: what one tuning for the set costs over retuning for every song, and what it gains over the frets. 1: costs 0.000, gains 2.44; 2: costs 0.000, gains 2.41; 3: costs 0.159, gains 2.11; 4: costs 0.322, gains 2.06; 5: costs 0.222, gains 2.06; 6: costs 0.184, gains 2.05; 7: costs 0.171, gains 2.01; 8: costs 0.150, gains 2.00; 9: costs 0.133, gains 2.00; 10: costs 0.129, gains 1.98; 11: costs 0.118, gains 1.98; 12: costs 0.116, gains 1.94. The cost peaks at 4 keys, 0.32, where the set has just left the C shape's keys, and falls as keys whose own tuning is already the D shape's are added.
Fig. 5 For sets of one to twelve keys at five frets a cent: what one tuning for the set costs over retuning for every song, and what it gains over the frets. The cost is nothing at one and two keys, 0.16 at three, 0.32 at four, 0.22 at five, and falls to 0.12 at twelve. The gain over the frets stays between 1.9 and 2.4.

The cost of tuning once for the whole set, rather than for each song, is largest at four keys — 0.32 of a cent — where the set has just left the C shape’s keys and still contains two of them. After that it falls, to 0.22 at five keys, 0.15 at eight and 0.12 at twelve. Each key added round the circle past E is a barred key whose own tuning is the D shape’s, so it adds a song the set’s tuning serves perfectly, and the set’s average loss goes down. Meanwhile the gain over the frets stays between 1.9 and 2.4 cents at every span.

This answers the question about the old practice. An evening split into two halves by key, with the guitar retuned at the interval, is not justified by the keys. A set of all twelve keys loses an eighth of a cent against retuning for every song, and three different five-key halves of an evening want the same tuning to a fifth of a cent.

Three halves of an evening want the same tuning. Three sets of the ground in five keys, from different parts of the circle of fifths, each tuned for at five frets a cent: the set's mean with each song retuned, with one tuning for the set, and on the frets, and the tuning's offsets. C, G, D, A, E: own 5.143, set 5.364, frets 7.43; offsets 0.0, 2.0, 2.0, 4.0, 2.0, -11.7. B, F♯, D♭, A♭, E♭: own 5.671, set 5.709, frets 7.61; offsets 0.0, 2.0, 2.0, 3.9, 2.0, -11.7. F, B♭, E♭, A♭, D♭: own 5.671, set 5.709, frets 7.56; offsets 0.0, 2.0, 2.0, 3.9, 2.0, -11.7. All three are exact for the D shape with the same offsets to a fifth of a cent, so an evening split into halves by key would tune both halves the same.
Fig. 6 Three five-key sets from different parts of the circle — C, G, D, A, E; B, F♯, D♭, A♭, E♭; and F, B♭, E♭, A♭, D♭ — each tuned for at five frets a cent: the set’s mean with each song retuned, with one tuning for the set, and on the frets. All three tunings are exact for the D shape with the same offsets; the two flat-side sets lose 0.04 against retuning, the sharp-side set 0.22.

The three halves are the C-to-E set of the fifteenth essay, the next five keys round the circle, and the five flat keys. All three want the D-shape tuning with offsets identical to a fifth of a cent. The flat-side sets lose four hundredths of a cent against retuning for every song, because their keys are barred keys; the sharp-side set loses a fifth, because it contains C and G. If a guitarist retunes between halves of an evening, on this arithmetic it is not because the second half is in different keys. It is because the strings have moved.

The decision that matters is the frets

The numbers put the two decisions a guitarist could make about tuning on one scale. Tuning once for an evening rather than once per song costs between nothing and a third of a cent, depending on the span, and an eighth of a cent for all twelve keys. Tuning to the set’s D-shape tuning rather than leaving the strings on the frets gains between 1.9 and 2.4 cents, at every span. The second decision is worth ten to twenty times the first. At twelve keys it is seventeen times: 1.94 cents gained over the frets against 0.12 lost to not retuning.

So for a player choosing how to tune for an evening, the question is not how many tunings the evening needs. It needs one. The question is whether that one is the frets or the D shape’s, and on this arithmetic the D shape’s is worth about two units of the combined cost — two cents of intonation, or the equivalent in hand movement — in every key. That is not large on its own — the chord a tuning gives up is a fingering found single chords abandoned by thirteen cents where a tuning cannot serve them — but it is spread over every chord of every song, and it is paid for by one adjustment made before the evening starts: the high E string lowered about twelve cents and the three middle strings raised two to four.

The cost measure could be argued with. Error counted in beats rather than cents weights a mistuned third more heavily than a mistuned octave, and counting beats moves the price of a chord, not the tuning found that for single pieces the best tuning came back unchanged when it was counted that way. That recount has not been run on the sets here. The span result rests on which shape every route contains, which is a fact about fingerings rather than about how error is counted, so it would be expected to survive it.

The model the search rests on

The tuning search, the fingering routes and the costs are the earlier essays’: five chord shapes from the CAGED family and the E-minor and A-minor shapes, each playable wherever its fingering fits, a chord’s error measured as the mean departure from just intonation over its sounding pairs of strings, and hand movement measured in frets. The ground is I–vi–IV–V twice round, eight chords of equal length; a song in each key is that ground transposed. The exchange rate is five frets a cent throughout.

What the search leaves out

One ground. Every song is the same four chords. Real sets mix grounds — the fifteenth essay’s mixed set added I–vi–ii–V — and songs with chords outside the ground, a borrowed iv or a secondary dominant, whose best shapes may not be the D shape. A set containing many such songs could lose the shared shape the pure ground always keeps.

One valuation. At fifty frets a cent the fifteenth essay found every set’s tuning to be the C shape’s, and at one or two frets a cent a mixed set tuned for nothing. The span result is at five frets a cent, the typical player’s valuation, and it is not claimed at others.

Stable strings. The model’s strings stay where they are tuned. The whole of the argument about halves of an evening rests on the one thing it does not model, which is that real strings drift with temperature, humidity and playing, and a tuning set at the start of an evening is not the tuning at its end.

What the picture cannot show

Whether players do this. The D-shape tuning lowers the high E string by about twelve cents, which a guitarist tuning by ear to the frets would never do. Whether any players, finding their D-shape chords sweeter with the high E lowered, arrive at something like it by habit is not a question the arithmetic can answer.

The listener. The costs are cents from just and frets moved, an intonation measure and an effort measure. Neither says how a listener would hear the difference between a set’s tuning and the frets, which is two cents on average and up to about a quarter of a semitone on the high E.

The open strings’ own sound. An open string rings longer and brighter than a stopped one, and a player who chooses the open keys often chooses them for that. The model prices intonation and hand movement and nothing else, so it cannot say what a set in C and G gives up in resonance by being played in barre shapes under a D-shape tuning — only that, measured in cents and frets, the tuning serves those keys least well of all twelve.

Still open: songs outside the ground

The span result depends on every song sharing a ground whose routes all contain the D shape. The natural test adds songs that break it — a minor-key song whose i and iv are best in the E-minor and A-minor shapes, a blues whose I7 wants a shape of its own, a tuning is right for some chords and wrong for the rest and the chord it gives up is a fingering. The computation adds them to a twelve-key set one at a time and asks how many a set can hold before its tuning leaves the D shape, which would say whether the shape every key shares survives a real evening’s repertoire or only the ground’s.

Part 16 of 26

One essay in the series on open strings. The essays either side of this one:

What links here

Essays that reach for this one mid-argument — the half of a link its own author cannot write down, the 8 sharing most with it of 9.

What this makes readable

Essays that declare this one a prerequisite.

The objects named here

The third way in, after the field and the series: the things themselves, and every essay that touches each one.

Equal temperamentIntonationJust intonationOpen stringOptimisationVoicing