Generator

Six rhythms, all from the same construction

Euclidean rhythms generated by Bjorklund's algorithm, which spreads a number of onsets as evenly as a number of steps allows. The patterns were not transcribed from recordings; they are what the algorithm produces, and the names beside them are where each one is already in use.
Six rhythms, all from the same construction. Euclidean rhythms generated by Bjorklund's algorithm, which spreads a number of onsets as evenly as a number of steps allows. The patterns were not transcribed from recordings; they are what the algorithm produces, and the names beside them are where each one is already in use.

Drawn above with its standard settings, which is almost never how an essay draws it: an essay states the numbers it is arguing about, so the figure a reader meets there is about that argument rather than about the drawing in general. Every option a placement passes is checked against the ones this function actually reads, because an option it does not read is silently ignored and the figure quietly draws what is above instead.

It makes a noise. 60 of its 60 placements carry sound, built from the same numbers as the drawing, offering these buttons: 5 in 16 with a longest silence of 12, 5 in 16 with a longest silence of 4, As played, E(2,4), E(2,5), E(2,8), E(3,7), E(3,8) and 64 more.

Called by 16 essays

the blast radius of changing it

Six rhythms, all from the same construction. Euclidean rhythms generated by Bjorklund's algorithm, which spreads a number of onsets as evenly as a number of steps allows. The patterns were not transcribed from recordings; they are what the algorithm produces, and the names beside them are where each one is already in use.

As evenly as possible, which turns out to be a famous rhythm

Ask an algorithm to space five strikes over eight beats as evenly as it can. It produces the cinquillo. Ask for three over eight and it produces the tresillo. Nobody told it about Cuba.

rhythm · Euclidean rhythm
How much swing there is, against how fast the music goes. The ratio of the long note to the short note of a swung pair, as a function of tempo, derived from the finding that the short note holds a roughly constant hundred milliseconds. The notated readings are horizontal lines, and each is correct at exactly one tempo. Above about three hundred beats a minute the ratio reaches one and the swing has gone.

Swing is a ratio, and it is not two to one

Swung quavers are notated as a triplet figure, which is a ratio of two to one. Measurements of what drummers actually play give anything from three and a half to one down to one to one, and which of those it is depends almost entirely on the tempo.

rhythm · Microtiming
Three metres as trees. Three metres — 4/4, 2 + 2 + 2 + 2; 6/8, 3 + 3; 5/8, 3 + 2 — each drawn as the bar dividing into beats and the beats dividing again. Simple and compound metres have the same number of beats and differ in the second division; an additive metre has beats of unequal length, which no single division produces.

Beats of unequal length

A bar of nine in Balkan practice is not nine of anything. It is four beats, three short and one long, and the inequality is at the beat level rather than inside it — which is a thing no single division of a bar can produce.

rhythm · Additive metre
One pattern, four metres. The same 12-step onset pattern read under 4 candidate metres, each scored by a preference rule set: 3 for a strong position that carries an onset, -2 for one that does not, -1 for an onset that lands off every strong position. The scores are 4/4 -4, 3/4 12, 6/8 12, 12/8 as 3+3+3+3 12, so 3/4 and 6/8 and 12/8 as 3+3+3+3 tie and the model does not choose. Nothing about the sound differs between these readings; the bar line is supplied by the listener.

The beat is inferred, and sometimes wrongly

A bar line is not in the sound. One sequence of onsets supports a reading in four, in three and in six, and which one a listener settles on comes from a small set of preference rules rather than from anything in the signal — which is why the same recording can be heard two ways and why nobody can be talked out of either.

rhythm · Metre induction
One construction, a scale on one side and a rhythm on the other. Both rings are the same computation: k things placed as evenly as possible in n positions. On the left it is 7 notes in 12 semitones, which is the major scale; on the right 5 strikes in 8 steps, which is the cinquillo. The filled positions come from the J-function and the open marks from Bjorklund's algorithm, and they are the same set of positions turned by 9 and 6.

The same algorithm made a Cuban rhythm

