Rhythm and metre

The frontier and the ruler

A Pareto frontier is a claim about two quantities and only one of them was measured. The locating cost is exact; the unevenness it was traded against was one choice among several. Under four different rulers the son clave stays on the frontier and the frontier shrinks from twenty-two of 273 patterns to seven, so its membership means more rather than less — but the bembe stops being dominated, the two claves stop being equally uneven, and one plausible measure destroys the result entirely.

Assumes: What the clave buys with its unevenness · The rotation the necklace cannot see

What the clave buys with its unevenness put every one of the 273 distinct cycles of five onsets in sixteen steps on a plane. One axis is how much of the cycle a listener has to hear before knowing where in it they are — a question that exists at all because a cycle has no beginning; the other is how uneven the pattern’s gaps are. The two objectives are opposed, so there is no best pattern — only a frontier of twenty-two, and the son clave is on it.

Half of that result is exact. The locating cost is a count: list the sixteen rotations, take every window of every length, group the identical ones, average the log of the group sizes. Nothing about it is a choice.

The other half is a choice, and its own last section says so:

Unevenness has more than one definition. The spread of the gaps is one; the sum of squared deviations from the perfectly even positions is another and ranks patterns differently; the site’s own maximal-evenness predicate is a third and is binary.

A frontier is a statement about two quantities. If one of them is a choice, then so is the frontier, and the question is which of the findings survive the choice being made differently.

Five rulers on 5 onsets in 16, and what each frontier keeps. The same 273 rotation classes and the same locating cost, with the frontier recomputed against five different definitions of unevenness. The frontier's size varies from 7 to 22 of 273, so how exclusive membership is depends on the ruler. Of the named timelines of this size, son clave is on 4 of the five, rumba clave is on 0 of the five, the bossa-nova pattern is on 4 of the five. The four rulers that measure how large a pattern's departure from even is rank the whole census together, at no worse than 0.89 between any two of them; the one that counts how many distinct gap lengths a pattern uses rather than how large its departures are is anti-correlated with them at -0.26, and its frontier holds none of the named timelines and does not hold the perfectly even pattern.
Fig. 1 The same 273 rotation classes and the same locating cost, with the frontier recomputed against five definitions of unevenness. The bars are how many patterns each frontier holds — twenty-two, twelve, seven, eight and eleven — so how exclusive membership is varies threefold with the ruler. The dots say which of the named timelines and the perfectly even pattern each frontier keeps. Four of the rulers keep the same three; the fifth keeps none of them.

Five rulers, and two of them are one

The five are not arbitrary. Each is in use somewhere in the literature on rhythm or on scales, and they fall into groups.

Two read the gaps between successive onsets. Their standard deviation is the one the published frontier uses. The range — the longest gap minus the shortest — is the crudest possible version of the same idea and is what the maximal-evenness predicate is built on: a pattern is maximally even exactly when that range is one.

Two read the positions rather than the gaps. The root-mean-square distance between each onset and where a perfectly even onset would fall is the obvious one. The other is the sum of the chord lengths between every pair of onsets placed on a circle, which a maximally even set provably maximises — so the deficit against that maximum is a measure of unevenness, and it is the one the theory of maximally even sets was originally stated with.

The fifth reads the variety of gap lengths: the entropy of the distribution of gaps, which is zero when every gap is the same and rises as more distinct lengths appear.

Ranked against one another over all 273 patterns, the first four agree closely. No two of them have a rank correlation below 0.888, and the two position-based ones agree at 0.998 — which is to say they are one measure written twice, and finding that out is worth the cost of computing both.

The fifth is anti-correlated with the other four at −0.26.

The ruler that is not a ruler

That is not a subtlety and it is not a disagreement about emphasis. The variety measure is not measuring unevenness at all, and the reason is visible in one example.

A pattern of five onsets in sixteen with gaps 3, 3, 4, 3, 3 uses two distinct gap lengths. A pattern with gaps 1, 1, 1, 1, 12 also uses two distinct gap lengths. The entropy of the gap distribution is higher for the first, because its two lengths are split four-to-one against the second’s — so on this ruler the near-perfectly-even pattern is the more uneven of the two, and a pattern that puts four onsets in a row and then waits three-quarters of a cycle is the evener.

5 onsets in 16, by the entropy of the gap lengths against locatability. Every one of the 273 rotation classes of 5 onsets in 16 steps, placed by the entropy of the gap lengths against how much of the cycle has to be heard on average before its position is known. The two objectives are opposed — the perfectly even pattern is the hardest to locate and the most clustered ones are the easiest — so there is no best pattern, only a frontier, and 11 of the 273 are on it. None of the named timelines is among them. The named timelines are marked.
Fig. 2 The frontier under the variety measure. It has eleven points on it, which is a perfectly respectable number, and it holds none of the named timelines and not the perfectly even pattern either. Nothing about the picture says it is wrong. That is the point: a Pareto frontier drawn against a badly chosen quantity looks exactly like one drawn against a well chosen quantity, and only the axis label distinguishes them.

