Pitch and tuning

A guitar tuned for a set is tuned for the D shape

Tune a guitar once for an evening of songs in five keys rather than once per song, and the tuning the set wants is not the compromise the single-song search predicted. At the valuation a typical player puts on a cent, it is exact for the D shape — the one fingering every key's route uses for some chord — with that shape's two silent strings placed for the set rather than for any song. Not retuning between songs costs a fifth of a cent. Only a set that mixes two grounds, played by a player who will not move, wants a tuning exact for nothing.

Assumes: A guitar tuned for a still hand is tuned for nothing · A silent string tunes the minor chord

A guitar tuned for a still hand is tuned for nothing found the best tuning for one ground in one key by alternating two searches: route the piece, choosing a fingering for every chord, then retune the six strings for the chords on that route, and repeat until neither changes. The answer depended on how much hand movement the player will trade for a cent of intonation. At the most-in-tune end it was one major shape’s tuning with its silent string placed. In the middle it was sometimes a minor shape’s. For a player who will not move at all, it was a tuning exact for no chord whatever, every string within two cents of its fret.

That essay’s closing section pointed out that nobody retunes between songs. The tuning a player would actually choose is the one that serves a set — several songs in several keys, each played along the route the player’s valuation implies. It made a prediction as well. A set spanning several keys should not be able to share a single shape’s corner except at the most-in-tune end, so at a typical valuation the set’s best tuning should be a compromise exact for nothing, like the still hand’s. If so, equal temperament on the frets is the limit of tuning for everything, and the only question is how far from it a set can pull.

The prediction fails at the valuation it was made for. At five frets of movement to the cent, the figure tuned for one shape, a cent is worth five frets measured for a typical player, a set of five keys wants a tuning exact for the D shape. It pulls the high E string nearly twelve cents flat of its fret. A set shares a shape after all. It shares the one shape every key’s route happens to contain.

Tuned for a set of songs, a guitar serves the shape every key shares. The best single tuning for a set of songs, found by routing every song and retuning for all of their chords in turn, at five exchange rates between a cent of mean error and a fret of hand movement, for two sets: the I–vi–IV–V ground in five keys, and both grounds in five keys. For each: the chord shape it makes exact, and how much worse the set does than it would with each song given its own tuning, in cents. the I–vi–IV–V ground in five keys: 1, exact for D, 0.19 over retuning, 1.36 better than the frets; 2, exact for D, 0.18 over retuning, 1.37 better than the frets; 5, exact for D, 0.22 over retuning, 2.06 better than the frets; 12, exact for C, 0.10 over retuning, 3.62 better than the frets; 50, exact for C, 0.00 over retuning, 4.16 better than the frets. both grounds in five keys: 1, exact for nothing, 0.48 over retuning, 0.44 better than the frets; 2, exact for nothing, 0.48 over retuning, 0.44 better than the frets; 5, exact for D, 0.29 over retuning, 1.09 better than the frets; 12, exact for C, 0.14 over retuning, 2.35 better than the frets; 50, exact for C, 0.00 over retuning, 3.25 better than the frets. At the top of the range the set shares the C shape's tuning and loses nothing; in the middle it is exact for the D shape; only the mixed set at the bottom is exact for nothing.
Fig. 1 One tuning for a set of songs, at five exchange rates, for two sets: the I–vi–IV–V ground in five keys, and both it and the I–vi–ii–V ground in five keys. Each cell names the shape the set’s tuning makes exact, what not retuning between songs costs in cents, and how much worse equal-tempered frets would be. At 12 and 50 frets a cent both sets use the C shape’s tuning; at 5 both use the D shape’s; at 1 and 2 the single ground keeps the D shape and the mixed set is exact for nothing.

The same alternation, run on an evening

The search is the earlier essay’s, extended to more than one song. Every song in the set is routed under the current tuning at the same exchange rate. The tuning is then searched on the union of all their chords: each chord is weighted by its share of its song and each song by its share of the evening, which here is equal for every song. The routes are recomputed, and the two steps repeat until no song’s route changes. The objective is the set’s mean of each song’s cost: its mean departure from just intonation over the sounding pairs of strings of each chord, plus the frets its hand moves divided by the exchange rate.

The search starts from the five placed shape tunings, from equal temperament and from two seeded random tunings. The earlier essay used seventeen starts for one song. This uses eight for a set, because each alternation is now a tuning search over as many as eighty chords, and every figure checks that the result is no worse than any placed shape or the frets.