Ask Bjorklund's algorithm for seven onsets in twelve steps and it returns 101101011010, which read as pitch classes is the natural minor scale. That function has been producing the tresillo and the cinquillo here from the beginning, and nobody has said that the scale field's central object comes out of it unchanged.

scales · The diatonic set
3 against 2, and the line it adds up to. Two pulse trains over one bar, 3 against 2, and beneath them their union on the common grid of 6 steps. The composite has 4 onsets — 3 + 2 − 1, because the two layers share the downbeat — and its gaps run 2, 1, 1, 2 steps, which uses 2 distinct lengths and reads the same in both directions. No single division of the bar produces that sequence.

The third pattern nobody played

Two players play two even pulses and a third rhythm arrives that neither of them played. It has a + b − 1 onsets, its gaps read the same forwards and backwards, and it uses exactly min(a, b) different lengths — which is a better account of why 3:2 is a figure and 7:5 is weather than the number used for the last three essays.

rhythm · Polyrhythm
The bell against every division of its cycle. A 12-step pattern of 7 onsets drawn round a circle, with 4 equal divisions of the same cycle as inner rings. Each ring's beats are filled where the pattern strikes them: 1 of the 2, 2 of the 3, 2 of the 4, 3 of the 6. No division has all of its beats struck and none has none of them, so the pattern belongs to no one of them and can be played against any of them. That is what a cross-rhythm is here: one pattern against the beat, and against more than one beat at once, rather than two patterns against each other.

The bell is not a polyrhythm

Five earlier essays have set one pattern against another. In the practice the word cross-rhythm was borrowed from, there is one pattern and it is played against the beat — against several beats at once. Counted against the four divisions of a twelve-cycle, the Ewe bell marks half of the two, two-thirds of the three, half of the four and half of the six, and all of none of them.

rhythm · Polyrhythm
Euclidean up to the one thing a timeline is for. Five named timelines, each drawn above the Euclidean pattern with the same number of onsets in the same number of steps, with the rotation between them found by search. 3 of 5 are rotations of the Euclidean pattern and 2 are not Euclidean at any rotation — son clave, 3–2 and rumba clave, 3–2, whose gap sequences are 3·3·4·2·4 and 3·4·3·2·4 against the algorithm's 3·3·3·3·4. Where the match holds it holds only up to rotation, and a rotation is not a small difference: the algorithm has no way to produce a starting position, and a starting position is what a timeline is.

The rotation the necklace cannot see

Ask Bjorklund's algorithm for the world's timelines and the usual answer is that it produces them. Search every rotation of each Euclidean pattern for a match and the answer is more interesting: the tresillo is E(3,8) exactly, the bossa-nova and the standard bell pattern are rotations of theirs, and the son and rumba claves — the two best-known timelines in the world — are not Euclidean at any rotation whatever. Where the match does hold it holds up to a starting position, and a starting position is the one thing a timeline is.

rhythm · Euclidean rhythm
5 onsets in 16, by evenness against locatability. Every one of the 273 rotation classes of 5 onsets in 16 steps, placed by how uneven its gaps are 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 22 of the 273 are on it. son clave and the bossa-nova pattern are among them. The named timelines are marked.

What the clave buys with its unevenness

The essay before this one found that the two best-known timelines in the world are not Euclidean at any rotation, and asked whether they maximise something else. They do: how quickly a fragment of the cycle says where in the cycle it is. The son clave locates itself in nine of its sixteen steps where the even pattern needs fifteen — and of two hundred and seventy-three patterns, twenty-two are on the frontier between the two objectives and the son clave is one of them.

rhythm · Euclidean rhythm
A cycle whose position is in the instrumentation. 3 isochronous layers over a cycle of 16 steps, at periods 16, 8, 4. Every layer on its own is perfectly symmetric and tells a listener nothing about where they are; the combination gives 4 distinct signatures over 16 steps, and hearing one of them leaves 2.81 bits unknown. The information is in which instruments sound rather than in where the onsets fall, which is a different answer from the one a single timeline gives — and it needs no asymmetry anywhere. The cost is 7 strokes a cycle, 0.44 to the step, spread over 3 players.

