Pitch and tuning

Counting beats moves the price of a chord, not the tuning

The search that found a guitar piece's best tuning counted every cent of error alike, and the obvious objection is that a cent of a third beats faster than a cent of an octave. Counted in beats instead, every piece gets exactly the same tuning back. What changes is how much of the piece the abandoned chord has to hold before it is rescued — thirty beats instead of forty-four, arriving in three steps instead of one.

Assumes: A tuning is right for some chords and wrong for the rest · Every partial beats at its own rate

A tuning is right for some chords and wrong for the rest searched all six strings of a guitar for the tuning that brings a short piece closest to just intonation, and found something that is not a compromise. The piece in standard tuning — an E major chord, an A major chord barred at the fifth fret, and a G major chord in its open shape — is best served by a tuning that makes the E and the A chords exactly just and leaves the G chord 13.29 cents out, worse than equal temperament leaves it.

That search counted every cent alike, and the essay said plainly that this was the assumption with the most in it. A cent of error on an octave and a cent of error on a major third are not the same event to a listener. What a listener hears in a mistuned interval is a beat, and the arithmetic a tuner works in says the beat rate is the departure in cents times the frequency at which the two notes’ partials coincide, divided by 1731. An octave’s partials first meet at the lower note’s second harmonic, a fifth’s at its third, a major third’s at its fifth. So a cent on a third beats two and a half times as fast as a cent on an octave with the same bass, and weighting each interval by its beat rate is a change of one line in the cost.

The essay predicted what the change would do: the narrow octave the optimum puts inside the G chord would be heard as a slow wobble, the weighting would refuse the trade, and the abandoned chord would come back. None of that happens. The tuning does not move by a hundredth of a cent. What moves is somewhere else, and it is the more useful thing to know.

Counting beats finds the tunings counting cents found. The three pieces searched twice, once for the least mean departure in cents and once for the least mean beat rate, with every interval's beat computed at the partial where its two notes coincide. For each piece, its mean beat rate on the frets, at the tuning the cents search found, and at the tuning the beats search found. open G blues: 3.10, 0.000 and 0.000 beats a second, with the two optima never more than 0.00 cents apart on any string; D A D G A D air: 0.87, 0.265 and 0.265 beats a second, with the two optima never more than 0.00 cents apart on any string; standard song: 3.40, 1.056 and 1.056 beats a second, with the two optima never more than 0.00 cents apart on any string. Changing what is counted changed nothing a player would set: a beat rate is a departure times a positive weight, and a weighted sum of absolute departures has its minimum on the same corner whatever the weights, until one of them crosses a threshold.
Fig. 1 The three pieces searched twice — once for the least mean departure in cents, once for the least mean beat rate — and scored on the beat rate. The open G blues and the D A D G A D air get their named tunings back either way, and the song in standard tuning gets the same unnamed tuning back either way: the two optima are the same six offsets on every piece.

Six offsets that do not care what is counted

On every piece the beat-counted optimum is the cents-counted optimum.

The open G blues costs 3.10 beats a second on the frets and nothing at all on its own tuning, because every interval it plays is exactly just and a just interval does not beat. The D A D G A D air costs 0.87 on the frets and 0.265 at its optimum, which is the same tuning the cents search found; its residue is the handful of fretted notes inside shapes that also ring open strings, and no peg reaches a fret. The song in standard tuning costs 3.40 beats a second on the frets and 1.056 at its optimum, and the optimum is E, A, D, G, B, E at 0, +1.96, 0, −13.68, +1.96 and 0 cents — the tuning the earlier essay printed, to the second decimal place on every string.

The reason is structural, and it is the same reason the earlier essay gave for why the optimum never shares its error out. The cents cost is a weighted sum of absolute departures, each of which is a linear function of the six offsets. A beat rate is that same absolute departure multiplied by a positive number — the coincident partial’s frequency over 1731 — and that number depends on the sounding pitch only through a factor of 2 raised to the offset, which over fifteen cents is a change of under one per cent. So counting beats replaces one set of weights with another, and a weighted sum of absolute values has its minimum at a corner of its surface, where several departures are exactly zero. Reweighting a corner does not move it. It can only change which corner is lowest, and a change of that kind happens all at once, at a threshold, not by a drift.