Two sets are run. The first is the I–vi–IV–V ground twice round in C, G, D, A and E major, five songs. The second adds the I–vi–ii–V ground in the same five keys, ten songs, half of them with two minor chords instead of one. For every song the earlier essay’s single-song search supplies the comparison: what that song would cost if the guitar were retuned just for it.

At the top, the set changes nothing

At fifty frets a cent, where a player will move anywhere for a hundredth of a cent, both sets settle on the C shape’s tuning with its low string placed — the tuning a silent string tunes the minor chord found best for the pop ground in every key, on its own. Every song in the set wants that tuning anyway, so tuning for the set costs exactly nothing over retuning for each song. At twelve frets a cent the answer is the same tuning, and the cost of not retuning is a tenth of a cent for the single ground and fourteen hundredths for the mixed set.

So the top of the range is the case the prediction allowed: every key can be played in the C shape, the tuning makes that shape exact, and the set is five copies of one song. The interesting part of the grid is below it.

One tuning for the set costs almost nothing over retuning for every song. For the I–vi–IV–V ground in five keys, the set's mean cost — cents from just plus frets moved over the exchange rate — with each song given its own best tuning, with one tuning found for the whole set, with the best of the five placed shape tunings, and on equal-tempered frets, against the rate. 1: own 6.56, set 6.75 (exact for D), placed 7.27 (D), frets 8.11; 2: own 6.16, set 6.34 (exact for D), placed 6.86 (D), frets 7.71; 5: own 5.14, set 5.36 (exact for D), placed 5.57 (D), frets 7.43; 12: own 3.16, set 3.27 (exact for C), placed 3.27 (C), frets 6.89; 50: own 1.97, set 1.97 (exact for C), placed 1.97 (C), frets 6.13.
Fig. 2 The I–vi–IV–V ground in five keys: the set’s mean cost with each song given its own tuning (dashed), with one tuning for the whole set, with the best of the placed shape tunings, and on equal-tempered frets. The set’s tuning sits a fifth of a cent above retuning at every rate from one to twelve and meets it at fifty; equal temperament is 1.4 to 4.2 cents worse.

In the middle, the shape every key contains

At five frets a cent the set’s tuning for the single ground is exact for the D shape. Its offsets from the frets, with the low E pinned, are A +2.0, D +2.0, G +4.0, B +2.0 and high E −11.7 cents. Measured from the D string, the four strings the D shape sounds sit exactly where the D shape’s own placed tuning puts them: G two cents up, B level, the high E 13.7 cents down, which is a just major third below the equal-tempered one. The set pulls the guitar that far from equal temperament, and it does so on one string.

Why the D shape and not one of the others is visible in the routes.

At 5 frets a cent, every song in the set puts some chord in the D shape. For the I–vi–IV–V ground in five keys at 5 frets a cent, the first time round each song's route under the set's single tuning: each chord's shape and fret, and its cents from just; and at the right, the song's cost under the set's tuning against its cost under its own. C major, I–vi–IV–V: I D at 10 0.0, vi E minor at 5 6.9, IV C at 5 5.5, V D at 5 0.0; 5.66 against its own 5.17. G major, I–vi–IV–V: I D at 5 0.0, vi E minor open 6.9, IV C open 5.5, V D open 0.0; 5.70 against its own 5.37. D major, I–vi–IV–V: I D open 0.0, vi A minor at 2 10.2, IV D at 5 0.0, V D at 7 0.0; 5.38 against its own 5.29. A major, I–vi–IV–V: I D at 7 0.0, vi E minor at 2 6.9, IV D open 0.0, V D at 2 0.0; 4.29 against its own 4.21. E major, I–vi–IV–V: I D at 2 0.0, vi A minor at 4 10.2, IV D at 7 0.0, V D at 9 0.0; 5.78 against its own 5.69. 5 of the 5 songs play at least one chord in the D shape, and those chords are within a twentieth of a cent of just.
Fig. 3 At five frets a cent, the first time round each song’s route under the set’s tuning: every chord’s shape, fret and cents from just, and at the right the song’s cost under the set’s tuning against its cost under its own. Every song plays at least two chords in the D shape — the C chord at the tenth fret in C major, the G at the fifth in both C and G, and so on — and each of those is within a twentieth of a cent of just.