A cycle that says where it is

Euclidean timelines were asked how quickly they tell a listener where in the cycle they are, and answered it with rotational asymmetry: a symmetric pattern never locates at all. A colotomic cycle answers the same question with nothing asymmetric in it. Several isochronous layers at nested periods — a gong every sixteen, a kempul every eight, a kenong every four — put the position in which instruments sound, and the position is legible from a single stroke.

rhythm · Cyclic rhythm
Where a cycle of 16 at 16, 8, 4 outruns the listener's memory. The residual uncertainty a listener is left with once the evidence has stopped accumulating, against how long one turn of a 16-step cycle takes. The listener's memory of a step halves after 3.5 seconds throughout; what changes is how many steps that is. At a cycle of 1.6 seconds it is 35 steps and every design reaches certainty, which is the regime a clave is played in. At 60 seconds it is 0.93 steps and none of them does: layers at 16, 8, 4 settles at 1.89 bits, son clave settles at 2.27 bits, the bossa-nova pattern settles at 2.38 bits, the best single line of 7 settles at 1.85 bits. That is the range a gong cycle occupies, and it is the design that wins there.

The cycle that outruns the memory

A timeline and a colotomy were compared at equal strokes and the comparison had no clock in it. A memory span is a number of seconds and a cycle is a number of steps, so the two only meet through a tempo — and at a clave's two seconds a listener's memory covers twenty-eight steps and forgets nothing, while at a gong cycle's forty it covers 1.4 and forgets almost everything. The single line is the better locator up to twenty-three seconds a cycle and the layered code is better after it, which is very close to where each is actually used.

rhythm · Cyclic rhythm
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.

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.

rhythm · Euclidean rhythm
The longest silence against the spread of the gaps. Every one of the 273 rotation classes of 5 onsets in 16 steps, placed by how uneven its gaps are against how long its longest gap is. The two rank the census together at a Spearman correlation of 0.94, so the longest silence is not a second thing to know about a timeline; it is the same thing measured more crudely. Against the other axis on the frontier — how much of the cycle has to be heard before a listener knows where in it they are — it correlates at -0.02, which is nothing. The named timelines are marked, and all of them sit at 4, the shortest longest-gap any pattern of this size can have.

The longest silence is not a third axis

The frontier between evenness and locatability was drawn twice and both times against two quantities, with the third job a timeline does left uncomputed. Computed, neither candidate for it is a third quantity: the longest silence ranks the whole census with the spread of the gaps at 0.94, and syncopation is not a property of a cycle at all — every one of the 273 patterns changes its count when the bar line moves. What the request was actually asking for is a cap rather than an axis, and under the tightest one the census admits thirteen patterns and every named timeline is among them.

rhythm · Euclidean rhythm
5 censuses: the floor of the longest gap, the ceiling of the syncopation total, and how few patterns reach both. For each census of k onsets in n steps, counted by rotation class: 3 in 8: patterns 7, floor of longest gap 3, at the floor 1, ceiling of total 14, at the ceiling 2, at both 1; 5 in 8: patterns 7, floor of longest gap 2, at the floor 2, ceiling of total 12, at the ceiling 2, at both 2; 5 in 12: patterns 66, floor of longest gap 3, at the floor 6, ceiling of total 28, at the ceiling 6, at both 6; 7 in 12: patterns 66, floor of longest gap 2, at the floor 3, ceiling of total 20, at the ceiling 38, at both 3; 5 in 16: patterns 273, floor of longest gap 4, at the floor 13, ceiling of total 79, at the ceiling 9, at both 9. The rotation-total of syncopation is taken against a metre of 2 × 2 × 2 for 8 steps, 2 × 2 × 3 for 12 steps, 2 × 2 × 2 × 2 for 16 steps. In every census drawn the evenly spaced pattern is at the floor and at the ceiling.

The other censuses keep evenness, not locating