At the piece’s own proportions — the E chord for thirty-two beats, the A chord for twelve, the G chord for eight — the threshold is not crossed, and the corner that was cheapest in cents is cheapest in beats. The G chord is still sacrificed, and it now has a price in the unit a player hears: 6.86 beats a second, averaged over its fifteen intervals.

The octave was never the problem

The earlier essay named the narrow octave as the audible cost of the trade, because it was the interval a guitarist would recognise — a G on the bottom string at the third fret against the open G string thirteen and a half cents flat. Taken apart interval by interval, the chord says the octave is the mildest thing wrong with it.

Where the abandoned chord actually beats. The G major, open chord of the piece in standard tuning at the tuning that costs the piece least, taken apart into its 15 intervals. For each, the left bar is how many cents it sits from just and the right bar is the beat rate that makes, which is the departure times the frequency at which the two notes' partials coincide. Sorted by beat rate: B2–G4, a minor sixth + 1 oct, -15.64 cents and 17.79 beats a second; B3–G4, a minor sixth, -15.64 cents and 17.79 beats a second; B2–G3, a minor sixth, -29.33 cents and 16.61 beats a second; G3–B3, a major third, 29.33 cents and 16.61 beats a second; B2–D3, a minor third, -17.60 cents and 7.50 beats a second; D3–B3, a major sixth, 17.60 cents and 7.50 beats a second; G2–B2, a major third, 15.64 cents and 4.45 beats a second; G2–B3, a major third + 1 oct, 15.64 cents and 4.45 beats a second; D3–G3, a fourth, -11.73 cents and 3.97 beats a second; G3–G4, an octave, 13.68 cents and 3.09 beats a second; G2–G3, an octave, -13.68 cents and 1.54 beats a second; D3–G4, a fourth + 1 oct, 1.96 cents and 1.33 beats a second; G2–D3, a fifth, -1.96 cents and 0.33 beats a second; G2–G4, a double octave, 0.00 cents and 0.00 beats a second; B2–B3, an octave, 0.00 cents and 0.00 beats a second. The narrow octave the earlier count singled out beats at 3.09 a second; the fastest pair beats 5.8 times as fast, because it meets at its 16th partial rather than its 2nd.
Fig. 2 The G chord at the piece’s cheapest tuning, taken apart into its fifteen intervals and sorted by beat rate. The left bars are cents from just and the right bars are beats a second, with the partial at which each pair’s notes coincide. The narrow octave G2–G3 beats at a second and a half; the minor sixths from B to G beat at nearly eighteen.

The low octave, G2 against G3, is 13.68 cents narrow and beats at 1.54 a second, which is exactly the wobble the earlier essay described and slower than its estimate of two and a half. The upper octave, G3 against the G on the top string, beats at 3.09. Neither is where the chord is loud with beating. The fastest pairs are the two minor sixths from B up to G, at 17.79 beats a second, and the major third G3–B3 at 16.61 — because flattening the G string by 13.68 cents while the B string is sharpened by 1.96 widens that third to 29.33 cents, and a third’s partials meet at the fifth harmonic of G3, near a thousand hertz.

So a cent-counting search and a beat-counting one disagree completely about what the G chord’s problem is, and they agree completely about the tuning. That is not a coincidence to be explained away; it is the corner property again. The G chord’s intervals are not individually negotiable. Every one of them is a difference between two strings’ offsets, and the same offsets are set to make the E and A chords exact, so the whole chord is dragged along by a decision made elsewhere.

There is a further consequence for the reading of the eighteen-beat pairs. A beat at seventeen or eighteen cycles a second is past the rate at which a beat is heard as a beat at all and inside the range where it is heard as roughness instead — the sound goes sour rather than wobbling. What a listener would report about the optimum’s G chord is not “the octave wavers” but “the chord is harsh”, and the harshness is in its thirds and sixths.

A staircase where there was a cliff

What the change of units does move is the answer to the question the earlier essay asked last: how much of the piece would the G chord have to hold before the tuning gave it back?