The D shape moves up the neck without an 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. In C major the tonic is a D shape at the tenth fret and the dominant a D shape at the fifth. In G major the tonic is a D shape at the fifth and the dominant an open D. In D, A and E major the tonic, the subdominant or the dominant is. Every song in the set plays two or more of its four chords in the D shape, and no other shape recurs in every key. The tuning that serves the whole set is the tuning for the fingering the whole set shares, just as the route’s own tuning served the shape a single route repeated.

The cost of not retuning is small because the routes adapt to the tuning. Each song gives up between a tenth and half a cent against its own tuning, C major the most (5.66 against 5.17) and A major the least (4.29 against 4.21), and the set as a whole gives up 0.22. Against the frets the set gains 2.1 cents. A player who tuned the high E twelve cents flat for a set of five pop songs in five keys would, on this arithmetic, be two cents closer to just than on the frets, and within a fifth of a cent of retuning for every song.

The silent strings are placed for the set

The D shape leaves the low E and A strings silent, and a tuning that makes the D shape exact says nothing about them. So the placed D tuning of the earlier essays put them where the ground’s minor chord wanted them, at A +2.0 and D +8.5 measured from the low E. The set’s tuning puts them elsewhere: for the single ground, the A and D strings level with each other, two cents above the low E; for the mixed set, the A string back on its fret.

The set's tuning is the D shape's on the strings it sounds, and the set's own on the two it does not. The six strings' offsets from equal temperament, low E pinned, of the single tuning found for both grounds in five keys at two, five and fifty frets a cent, beside the D shape's placed tuning, dashed. 2: low E +0.0, A +2.0, D +2.0, G +3.9, B +2.0, high E +0.0, exact for nothing; 5: low E +0.0, A +0.0, D +2.0, G +4.0, B +2.0, high E −11.7, exact for D; 50: low E +0.0, A +13.7, D +0.0, G +15.6, B +13.7, high E +0.0, exact for C. The D shape's placed tuning: low E +0.0, A +2.0, D +8.5, G +10.5, B +8.5, high E −5.2. On the D, G, B and high E strings, measured from the D string, the five-frets tuning and the placed D tuning agree; they differ only on the two strings the D shape leaves silent.
Fig. 4 The offsets of the set’s tuning for both grounds in five keys, at two, five and fifty frets a cent, beside the D shape’s placed tuning, dashed. At five the set’s tuning and the placed D tuning agree on the D, G, B and high E strings measured from the D string, and differ on the two strings the D shape leaves silent. At two the high E is back on its fret and nothing is exact; at fifty it is the C shape’s tuning.

That placement is worth 0.20 cents over the placed D tuning for the single ground (5.36 against 5.57) and 0.06 for the mixed set. The silent strings are sounded by the set’s other chords: the minor chords, played as E minor and A minor shapes at around the fifth fret, and the subdominants played as C shapes. The set places them for all of those at once. A silent string tunes the minor chord found that a shape’s silent strings are free to serve another chord. Here they serve the set’s other chords, which within a single song is the same argument.

At the bottom, it depends on the set

Below five frets a cent the two sets part, and they part exactly where the earlier essay’s prediction was aimed.

For the single ground, the D shape survives all the way down. At one and two frets a cent the set’s tuning is the same D-exact tuning, A +2.0, D +2.0, G +3.9, B +2.0, high E −11.7, and the routes move very little: four frets in G major at one fret a cent, seven at two, none in the other keys. A player who stays put can still play the dominant in a D shape in every one of these keys, because the D shape reaches every key’s dominant within a few frets of where that key’s other chords lie. Not retuning costs 0.19 and 0.18 cents, and the frets would cost 1.4 more.

One tuning for the set costs almost nothing over retuning for every song. For both grounds in five keys, the set's mean cost — cents from just plus frets moved over the exchange rate — with each song given its own best tuning, with one tuning found for the whole set, with the best of the five placed shape tunings, and on equal-tempered frets, against the rate. 1: own 6.68, set 7.16 (exact for nothing), placed 7.68 (D), frets 7.60; 2: own 6.48, set 6.96 (exact for nothing), placed 7.27 (D), frets 7.40; 5: own 5.85, set 6.13 (exact for D), placed 6.19 (D), frets 7.23; 12: own 4.30, set 4.44 (exact for C), placed 4.44 (C), frets 6.79; 50: own 2.90, set 2.90 (exact for C), placed 2.90 (C), frets 6.15.
Fig. 5 Both grounds in five keys: the set’s mean cost with each song given its own tuning (dashed), with one tuning for the set, with the best placed shape, and on the frets. At one and two frets a cent the set’s tuning is exact for nothing and costs half a cent over retuning, while gaining less than half a cent over the frets; from five on it is exact for a shape and gains 1.1 to 3.3 cents.