Five onsets in sixteen suggested two rules: a named timeline's longest gap is the shortest its census allows, and its syncopation totalled over every rotation is the largest. Nine of ten named timelines across five censuses meet both — but so does the evenly spaced pattern, in all twenty-one censuses from two onsets in eight to eight in sixteen, and in four of those five censuses the named timeline is the evenly spaced pattern. What the rules describe is evenness. The quantity the frontier was built on points the other way: the evenly spaced pattern is the slowest of its census to locate in nineteen of twenty-one, the standard bell pattern is the slowest of all sixty-six patterns of seven in twelve, and among the orders of its own gaps a named timeline is usually both the most even and the slowest to locate. The son clave, whose most even order is also the fastest, is the exception the locating story was told about.

rhythm · Euclidean rhythm
With a fading memory the slowest order of the gaps 1 1 2 2 2 2 2 is not the one a perfect memory finds. For each of the 3 cyclic orders of the gaps 1, 1, 2, 2, 2, 2, 2 in 12 steps, the bits of position still unknown once listening has settled, against how many steps a listener's memory of a step takes to halve, with a mismatch costing 6. 2 2 2 1 2 1 2: 12 → 4e-9, 6 → 4e-5, 4 → 0.007, 3 → 0.070, 2 → 0.540, 1.5 → 1.130, 1 → 1.786; 2 2 2 2 1 1 2: 12 → 2e-5, 6 → 0.035, 4 → 0.335, 3 → 0.795, 2 → 1.405, 1.5 → 1.694, 1 → 2.005; 2 2 1 2 2 1 2 (the standard bell pattern): 12 → 2e-5, 6 → 0.027, 4 → 0.231, 3 → 0.535, 2 → 1.028, 1.5 → 1.368, 1 → 1.819. With perfect memory the slowest to locate is the standard bell pattern; at a half-life of 6 steps the highest floor is the order 2 2 2 2 1 1 2, and at 1 it is the order 2 2 2 2 1 1 2.

The bell pattern is slowest only to a perfect memory

Among the orders of its own gaps, a named timeline is usually both the most even and the slowest to locate — for a listener who never forgets. Give the listener a memory that halves and the result comes apart. Of six timelines slowest among their orders with perfect memory, only the fume-fume stays slowest for every forgetting listener, and the standard bell pattern, which is the fume-fume with onsets and rests exchanged and settles at exactly the same floors, is second of its three orders for every memory of half its cycle or less. The census ranking survives better, and in fourteen of twenty-one censuses it was the arithmetic of a pattern that repeats.

rhythm · Euclidean rhythm
Against a pulse, the bell pattern is the quickest of its orders to place. The bits of position a listener is still missing, averaged over the first cycle heard, for each cyclic order of the gaps 1 1 2 2 2 2 2 in 12 steps, heard alone, against a pulse every three steps and against a pulse every four, at perfect memory, half-life 3 steps, half-life 1.5 steps. 2 2 2 1 2 1 2: alone 1.08, 1.23, 1.73; against a pulse every 3 steps 0.69, 0.75, 0.96; against a pulse every 4 steps 0.63, 0.67, 0.85. 2 2 2 2 1 1 2: alone 1.22, 1.63, 2.02; against a pulse every 3 steps 0.60, 0.73, 0.92; against a pulse every 4 steps 0.83, 1.07, 1.36. 2 2 1 2 2 1 2 (the standard bell pattern): alone 1.25, 1.45, 1.82; against a pulse every 3 steps 0.54, 0.56, 0.67; against a pulse every 4 steps 0.55, 0.57, 0.68. Alone, the bell pattern is not the quickest order to place at any memory. Against either pulse it is the quickest at every memory.

Against a pulse the bell pattern is the easiest to place

Heard alone, the standard bell pattern is not the quickest order of its own gaps to place in its cycle, for a listener with any memory. Heard against a pulse every three steps or every four — which is how anyone hears it — it is the quickest, at every memory and at every alignment of pulse and bell, and by a wide margin: at a memory of a quarter of the cycle, 0.56 bits unplaced over the first cycle against 0.73 for either rival against a pulse in threes. Six of eight named timelines do the same. A timeline's order of gaps looks chosen for how it sits against the beat, not for how it sounds alone.

rhythm · Euclidean rhythm

All figures · What can be heard