Counted in beats, the abandoned chord comes back sooner and by steps. The piece in standard tuning with its G major, open chord given more and more of the piece, searched twice: once minimising the mean departure from just in cents, once minimising the mean beat rate. The vertical axis is how far that chord sits from just at each optimum. Counted in cents it stays at 13.29 cents until it holds exactly 44 beats — the same as the rest of the piece — and then drops to zero in one step. Counted in beats it drops at 30.4 beats to 4.96, then at 47.4 beats to 3.91, then at 73.1 beats to 0.00 cents. At the piece's own 8 beats the two counts agree exactly: the corner does not move, and what the beats change is where the steps are.
Fig. 3 The G chord given more and more of the piece, and searched each time in cents and in beats; the vertical axis is how far the G chord is left from just. Counted in cents it holds at 13.29 and drops to exact just intonation in a single step at forty-four beats, the rest of the piece. Counted in beats it drops at 30.4 beats to 4.96 cents, at 47.4 to 3.91, and at 73.1 to nothing.

Counted in cents, the answer was a cliff. The G chord is abandoned at 13.29 cents until it sounds for exactly as long as the E and A chords together — forty-four beats — and past that point it is exactly just and the other two are abandoned instead. There is nothing in between: at forty-four itself every tuning on a whole flat face of the surface costs the same.

Counted in beats, the answer is a staircase with three treads. The G chord is rescued partially at 30.4 beats, left 4.96 cents from just while the E and A chords give up 8.34 each; further at 47.4 beats, to 3.91 cents; and completely only at 73.1 beats, by which point it holds more of the piece than both other chords together by a wide margin. The first step comes fourteen beats earlier than the cents cliff did, and the last comes twenty-nine beats later.

The thresholds are computed exactly rather than read off the sweep. At each corner the piece’s cost is the rest of the piece’s weighted departure plus the G chord’s own times its beats, all over the total, so two corners cost the same where one straight line crosses another, and each crossing is a ratio of two numbers the corners already have. The dots on the figure are independent searches at eleven weights, and the figure is drawn only if every one of them lands on the envelope the crossings predict.

Why the cents version had only one step

The difference between a cliff and a staircase is a fact about conservation, and it can be seen by drawing each corner’s cost as a line against the G chord’s weight.

Four corners, one crossing in cents and a fan in beats. The piece in standard tuning has 4 tunings its search stops at as G major, open is given more of the piece; each is drawn as a line giving what the whole piece costs there, against how many beats G major, open holds. The number at the right of each line is how far G major, open sits from just at that corner, in cents. Counted in cents every line passes through one point, at 44 beats — the rest of the piece — where each corner costs 6.648 cents, so the chord is bought back in a single jump. Counted in beats the same corners cost 3.432, 2.651, 2.667, 3.134 beats a second at that point: the lines have fanned out, the lowest of them changes three times, and each change is a step on the staircase.
Fig. 4 The four tunings the beat-counted search stops at as the G chord’s weight grows, each drawn as the whole piece’s cost against that weight; the number at each line’s end is how far the G chord sits from just there. On the left, counted in cents, all four lines pass through one point at forty-four beats. On the right, counted in beats, the same four lines have fanned apart and their lower edge changes three times.

In cents, every corner’s line passes through a single point at forty-four beats, where each costs 6.648 cents. That is not luck. At each of the four corners the E and A chords’ mean departure plus the G chord’s mean departure is exactly 13.29: 0 and 13.29, 8.34 and 4.95, 9.38 and 3.91, 13.29 and 0. The conflict between the two groups of chords is a fixed quantity, and every corner is a different division of it — the same bookkeeping where to hide the comma describes for a keyboard, done on six strings instead of twelve keys. With the two groups weighted equally, every division costs the same, so the envelope has one crossing and the rescue is one step.

In beats, a cent is worth a different number of beats depending on which intervals carry it. Moving error off the G chord’s thirds, which coincide near a kilohertz, and onto the E chord’s intervals, several of which coincide lower, converts the same cents into fewer beats — and at forty-four beats the four corners cost 3.432, 2.651, 2.667 and 3.134 beats a second rather than one common number. The lines have fanned, the lowest of them changes hands three times, and each change is a tread of the staircase.