The lesson generalises past this figure. A measure of unevenness has to be sensitive to how large the departures are and not only to how many kinds of departure there are. Every count-based or category-based statistic on an interval distribution has this failure available to it, and the normalised pairwise variability measures used on speech rhythm and on musical timing are close enough relatives to be worth checking.

So the honest sweep is four rulers rather than five, and the fifth is a null with a reason rather than a disagreement to be split.

What survives, and it survives harder

With the variety measure set aside, the published result does not merely survive; it is understated.

The son clave is on the frontier under every one of the four. So is the bossa-nova pattern, which is a rotation of the maximally even pattern and sits at the frontier’s even end. Neither result depends on the ruler.

What does depend on the ruler is how much that membership is worth. The published frontier holds twenty-two of 273 patterns, or eight per cent, and the essay that drew it was careful to say that eight per cent is a real constraint but not an overwhelming one. Under the range measure the frontier holds twelve; under the chord-length deficit, eight; under the onset displacement, seven.

5 onsets in 16, by how far the onsets sit from even against locatability. Every one of the 273 rotation classes of 5 onsets in 16 steps, placed by how far the onsets sit from even against how much of the cycle has to be heard on average before its position is known. The two objectives are opposed — the perfectly even pattern is the hardest to locate and the most clustered ones are the easiest — so there is no best pattern, only a frontier, and 7 of the 273 are on it. son clave and the bossa-nova pattern are among them. The named timelines are marked.
Fig. 3 The same census against the strictest of the four rulers: how far each pattern’s onsets sit from where perfectly even onsets would fall. The frontier is seven patterns of 273 — two and a half per cent — and the son clave and the bossa are two of them. Under the ruler that discriminates most finely, membership is three times as exclusive as the published figure and the same two timelines are still on it.

The reason the frontier shrinks is worth stating because it is not that the stricter ruler is somehow better. It is that the gap-based measures are coarse: gaps in a sixteen-step cycle are small integers, so the standard deviation of five of them takes few distinct values, many patterns tie, and a tie cannot be dominated. The position-based measures are continuous and almost nothing ties, so almost everything that can be dominated is.

That coarseness is doing something else as well, and it is the sharpest correction here.

The two claves are not equally uneven

The published account observes that the son and rumba claves have exactly the same unevenness — a gap spread of 0.748 apiece — and that the son therefore dominates the rumba outright, having the same evenness and a better locating cost.

The first half of that is an artefact of the ruler. The two patterns’ gaps are 3, 3, 4, 2, 4 and 3, 4, 3, 2, 4: the same five numbers in a different order. Any measure that reads only the multiset of gaps must call them identical, and the spread, the range and the variety all do.

A measure that reads the positions does not. The son’s onsets sit 0.403 steps from perfectly even in the root-mean-square and the rumba’s sit 0.490 — twenty-two per cent further. On the chord-length deficit the gap is wider still, 0.021 against 0.057.

the rumba clave. A rhythm drawn round a circle, one equal arc per step, with the struck steps filled. On a circle the pattern has no beginning, which is why the same necklace of onsets is several different named rhythms depending on where a listener decides bar one is.
Fig. 4 The rumba clave as a cycle. Its gaps are the son clave’s five numbers reordered — 3, 4, 3, 2, 4 against 3, 3, 4, 2, 4 — so every measure that reads the list of gaps without their order calls the two patterns equally uneven. Placed round the circle they are visibly not: moving the second onset one step later pushes three of the five away from their even positions at once, which is what a positional measure sees and a gap histogram cannot.

The conclusion is unchanged and the reasoning has to change. On the gap-based rulers the son dominates the rumba by having equal evenness and better locatability. On the position-based rulers it dominates by being both more even and more locatable. Either way the rumba is on none of the four frontiers, which is the strongest form the original claim could have taken.

That is the shape of a robust result: the verdict holds under every ruler and the reason for it does not.

The bembe stops being dominated

Not everything holds. The published account places the collection’s other timelines on their own frontiers and reports that the standard bell pattern — seven onsets in twelve steps — is not on its, sitting at a locating length of eleven of twelve where the frontier at its own unevenness offers ten.