For the mixed set, the prediction holds, and only there. At one and two frets a cent the set’s tuning is exact for nothing: the A, D, G and B strings are raised by two to four cents and both E strings stay on their frets. It is the still hand’s tuning again, equal temperament nudged in the direction the chords on the routes agree on. It gains only 0.44 cents over the frets and costs 0.48 over retuning for each song, the largest cost of the whole grid. The half of the set that is I–vi–ii–V has two minor chords where the pop ground has one. At a still hand those songs play their minor chords in the E minor and A minor shapes, whose own tunings ask something different of the high E from what the D shape asks; the search finds no placement of that string that serves both halves of the evening better than leaving it on its fret.

So the prediction was not wrong about the mechanism. A set can drive the best tuning to a compromise exact for nothing: it needs a player who will not move, and songs whose still-hand routes do not share a shape. It was wrong about how common that is. A typical player’s valuation is five frets a cent, and at five both sets share the D shape.

How far a set can pull from the frets

The earlier essay asked how far from equal temperament a set of songs can pull a guitar. The answer depends on the valuation and not much on the set.

At a typical valuation the set pulls one string 11.7 cents flat and three others two to four cents sharp, gaining one to two cents over the frets. At the most-in-tune end it pulls three strings 13.7 to 15.6 cents sharp, the C shape’s tuning, and gains three to four cents. Only at the bottom, and only for a set whose songs disagree, does it stay within four cents of the frets and gain less than half a cent.

Equal temperament is therefore not the limit of tuning for everything, as the prediction proposed. It is the limit of tuning for everything played without moving, and even then only when the songs do not share a shape. A set of pop songs in the five guitar keys still shares a shape at two frets a cent.

Why the D shape and not the C

It would be natural to expect the C shape, the most-in-tune corner at the top of the range, to win throughout. It does not, and the reason is the same one the earlier essay found in the middle of its range: a tuning serves the shape the route repeats, and the routes repeat different shapes at different valuations.

At fifty frets a cent a route will put every major chord of a key into the C shape, wherever on the neck that takes it, because intonation is worth any movement. The hand moves 18 to 49 frets a song to do it. At five frets a cent it will not: the C shape of a key’s dominant can lie several frets from its tonic, and the D shape, with its root on the fourth string and a compact grip, is usually closer to whatever came before. Among the five major shapes, the D shape is the only one that the moderate route uses in every key, so it is the only shape the whole set can be tuned for.

This is a fact about the shapes’ geometry on the neck, not about harmony, and it would change with the set. A set in flat keys, or of songs that live around the seventh fret, could share a different shape. What should carry over is the rule. A set is tuned for whichever shape its routes have in common, and the one it has in common is decided by the valuation.

What the grid says to a player

Put as advice, the grid is shorter than the argument behind it, and it overturns less of the earlier advice than it seems to.

Tune a guitar for the shape of its key’s open chord gave the advice for one song and a player who follows the tuning around the neck. That advice survives for a set only at its own valuation: at twelve frets a cent or more, a set of any of these songs is tuned for the C shape with its low string placed, and retuning between songs buys a tenth of a cent at most. A player at that end of the scale loses nothing by tuning once.

A player in the middle of the scale, the one the earlier measurements describe, should tune for the D shape and let the silent strings sit where the set’s other chords want them. A tuned guitar has no minor chord in tune still applies: the set’s minor chords sit seven to ten cents from just under this tuning, as they would under any major shape’s. What the set changes is which major shape is worth making exact, and the chord a tuning gives up is a fingering, not a chord — here the fingerings given up are every major chord the routes play outside the D shape.

A player at the bottom of the scale, with a set that mixes grounds, should nudge equal temperament and stop there. That is the only case in which the earlier search’s instinct, that a tuning is right for some chords and wrong for the rest and so should be right for none in particular, turns out to describe the best tuning. Even then it is worth less than half a cent, which is under any threshold a comma under the threshold would count as audible.

What the search leaves out

Equal weights. Every song here holds the same share of the evening. A set dominated by one key would drift toward that key’s own tuning, and the cost of not retuning, a fifth of a cent here, would fall for the dominant songs and rise for the others.