The general statement is worth having because it applies to any tuning problem with this shape. A weighting that is proportional to cents moves thresholds and never moves an optimum between them. A weighting that converts cents at different rates on different intervals also splits a threshold into several, because it breaks the conservation that made every division of a comma cost the same.

A search that has become a proof

The earlier essay ended its method with a sentence it could not improve on: the search was the best of seventeen descents and forty random restarts never beat it, which is evidence rather than an argument. The argument turns out to be cheap.

Every just interval a chord shape puts between two strings is satisfied exactly on a flat surface in the space of offsets — the set where one string’s offset minus the other’s equals a constant. The cents cost is a weighted sum of distances to those surfaces, so it is flat between them and its minimum lies at a point where enough of them meet to pin all five free strings. Those points can be listed.

Every corner of the tuning surface, and the lowest of them. A just interval between two strings holds exactly on a flat surface in the space of six string offsets, and the cost of a piece is a weighted sum of distances to those surfaces, so its lowest point is at a corner where five of them meet. Each curve is every such corner of one piece, sorted by what the piece costs there in cents. open G blues: 15 distinct just-interval surfaces, 1 distinct corner, the lowest at 0.0000 cents against the descent's 0.0000; D A D G A D air: 29 distinct just-interval surfaces, 2038 distinct corners, the lowest at 0.6028 cents against the descent's 0.6028; standard song: 28 distinct just-interval surfaces, 2050 distinct corners, the lowest at 2.0454 cents against the descent's 2.0462. The descent found the global minimum on all three, which the earlier search could only offer as evidence. The corner that costs least in beats a second is the same corner in every piece.
Fig. 5 Every such corner of each piece’s cost surface, sorted by what the piece costs there. The song in standard tuning has 28 distinct just-interval surfaces and 2,050 corners, the cheapest at 2.0454 cents; the air in D A D G A D has 2,038, the cheapest at 0.6028; the open G blues has a single corner and it costs nothing. The cheapest corner in beats is the same corner as in cents on all three.

The song in standard tuning has twenty-eight distinct surfaces, which meet five at a time in 2,050 distinct corners. The cheapest costs 2.0454 cents; the descent reported 2.0462, which is the same point on the descent’s finest grid. For the D A D G A D air the list is 2,038 corners and the minimum is 0.6028, again the descent’s answer. For the open G blues all fifteen surfaces pass through one point: the named tuning is the only corner there is. Evaluating every corner of every piece takes under a tenth of a second, which is less than one descent.

So the earlier result now stands as a theorem about these three pieces rather than a strong suspicion. The same list gives the beat-counted minimum, and it is at the same corner on all three — with one honest qualification. A beat rate’s weight moves by under one per cent as a string’s pitch moves, so the beat-counted surface is not exactly flat between corners, and the list proves the cheapest corner rather than the cheapest point. A departure from a corner shrinks the departure it moves away from by the same amount it grows the one it moves toward, and a one-per-cent change in their weights cannot make that trade profitable against the tens of per cent that separate the corners here — but that is an argument about these numbers, not a certificate.

Which computation produced the numbers

The pieces, the shapes and their durations are those of the earlier essay, stated as progressions rather than transcriptions and supporting a comparison between tunings rather than a claim about any repertoire.

Each interval’s beat rate is the magnitude of p times the lower note’s frequency times (2 raised to the departure over 1200, minus 1), where p is the numerator of the just ratio in lowest terms, with octaves folded in — so a tenth, 5:2, meets at the lower note’s fifth harmonic and a twelfth, 3:1, at its third. The lowest string’s frequency is read from its note name at A = 440. A chord’s cost is the mean over its sounding pairs; a piece’s is that mean weighted by beats. Nothing about the strength of a partial enters, which is the largest simplification and has its own section below.