Five rulers on 7 onsets in 12, and what each frontier keeps. The same 66 rotation classes and the same locating cost, with the frontier recomputed against five different definitions of unevenness. The frontier's size varies from 5 to 11 of 66, so how exclusive membership is depends on the ruler. Of the named timelines of this size, the standard bell pattern is on 2 of the five. The four rulers that measure how large a pattern's departure from even is rank the whole census together, at no worse than 0.60 between any two of them; the one that counts how many distinct gap lengths a pattern uses rather than how large its departures are is anti-correlated with them at -0.59, and its frontier holds none of the named timelines and does not hold the perfectly even pattern.
Fig. 5 The same five rulers at the bell pattern’s own size. The frontiers hold eleven, five, eight, nine and five of the sixty-six rotation classes. The bell pattern is on two of the five — the two that read positions rather than gaps — and off the other three. So its exclusion was a fact about the ruler and not about the timeline, and the four rulers that agreed at 0.89 on the larger census agree only at 0.60 here.

The mechanism is the same coarseness working the other way. The bell pattern is the maximally even pattern of seven in twelve; its gaps are 2, 2, 1, 2, 2, 1, 2 and its range is one, which is the definition of maximal evenness. At this size the gap-based rulers put several other patterns at the same spread, and one of them locates a listener slightly faster, so the bell pattern is dominated by a tie. The position-based rulers separate them, the bell pattern comes out strictly the evenest thing there is, and nothing can dominate the extreme point of an axis.

7 onsets in 12, by how far the onsets sit from even against locatability. Every one of the 66 rotation classes of 7 onsets in 12 steps, placed by how far the onsets sit from even against how much of the cycle has to be heard on average before its position is known. The two objectives are opposed — the perfectly even pattern is the hardest to locate and the most clustered ones are the easiest — so there is no best pattern, only a frontier, and 8 of the 66 are on it. the standard bell pattern is among them. The named timelines are marked.
Fig. 6 Seven onsets in twelve against the positional ruler. The bell pattern sits at the extreme even end of the frontier, exactly where the bossa sits on the sixteen-step one, and the frontier holds eight of the sixty-six. The published verdict that this timeline is dominated is a verdict two of the four rulers do not return.

So one of the five conclusions in the published account is ruler-dependent and the sweep reverses it. The count now reads: of the timelines this collection carries, the tresillo is on four of five frontiers at its size, the son clave and the bossa on four of five at theirs, the bell pattern on two of five, and the rumba clave on none. That is a mixed result and it was a mixed result before; what has changed is which of the mixture is a fact about the music.

A tie is what decides a frontier

Two of the three corrections above came from ties rather than from disagreements, and that is the general lesson of the sweep rather than an accident of two sizes.

A pattern is on a frontier when nothing beats it on both axes at once. Beating it requires being strictly better on one and no worse on the other, so the patterns that survive are the ones nothing ties with — and a coarse ruler manufactures ties. Five cyclic gaps in a sixteen-step cycle are five small integers summing to sixteen, and their standard deviation takes only a few dozen distinct values across 273 patterns. Many patterns share a value; a shared value cannot be improved on without being strictly bettered on the other axis; so the frontier fills up.

That is why the gap-based frontier holds twenty-two points and the positional one holds seven, and it is why the two disagree about the bell pattern rather than about the son clave. The son clave is separated from everything near it on both kinds of ruler. The bell pattern is not: at seven onsets in twelve steps it ties with several patterns on gap spread and one of them locates faster, so a coarse ruler shows it dominated and a fine one shows it extreme.

The same thing happens at five onsets in twelve, where no named timeline exists to argue about. The maximally even pattern there is on the positional frontier and off the gap-based one, for exactly the reason above and with nothing at stake. So the disagreement is systematic and it is about resolution, which means it can be predicted rather than discovered: expect the two families to differ wherever the cycle is short enough that the gaps are few and small, and to agree wherever it is long enough that they are not.

The pattern that satisfies everybody

One more number falls out of running all five and it is a useful sanity check on the whole enterprise.

Of the 273 cycles of five in sixteen, exactly one is on all five frontiers at once — including the variety measure’s. Its gaps are 1, 4, 3, 2, 6, its locating cost is 0.709 against the son clave’s 0.925, and it locates a listener in five steps against the son’s nine. Nobody plays it.

That is the right outcome and it is worth saying why. The frontier describes what is available, not what is chosen, and the patterns at the locatable end of any of these frontiers are clustered — several onsets close together and then a long silence. A cycle has no ending and what it has instead is a continuous texture, so a pattern with a six-step hole in it cannot do a timeline’s job whatever its information content. The universal frontier point is the arithmetic recording that only one of a timeline’s several jobs has been measured.