Two grounds, five keys. The sets are the two grounds the earlier essays used, in the five major keys a guitar favours. Minor keys, songs in flat keys, and songs with borrowed chords are all outside them, and each could change which shape the routes share.

Eight starts. The objective is piecewise linear and the routes are discrete, so the alternation can stop at a corner that is not the best. The figures check that it is never worse than any placed shape or the frets; they cannot check that nothing better exists. The single-song results it is compared against used seventeen starts.

The frets are exact, and so is five-limit. As throughout: every offset is against ideal equal-tempered frets, a real neck is off by a cent or two in places, and a chord’s error is its departure from five-limit just intonation over the pairs of strings it sounds. Whether a set tuned eleven cents flat on one string sounds better at a gig than one on the frets is a question the arithmetic cannot answer. A guitar cannot be in tune is the reminder that the frets were never exact.

Still open: the set a player chooses

Everything above takes the set as given and asks for its tuning. A player chooses the set too. The D-shape tuning is two cents better than the frets for five pop songs in five keys; whether it stays better for songs outside those keys is not computed here. The natural next computation turns the question over: 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? That needs the routes of many more grounds than two, and it would say whether the old practice of retuning between sets rather than songs — one tuning per half of the evening — is about the strings stretching or about the keys changing.

Part 15 of 26

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

Tuned for the whole route, the I–vi–ii–V ground wants no shape at all until the hand is allowed to move. The best tuning for the I–vi–ii–V ground twice round, found by routing and retuning in turn from seventeen starts, in five keys and at eight exchange rates between a cent of mean error and a fret of hand movement: what chord shape it makes exact, its cents from just and the frets its route moves. C major: 1, nothing (6.62 cents, 0 frets); 2, nothing (6.62 cents, 0 frets); 3, nothing (6.62 cents, 0 frets); 5, nothing (6.62 cents, 0 frets); 8, D (4.17 cents, 15 frets); 12, D (4.17 cents, 15 frets); 20, C (3.13 cents, 30 frets); 50, C (3.13 cents, 30 frets). D major: 1, nothing (6.52 cents, 0 frets); 2, nothing (6.52 cents, 0 frets); 3, nothing (6.52 cents, 0 frets); 5, nothing (6.52 cents, 0 frets); 8, D (4.17 cents, 15 frets); 12, D (4.17 cents, 15 frets); 20, C (3.13 cents, 33 frets); 50, C (3.13 cents, 33 frets). E major: 1, nothing (6.62 cents, 0 frets); 2, nothing (6.62 cents, 0 frets); 3, nothing (6.62 cents, 0 frets); 5, nothing (6.62 cents, 0 frets); 8, E (4.60 cents, 15 frets); 12, A minor (4.11 cents, 20 frets); 20, A minor (3.78 cents, 26 frets); 50, C (3.13 cents, 49 frets). G major: 1, nothing (7.71 cents, 0 frets); 2, nothing (7.71 cents, 0 frets); 3, nothing (7.71 cents, 0 frets); 5, E minor (4.71 cents, 9 frets); 8, E minor (4.27 cents, 12 frets); 12, D (3.45 cents, 21 frets); 20, C (3.13 cents, 27 frets); 50, C (3.13 cents, 27 frets). A major: 1, nothing (6.52 cents, 0 frets); 2, nothing (6.52 cents, 0 frets); 3, nothing (6.52 cents, 0 frets); 5, nothing (5.90 cents, 3 frets); 8, C (4.11 cents, 15 frets); 12, C (4.11 cents, 15 frets); 20, C (4.11 cents, 15 frets); 50, C (3.13 cents, 35 frets). At the bottom of the range the best tuning is exact for no chord and the hand does not move; at the top it is one major shape with its silent string placed. A guitar tuned for a still hand is tuned for nothing Part 14 — Tune a guitar for a whole route through a ground rather than for one chord shape — routing, retuning and routing again until neither changes — and the answer depends on how much the player is willing to move. Valuing intonation highly, the best tuning is one major shape with its silent string placed, as before. In the middle it can be exact for a minor shape instead, because the route that keeps the hand near the nut plays its minor chords open. And for a player who will not move at all, the best tuning is exact for no chord whatever: every string within two cents of its fret, beating equal temperament by a few tenths of a cent. It is the compromise the earlier search went looking for, and it lives where nobody looked. 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. One guitar tuning serves every key, and it is the D shape's Part 16 — 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.

What links here

Essays that reach for this one mid-argument — the half of a link its own author cannot write down.

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