Counting beats makes the descent stall more often. The piece in standard tuning, searched from every starting tuning twice, and each run's stopping place scored on one common scale — the piece's mean departure from just in cents — then sorted. Counting cents, 17 starts, 47 per cent arriving, the best at 2.046 cents and the worst at 5.74; Counting beats, 18 starts, 6 per cent arriving, the best at 2.046 cents and the worst at 9.03. The best of both is one tuning. A beat rate's weight moves slightly with the pitch of the note it sits on, so the surface is no longer exactly made of flat faces, and a descent one string at a time finds more places to stop that are not the bottom.
Fig. 6 The song in standard tuning searched from every starting tuning, once counting cents and once counting beats, with each run’s stopping place scored in cents so the two are comparable. Counting cents, 47 per cent of starts arrive at the optimum. Counting beats, only the start seeded with the cents optimum arrives, and the worst run stalls at 9.03 cents.

The search is the coordinate descent the earlier essay used, and counting beats makes it markedly worse. Of eighteen starts, the only one that arrived was the one handed the cents optimum as its starting point; the other seventeen stopped at corners of the beat-counted surface that are not its bottom, and the worst stopped at a tuning 9.03 cents from just. That is why the beat-counted results above are quoted from the corner list and the staircase thresholds from the corner lines, and why the descent is used only to find which corners the sweep reaches. A beat-counted search run alone, from its own starts, would have reported a tuning worse than equal temperament as the answer.

The partial that is not there

The weighting assumes every coincident partial is as strong as every other. The fastest beat in the G chord is between B2 and G4, meeting at B2’s sixteenth harmonic. A plucked guitar string’s sixteenth harmonic is a small fraction of its fundamental, and a beat has a depth that is set by the weaker of the two partials involved — a beat between a strong partial and a weak one barely modulates the sum at all. Weighting by rate alone makes the high coincidences count for most exactly where they are least audible. A weighting by rate and depth would pull the price of the G chord down, and because depth also varies by interval it would move the treads of the staircase again.

A beat faster than about fifteen a second is not counted, it is felt as roughness. Every partial beats at its own rate, and past the rate at which a listener can follow the fluctuation the percept changes kind. The cost here treats an eighteen-beat pair as six times worse than a three-beat one, and a listener would call the first harsh and the second wavering, which is not a ratio.

A strummed note decays. The beat rates are those of steady tones. A guitar’s upper partials die in a fraction of a second, so the high-coincidence beats are present only at the attack and the low ones outlast them; the ranking of pairs by rate is a ranking at the moment of the strum and not over the note.

What a count of beats cannot tell a player

Whether the tuning is settable. The optimum is unchanged, so this essay inherits the earlier one’s difficulty without adding to it: a G string set 13.68 cents flat is set by nulling the beat of the just third it makes against a fretted E-chord note, and whether a player can hear that beat against a decaying fretted note is a measurement nobody here has made.

Whether a partial rescue is worth anything. The staircase’s middle treads leave every chord between four and nine cents out — which is the neighbourhood of equal temperament’s own thirds, and possibly less pleasant than two perfect chords and one harsh one. Whether a listener prefers the error concentrated or spread is a preference, and minimising a mean has no opinion about preference.

And whether the chord is really what is being abandoned. The G chord is sacrificed under both counts at the piece’s own proportions, by a corner that is now proved to be the cheapest one there is. A search over offsets can only divide a conflict between the chords; it cannot say what the conflict is made of.

Still open: whether it is the chord or the shape that is given up

Under cents and under beats alike, the four corners are four divisions of one fixed quantity: 13.29 cents that belong either to the E and A chords or to the G chord. That quantity does not depend on how error is counted, which is why no weighting has removed it, and it does not look like a comma — it is smaller than the syntonic comma’s 21.51 and it is not spread round a chain.

It has a more concrete candidate. The E major chord and the A major chord barred at the fifth fret are one fingering: the barre chord is the open E shape moved up five frets. The G major chord is a different fingering altogether, putting its root on the bottom string and its octave on an open string. If the conflict is between two fingerings rather than between two chords — each asking the same pairs of strings for different intervals — then it should survive every possible way of counting error, it should vanish when the G chord is played in the E shape at the third fret, and a barred chord is exactly as pure as the open chord it copies would be not a curiosity about open tunings but the whole of the answer. That is a direct computation on the pairs of strings, and nothing in it needs a listener.

Part 8 of 9

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

The objects named here

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

BeatingEqual temperamentJust intonationOpen stringOptimisationTuning by ear