E(5, 16) as a cycle. A rhythm drawn round a circle, one equal arc per step, with the struck steps filled. On a circle the pattern has no beginning, which is why the same necklace of onsets is several different named rhythms depending on where a listener decides bar one is.
Fig. 7 The maximally even five in sixteen drawn as a circle: gaps of 3, 3, 3, 3, 4, which is as close to a regular pentagon as sixteen equal arcs allow. It is on the frontier under all four real rulers, at the opposite end from the clustered patterns, and it is the worst locator of the 273 — fifteen steps of sixteen before its rotation is unambiguous. That is not a defect of the pattern; it is the trade the whole frontier is made of, and it holds under every measure of evenness worth using.

Which computation produced the numbers

The census is unchanged: every subset of the given size, reduced to one representative of its rotation class by taking the lexicographically smallest rotation, scored by the residual-entropy measure. The locating cost is the area under that entropy curve.

The five unevenness measures are computed on the same representatives. The gap spread and range are read off the cyclic gaps; the onset displacement minimises the root-mean-square distance from a perfectly even set over all alignments of that set, in eighths of a step, because the even positions of five onsets in sixteen do not fall on integers; the chord-length deficit is the sum of the sines of the half-angles between every pair of onsets, subtracted from the same sum for the maximally even pattern of that size, so that it is zero for the even pattern and positive for everything else; and the variety measure is the Shannon entropy of the gap-length distribution.

A frontier is the set of patterns not dominated on both axes at once, and the rank correlations are Spearman’s over the whole census rather than over the frontier — a correlation computed on frontier members only would be a correlation among the survivors of the thing being tested.

The comparison across rulers is a comparison of sets, not of positions. Two rulers can rank the census identically and produce different frontiers, because a frontier is decided by ties and by extremes rather than by the middle of an order.

What the picture cannot show

Four rulers is not all rulers. The four that survive here are the ones in circulation; a fifth that reads something else about a pattern could put a different set on the frontier, and nothing rules that out. What can be said is that four independent choices, two of which are the standard ones in the theory of maximally even sets, agree on the two conclusions this collection has drawn from the frontier.

The locating cost has its own choices in it. The window is a run of consecutive steps, the listener’s memory is perfect and their hearing is exact. A listener whose memory fades has a different ranking altogether, and that is a second axis with the same problem as the first: it has been swept and the sweep is on a neighbouring ladder rather than this one.

Five onsets in sixteen is one size, and the sweep across sizes is small. Four sizes appear here and the four rulers agree least at seven in twelve — 0.60 rather than 0.89 — which is a hint that the agreement is a property of large censuses and not of the measures. Sixty-six patterns is not many.

And nothing here says anybody chose anything. The tresillo, the son clave and the bell pattern are what traditions arrived at, by paths nobody recorded, under pressures that included being danceable and teachable and playable on the instruments to hand. That two of them are Pareto-optimal on two computable quantities is a fact about the patterns, and it becomes evidence about the process only with a corpus. The same debt stands on the additive-metre ladder, where the arithmetic likewise bounds the space and the tradition picks inside it.

Whose music, and when

The son and rumba claves are Cuban, the bossa-nova pattern Brazilian, the standard bell pattern West African and the oldest of the four. The theory of maximally even sets is from the pitch literature of the late 1980s, where it was invented to explain the diatonic scale, and the same construction produces both — which is why the chord-length measure used here on a rhythm is the one originally written for a scale.

The measures of rhythmic evenness in circulation come from at least three fields that do not read each other: music theory, corpus phonetics and the computational-geometry work that named the Euclidean rhythms. The finding that one of them is anti-correlated with the others is a fact about that fragmentation rather than about music.

Where this ladder goes next

Four rungs. Bjorklund’s algorithm produces patterns the world plays; the match holds only up to rotation, and the two most famous timelines are not matches at all; what they are good at instead is telling a listener where in the cycle they are, at a cost in evenness that puts the son clave on the frontier between the two; and that frontier is a claim about a quantity that had to be chosen, so it has now been drawn four times and the son clave is on all four.

What is owed is the third axis. Two of a timeline’s jobs are now measured — how even it is and how quickly it locates — and the frontier’s universal point is a pattern with a six-step hole in it, which fails at a job nothing here computes. Syncopation against a metre is computable and this collection already computes it; so is the length of the longest silence, which is the crudest possible stand-in for whether a pattern can hold a cycle up. Adding either as a third axis turns a frontier into a surface and would say whether the named timelines are optimal in three dimensions or merely in the two that were easy — and it needs no corpus, only the census this ladder already enumerates.

Part 4 of 8

One essay in the series on euclidean rhythm. 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 objects named here

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

ClaveCyclic rhythmEntropyEuclidean rhythmMaximal evennessOnset patternRotationTimeline