Just Intonation (Part 6)

29 December, 2025

In this series I’ve been explaining 12-tone scales in just intonation—or more precisely, ‘5-limit’ just intonation, where all the frequency ratios are integer powers of the primes 2, 3 and 5. There are various choices involved in building such a scale. A lot of famous mathematicians have tried their hand at it. Kepler, Descartes, Mersenne, Newton, Mercator, and Euler are among them. They didn’t agree on the best scale: they came up with different scales.

Newton did his work on this in college when he was 22. This was 1665, the year he later fled Trinity College to avoid the Great Plague, went to the countryside, invented calculus, began thinking about gravity, and discovered that a prism can recombine colors of light to make white light.

Given this, I can’t resist classifying all possible scales of this sort. Today we’ll see that by a certain precise definition, there are 174,240 such scales! It will take a bit of combinatorics to work this out. Among this large collection of scales we will also find smaller sets of scales with nice properties. But I still don’t know why those mathematicians chose the scales they did.

In studying this, and indeed in all my work on just intonation, I was greatly helped by this wonderful paper:

• Daniel Muzzulini, Isaac Newton’s microtonal approach to just intonation, Empirical Musicology Review 15 (2021), 223–248.

It’s full of interesting diagrams:


Anyway, let’s get going!

In Part 2 of this series, I examined the choices involved in building a just intonation scale. I described a general recipe for building such scales. These leads to 2 × 4 × 2 = 16 different scales, based on how you make the choices here:

tonic        1
minor 2nd 16/15
major 2nd 10/9 or 9/8
minor 3rd 6/5
major 3rd 5/4
perfect 4th 4/3
tritone 25/18 or 45/32 or 64/45 or 36/25
perfect 5th 3/2
minor 6th 8/5
major 6th 5/3
minor 7th 16/9 or 9/5
major 7th 15/8
octave 2

Newton’s scale is one of these 16. Marin Mersenne had created the same scale in 1636, but Newton probably didn’t know this. In fact I studied this scale in Part 4, where I claimed that it’s the most popular just intonation scale of all! It’s hard to be sure of that—but I certainly think it’s the nicest one.

Here it is:


The intervals between the notes come in 3 different sizes, which we will discuss soon. In Part 4, I explained some reasons this scale is nice. For example, the intervals here are nearly palindromic! The first interval is the same as the last, and so on—except right near the middle of the scale, the ‘tritone’, where this symmetry is impossible because it would force \sqrt{2} to be a rational number.

In Part 4, I also considered another less popular scale among the 16 generated by my recipe:


In this one the intervals come in 4 different sizes! Let’s make up abbreviations for them. In order of increasing size, they are:

• c: the lesser chromatic semitone, with frequency ratio 25/24 = 1.041666…

• C: the greater chromatic semitone, with frequency ratio 135/128 = 1.0546875.

• d: the diatonic semitone, with a frequency ratio of 16/15 = 1.0666…

• D: the large diatonic semitone, with frequency ratio 27/25 = 1.08.

With this notation, Newton’s scale is

d C d c d C d d c d C d

I’ll say this scale has type (2,3,7,0) since it has 2 c’s, 3 C’s, 7 d’s and 0 D’s. The less popular scale I mentioned is

d C d c d c D d c d C d

This scale has type (3,2,6,1). Arguably this scale is worse, because the large diatonic semitone is quite large compared to all the rest.

Muzzulini also describes some other just intonation scales. Here’s one that Nicolas Mercator created around 1660—not the Mercator with the map, the one who discovered the power series for the logarithm:

c D d c d c D c d d C d

This is striking because it has two large diatonic semitones: it’s of type (4,1,5,2).

Here’s one that the music theorist William Holder wrote down in 1694:

c d D c d c D c d D c d

This has three diatonic semitones—the most possible! It’s of type (5,0,4,3).

Leonhard Euler came up with this scale in 1739:

c D c d d C d c d C d d

This has type (3,2,6,1).

It would be interesting to find out, if possible, why various authors chose the scales they did. Did they scan the universe of possibilities and try to pick a scale that was optimal in some way—or did they did they just make one up? Answering this would require some historical investigation.

All these ruminations led me to some questions about enumerating and classifying scales, which I included as puzzles in Part 4. Now let me finally answer them!

Puzzle 1. As we’ve seen, the most popular 12-tone just intonation scale is of type (2,3,7,0). That is, it has 2 lesser chromatic semitones, 3 greater chromatic semitones, 7 diatonic semitones, and no large diatonic semitones. By permuting these semitones we can get many other scales. How many different scales can we get this way?

Answer. We have a 12-element set and we’re asking: in how many ways can we partition it into a 2-element set, a 3-element set and a 7-element set? This is the kind of question that multinomial coefficients were designed to answer. The answer is

\displaystyle{ \frac{12!}{2! \cdot 3! \cdot 7!} = 7920  }   █

Puzzle 2. Our second, less popular 12-tone just intonation scale is of type (3,2,6,1): it has 3 lesser chromatic semitones, 2 greater chromatic semitones, 6 diatonic semitones and 1 large diatonic semitone. How many other scales can we get by permuting these semitones?

Answer. By the same reasoning, we have

\displaystyle{ \frac{12!}{3! \cdot 2! \cdot 6! \cdot 1!} = 55,440  }

such scales.   █

These puzzles were warmups for a bigger question:

Puzzle 3. How many 12-tone scales are there where the spacing between each pair of successive notes is either a lesser chromatic semitone, a greater chromatic semitone, a diatonic semitone, or a large diatonic semitone?

Answer. The only types of scales allowed are quadruples (i,j,k,\ell) of nonnegative integers where

\displaystyle{ \left(\frac{25}{24}\right)^i \left( \frac{135}{128} \right)^j \left( \frac{16}{15} \right)^k \left( \frac{27}{25} \right)^\ell = 2 }

or equivalently,

\displaystyle{ i \ln\left(\frac{25}{24}\right) + j \ln\left( \frac{135}{128} \right) + k \ln\left( \frac{16}{15} \right) + \ell \ln \left( \frac{27}{25} \right) = \ln 2 }

The four numbers

\ln\left(\frac{25}{24}\right), \ln\left( \frac{135}{128} \right),\ln\left( \frac{16}{15} \right), \ln \left( \frac{27}{25} \right)

span the 3-dimensional rational vector space with basis \ln 2, \ln 3, \ln 5, so they must obey one linear relation with integer coefficients (and others following from this one). This relation is

\displaystyle{ \ln\left(\frac{25}{24}\right) + \ln \left( \frac{27}{25} \right) = \ln\left( \frac{135}{128} \right) + \ln\left( \frac{16}{15} \right) }

This says cD = Cd: the lesser chromatic semitone followed by the large diatonic semitone takes you up to a frequency 9/8 higher, just like the greater chromatic semitone followed by the diatonic semitone.

This means that if a type (i,j,k,\ell) is allowed, so is (i+1,j-1,k-1,\ell+1) if j-1,k-1 \ge 0. Furthermore, it means this move (and its inverse) can take you from any allowed type to all other allowed types.

So, let’s start with the type where \ell, the number of large diatonic semitones, is as small as possible. This is our friend

(2,3,7,0)

We can get all other allowed types by repeatedly adding 1 to the first and last component of this vector and subtracting 1 from the other components. Thus, these are all the allowed types:

(2,3,7,0)
(3,2,6,1)
(4,1,5,2)
(5,0,4,3)

We can now use the methods of Puzzles 1 and 2 to count the scales of each type. We get:

\displaystyle{ \frac{12!}{2! \cdot 3! \cdot 7! \cdot 0!} } = 7,920 scales of type (2,3,7,0).

\displaystyle{ \frac{12!}{3! \cdot 2! \cdot 6! \cdot 1!} } = 55,440 scales of type (3,2,6,1).

\displaystyle{ \frac{12!}{4! \cdot 1! \cdot 5! \cdot 2!} } = 83,160 scales of type (4,1,5,2).

\displaystyle{ \frac{12!}{5! \cdot 0! \cdot 4! \cdot 3!} } = 27,720 scales of type (5,0,4,3).

So, we get a total of

7,920 + 55,440 + 83,160 + 27,720 = 174,240 scales.   █

This is a ridiculously large number of scales! But of course, not all are equally good. Let’s impose some extra constraints.

The whole point of just intonation was to make the third equal to 5/4, and we also want to keep the fourth at 4/3 and the fifth at 3/2, as we had in Pythagorean tuning. When it comes to the second, either 10/9 or 9/8 are considered acceptable in just intonation. I like 9/8 a bit better, so let’s do this:

Puzzle 4. How many 12-tone scales are there where the spacing between each pair of successive notes is either a lesser chromatic semitone, a greater chromatic semitone, a diatonic semitone, a large diatonic semitone, and:

• the second is 9/8
• the third is 5/4
• the fourth is 4/3
• the fifth is 3/2?

Answer. With these constraints there are 1,600 allowed scales. The idea is this:

• There are 4 ways to go from 1 up to 9/8 in two semitones, since only Cd, dC, cD and Dc multiply to 9/8.

• There are 2 ways to go from 9/8 up to 5/4 in two semitones, since only cd and dc multiply to 10/9.

• There is 1 way to go from 5/4 up to 4/3, since d is 16/15.

• There are 4 ways to go from 4/3 up to 3/2, since only Cd, dC, cD and Dc multiply to 9/8.

• There are 500 ways to go from 3/2 to 2 in five steps. Here we need to count ordered quintuples of c, C, d and D that multiply to 4/3. I did this with a computer.

So, we get 4 × 2 × 1 × 4 × 500 = 1,600 scales of this sort.   █

All these scales have the second being the greater major second, 9/8. But you might prefer the lesser major second, 10/9. So let’s think about that:

Puzzle 5. What about the same question as before, but where we constrain the second to be 10/9 instead of 9/8?

Answer. Again there are 1600 scales. In Puzzle 4 our scales went up from 1 to 9/8 by choosing two semitones that multiply to 9/8, and then from 9/8 to 5/4 by choosing two that multiply to 10/9. Now the only difference is that we’re going things in the other order: we’re going up from 1 to 10/9 by choosing two semitones that multiply to 10/9, and then from 10/9 to 5/4 by choosing two that multiply to 9/8. So the overall count is the same as before.   █

Since they differ only by switching some semitones, the 1,600 scales with a greater major second have the same distribution of types as the 1,600 with a lesser major second. Using a computer, I calculated that in each case there are

• 160 of type (2,3,7,0)
• 560 of type (3,2,6,1)
• 640 of type (4,1,5,2)
• 240 of type (5,0,4,3).

How can we pick out a smaller number of ‘better’ scales? We’ve imposed a lot of constraints on the tones from the first to the fifth, but none on the tones above that. To impose constraints on the higher tones, we can demand that our scale be palindromic, except that we can’t require that the interval from the fourth to the tritone equals the interval from the tritone to the fifth, because \sqrt{2} is irrational. So, I’ll call scales with the following properties nearly palindromic:

• the interval from 1 to ♭2 equals that from 7 to 8
• the interval from ♭2 to 2 equals that from ♭7 to 7
• the interval from 2 to ♭3 equals that from 6 to ♭7
• the interval from ♭3 to 3 equals that from ♭6 to 6
• the interval from 3 to 4 equals that from 5 to ♭6.

Puzzle 6. How many nearly palindromic 12-tone scales are there where the spacing between each pair of successive notes is either a lesser chromatic semitone, a greater chromatic semitone, a diatonic semitone, a large diatonic semitone, and:

• the second is 9/8
• the third is 5/4
• the fourth is 4/3?

Answer. There are 32 scales with these properties. First note that the above properties force other facts:

• the fifth is 3/4 × 2 = 3/2
• the minor sixth is 4/5 × 2 = 8/5
• the minor seventh is 8/9 × 2 = 16/9.

Thus, we have the following choices:

• There are 4 ways to go from 1 up to 9/8 in two semitones, since only Cd, dC, cD and Dc multiply to 9/8.

• There are 2 ways to go from 9/8 up to 5/4 in two semitones, since only cd and dc multiply to 10/9.

• There is 1 way to go from 5/4 up to 4/3, since d is 16/15.

• There are 4 ways to go from 4/3 up to 3/2, since only Cd, dC, cD and Dc multiply to 9/8.

and from then on, our choices are forced by the nearly palindromic nature of the scale.

There are thus a total of

4 × 2 × 1 × 4 = 32

choices.   █

These 32 scales come in two kinds:

• the 16 scales discussed in Part 4, where the minor second is the diatonic semitone, d = 16/15

• 16 others, where the minor second is the greater chromatic semitone, C = 135/128.

Newton’s scale is of the first kind.

All 32 of these scales use the greater major second. A similar story holds with the lesser major second.

Puzzle 7. How many nearly palindromic 12-tone scales are there where the spacing between each pair of successive notes is either a lesser chromatic semitone, a greater chromatic semitone, a diatonic semitone, a large diatonic semitone, and:

• the second is 10/9
• the third is 5/4
• the fourth is 4/3?

Answer. By the symmetry we used to answer Puzzle 5, this question has the same answer as Puzzle 6: there are again 32 choices.   █

These 32 scales again come in two kinds:

• 16 scales where the interval from the second to the minor third is the diatonic semitone, d = 16/15

• 16 others where the interval from the second to the minor third is the greater chromatic semitone, C = 135/128.

If you’ve made it this far, congratulations! I was lured in by how many famous mathematicians had studied this subject, and I wanted to join the fun.


For more on Pythagorean tuning, read this series:

Pythagorean tuning.

For more on just intonation, read these:

Part 1: The history of just intonation. Just intonation versus Pythagorean tuning. The syntonic comma.

Part 2: Just intonation from the Tonnetz. The four possible tritones in just intonation. The small and large just whole tones. Ptolemy’s intense diatonic scale, and its major triads.

Part 3: Curling up a parallelogram in the Tonnetz to get just intonation. The frequency ratios of the four possible tritones: the syntonic comma, the lesser and greater diesis, and the diaschisma.

Part 4: Choices involved in just intonation. Two symmetrical 13-tone scales, and two 12-tone scales obtained from these by removing the diminished fifth. The four kinds of half-tone that appear in these scales: the diatonic, large diatonic, lesser chromatic and greater chromatic semitones.

Part 5: Frequency ratios between the four possible tritones in just intonation, and how they are related to frequency ratios between the four kinds of half-tone. The syntonic comma, lesser and greater diesis, diaschisma, and the relations they obey.

Part 6: Classifying all 174,240 12-tone scales where the intervals between successive notes are always diatonic, large diatonic, lesser chromatic and greater chromatic semitones. The scales of Isaac Newton, Nicolas Mercator, William Holder and Leonhard Euler.

For more on quarter-comma meantone tuning, read this series:

Quarter-comma meantone.

For more on well-tempered scales, read this series:

Well temperaments.

For more on equal temperament, read this series:

Equal temperament.


The Mathematics of Tuning Systems

26 December, 2025

I’m giving a talk on the math of tuning systems at Claremont McKenna College on January 30th at 11 am. If you’re around, please come! You can read my slides here:

The mathematics of tuning systems.

But my slides don’t contain most of what I’ll write here… the stuff I’ll say out loud in my talk.

If you look at a piano keyboard you’ll see groups of 2 black notes alternating with groups of 3. So the pattern repeats after 5 black notes, but if you count you’ll see there are also 7 white notes in this repetitive pattern. So: the pattern repeats each 12 notes.

Some people who never play the piano claim it would be easier if had all white keys, or simply white alternating with black. But in fact the pattern makes it easier to keep track of where you are – and it’s not arbitrary, it’s musically significant.

For one thing white notes give a 7-note scale all their own. Most very simple songs use only this scale! The black notes also form a useful scale. And the white and black notes together form a 12-tone scale.

Starting at any note and going up 12 notes, we reach a note whose frequency is almost exactly double the one we started with. Other spacings correspond to other frequency ratios.

I don’t want to overwhelm you with numbers. So I’m only showing you a few of the simplest and most important ratios. These are really worth remembering.

We give the notes letter names. This goes back at least to Boethius, the guy famous for writing The Consolations of Philosophy before he was tortured and killed at the order of Theodoric the Great. (Yeah, “Great”.) Boethius was a counselor to Theodoric, but he really would have done better to stay out of politics – he was quite good at math and music theory.

Boethius may be the reason the lowest note on the piano is called A. We now repeat the names of the white notes as shown in the picture: seven white notes A,B,C,D,E,F,G and then it repeats.

So the scale used to start at A, using only white notes. But due to the irregular spacing of white notes, a scale of all white notes sounds different depending on where you start. Starting at A gives you the ‘minor scale’, which sounds kinda sad. Now we often start at C, since that gives us the scale most people like best: the ‘major’ scale.

(Good musicians start wherever they want, and get different sounds that way. But ‘C major’ is like the vanilla ice cream of scales—now. It wasn’t always this way.)

From the late 1100s to about 1600 people called pitches that lie outside 7-tone system ‘musica ficta’: ‘false’ or ‘fictitious’ notes. But gradually these notes—the black keys on the piano when you’re playing in C major—became more accepted.

To keep things simple for mathematicians, I’ll usually denote these with the ‘flat’ symbol, ♭. For example, G♭ is the black note one down from the white note G.

(Musicians really need both flats and sharps, and they’d also call G♭ something else: F♯. I’ll actually need both G♭ and F♯ at some points in this talk!)

Since starting the scale with the letter C takes a little practice, I’ll do it a different way that mathematicians may like better. I’ll start with 1 and count up. Musicians put little hats on these numbers, and I’ll do that.

For example, we’ll call the fifth white note up the scale the ‘fifth’ and write it as \hat{5}.

Now for the math of tuning systems!

The big question is: how do we choose the frequency of each note? This is literally how many times per second the air vibrates, when we play that note.

Since 1850, by far the most common method for tuning keyboards has been ’12-tone equal temperament’. Here we divide each octave into 12 equal parts.

What do I mean by this, exactly? I mean that each note on the piano produces a sound that vibrates faster than the note directly below it by a factor of the 12th root of 2.

But we can contemplate ‘N-tone equal temperament’ for N = 1, 2, 3, …. – and some people do use these other tuning systems!

Here’s a picture of the most popular modern tuning system: 12-tone equal temperament. As we march around clockwise, each note has a frequency of 2^{1/12} times the note directly before it.

When we go all the way around the circle, we’ve gone up an octave. That is, we’ve reached a frequency that’s twice the one we started with.

But a note that’s an octave higher sounds ‘the same, only higher’. So in a funny way we’re back where we started.

But now for a big question: why do we use a scale with 12 notes?

To start answering, notice that we actually use three scales: one with 5 notes (the black keys), one with 7 (the white keys) and one with 12 (all the keys).

As mathematicians we can detect a highly nonobvious pattern here.

What’s so good about scales with 5, 7 or 12 notes?

A crucial clue seems to be the ‘fifth’. If you go up to the fifth white note here, its frequency is about 3/2 times the first. This is one of the simplest fractions, and it sounds incredibly simple and pure. So it’s important. It’s a dominant force in western music.

We can make a chart to see how close an approximation to the fraction 3/2 we get in a scale with N equally spaced notes.

N = 5 does better than any scale with fewer notes!

N = 7 does better than any scale with fewer notes!

N = 12 does better than any scale with fewer notes! And it does much better. To beat it, we have to go all the way up to N = 29—and even that is only slightly better.

Here’s a chart of how close we can get to a frequency ratio of 3/2 using N-tone equal temperament.

See how great 12-tone equal temperament is?

There are also some neat patterns. See the stripes of even numbers and stripes of odd numbers? That’s not a coincidence. For more charts like this, and much more cool stuff along these lines, go here.

Here’s the ‘star of fifths’ in 12-tone equal temperament!

12-tone equal temperament is most popular tuning system since maybe 1810, or definitely by 1850. But it’s mathematically the most boring of the tuning systems that have dominated Western music since the Middle Ages. Now let’s go back much earlier, to Pythagorean tuning.

When you chop the octave into 12 equal parts, the frequency ratios of all your notes are irrational numbers… except when you go up or down some number of octaves.

The Pythagoreans disliked irrational numbers. People even say they drowned Hippasus at sea after he proved that the square root of 2 is irrational! That’s just a myth, but it illustrates how people connected Pythagoras to a love of rational numbers. In Pythagorean tuning, people wanted a lot of frequency ratios of 3/2.

In equal temperament, where we chop the octave into 12 equal parts, when we start at any note and go up 7 of these parts (a so-called ‘fifth’), we reach a note that vibrates about 1.4981 times as fast. That’s close enough to 3/2 for most ears. But it’s not the Pythagorean ideal!

As we’ll see, seeking the Pythagorean ideal causes trouble. It will unleash the devil in music.

Start at some note and keep multiplying the frequency by 3/2, like a good Pythagorean. After doing this 12 times, you reach a note that’s close to 7 octaves higher. But not exactly, since the 12th power of 3/2 is

129.746338

which is a bit more than

27 = 128

The ratio of these two is called the ‘Pythagorean comma’:

p = (3/2)12 / 27 = 312 / 219 ≈ 1.0136

This is like an unavoidable lump in the carpet when you use Pythagorean tuning.

It’s good to stick the lump in your carpet under your couch. And it’s good to stick the Pythagorean comma near the so-called ‘tritone’—a very dissonant note that you’d tend to avoid in medieval music. This note is halfway around the circle of fifths.

In Pythagorean tuning, going 6 steps clockwise around the circle of fifths doesn’t give you the same note as going 6 steps counterclockwise! We call one of them ♭5 and the other ♯4.

Their frequency ratio is the Pythagorean comma!

In equal temperament, the tritone is exactly halfway up the octave: 6 notes up. Since going up an octave doubles the frequency, going up a tritone multiplies the frequency by √2. It’s no coincidence that this is the irrational number that got Hippasus in trouble.

In Pythagorean tuning, going 6 steps up the scale doesn’t match jumping up an octave and then going 6 steps down. We call one of them ♭5 and the other ♯4. They’re both decent approximations to √2, built from powers of 2 and 3.

Their frequency ratio is the Pythagorean comma!

The tritone is sometimes called ‘diabolus in musica’: the devil in music. Some say this interval was actually banned by the Catholic church! But that’s another myth.

It could have gotten its name because it sounds so dissonant—but mathematically, the ‘devil’ here is that the square root of 2 is irrational. If we’re trying to use only numbers built from powers of 2 and 3, we have to arbitrarily choose one to approximate √2.

In Pythagorean tuning we can choose either

1024/729 ≈ 1.4047

called the sharped fourth, ♯4, or

729/512 ≈ 1.4238

called the flatted fifth, ♭5, to be our tritone. In this chart I’ve chosen the ♭5.

No matter which you choose, one fifth in the circle of fifths will be noticeably smaller than the rest. It’s called the ‘wolf fifth’ because it howls like a wolf.

You can hear a wolf fifth here:

If you’re playing medieval music, you can easily avoid the wolf fifth: just don’t play one of the two fifths that contains the tritone!

A more practical problem concerns the ‘third’: the third white note in the scale. Ideally this vibrates 5/4 as fast as the first. But in Pythagorean tuning it vibrates 81/64 times as fast. That’s annoyingly high!

Sure, 81/64 is a rational number. But it’s not the really simple rational number our ears are hoping for when we hear a third.

Indeed, Pythagorean tuning punishes the ear with some very complicated fractions. The first, fourth, fifth and octave are great. But the rest of the notes are not. There’s no way that 243/128 sounds better than an irrational number!

In the 1300s, when thirds were becoming more important in music, theorists embraced a beautiful solution to this problem, called ‘just intonation’. Now let’s talk about that.

It’s an amazing fact that in western composed music, harmony became important only around 1200 AD, when Perotin expanded the brand new use of two-part harmony to four-part harmony.

This put pressure on musicians to use a new tuning system—or rather, to revive an old tuning system. It’s often called ‘just intonation’ (though experts will find that vague). We can get using a cool trick, though I doubt this is how it was originally discovered.

First, draw a hexagonal grid of notes. Put a note with frequency 1 in the middle. Label the other notes by saying that moving one step to the right multiplies the frequency of your note by 3/2, while going up and to the right multiplies it by 5/4.

Next, cut out a portion of the grid to use for our scale. We use this particular parallelogram—you’ll soon see what’s so great about it.

Now, multiply each number in our parallelogram by whatever power of 2 it takes to get a number between 1 and 2.

We do this because we want frequencies that lie within an octave, to be notes in a scale. Remember: if 1 is the note we started with, 2 is the note an octave up.

Now we want to curl up our parallelogram to get a torus. If we do this, gluing together opposite edges, there will be exactly 12 numbers on our torus—just right for a scale! This is a remarkable coincidence.

There’s a problem: the numbers at the corners are not all equal. But they’re pretty close! And they’re close to √2: the frequency of the tritone, the ‘devil in music’.

25/18 = 1.3888…
45/32 = 1.40625
64/45 = 1.4222…
36/25 = 1.44

So we’ll just pick one.

When we curl up our parallelogram to get a torus, there’s also another problem. The numbers along the left edge aren’t equal to the corresponding numbers at the right edge. But they’re close! Each number at right is 81/80 times the corresponding number at left. I’ve drawn red lines connecting them.

So, we just choose one from each of these 4 pairs. We’ve already picked one number for all the corners, so we just need to do this for the remaining 2 pairs.

So, here are the various choices for notes in our scale!

For the tritone we have 4 choices. That’s okay because this note sucks anyway. That is: in Western music from the 1300s, it was considered very dissonant. So there’s no obviously best choice of how it should sound.

For the 2 we have two choices, and for the ♭7 we also have 2 choices. So there’s a total of 16 possible scales here.

Regardless of how we make our choices, we’ll get really nice simple fractions for the 1, ♭3, 3, 4, 5 ,♭6, 6, and 8. And that makes this approach, called ‘just intonation’, really great!

(If you like math: notice the ‘up-down symmetry’ in this whole setup. For example the minor second is 16/15, but the reciprocal of that is 15/16, which is the seventh… at least after we double it to get a number between 1 and 2, getting 15/8.)

Here’s a chart of all possible just intonation scales: start at the top and take any route you want to the bottom. There are 16 possible routes.

A single step between notes in a 12-tone scale is called a ‘semitone’, since most white notes are two steps apart. In just intonation the semitones come in 4 different sizes, which is kind of annoying.

Notice that if we choose our route cleverly, we can completely avoid the large diatonic semitone. Or, we can avoid the greater chromatic semitone. But we can’t avoid both. So, we can get a scale with just 3 sizes of semitone, but not fewer.

How should we choose???

This is the most commonly used form of just intonation, I think. It has a few nice features:

1) It has up-down symmetry except right next to the tritone in the middle, where this symmetry is impossible.

2) It uses 9/8 for the second rather than 10/9, which is a bit nicer: a simpler fraction.

3) It completely avoids the large diatonic semitone, which is the largest possible semitone.

These don’t single out this one scale. I’d like to find some nice features that only this one of the 16 possibilities has.

But let’s see what this scale looks like on the keyboard!

Here’s the most common scale in just intonation!

The white notes are perhaps the most important here, since those give the major scale. The fractions here are beautifully simple.

Well, okay: the second (9/8) and seventh (15/8) are not so simple. But that’s to be expected, since these notes are the most dissonant! Of these, the seventh was more important in the music of the 1300s, and even today. It’s called the ‘leading-tone’, because we often play it right near the end of a piece of music, or a passage within a piece of music, and its dissonance leads us up to the octave, with a tremendous sense of relief.

Here’s the really great thing about the white notes in just intonation. They form three groups, each with frequencies in the ratios

1 : 5/4 : 3/2

or in other words,

4 : 5 : 6

This pattern is called a ‘major triad’ and it’s absolutely fundamental to music—perhaps not so much in the 1300s, but certainly as music unfolded later. Major triads became the bread and butter of music, and still are.

The fact that every white note—that is, every note in the 7-note major scale—lies in a mathematically perfect major triad is a gigantic feature in favor of just intonation.

Listen to the difference between some simple chords in just intonation and in equal temperament. You probably won’t hate equal temperament, but you can hear the difference. Equal temperament vibrates as the notes drift in and out of phase.

But let’s take a final peek at the dark underbelly of just intonation: the tritone. As I mentioned, there are four choices of tritone in just intonation. You can divide them into two pairs that are separated by a ratio of 81/80, or two pairs separated by a ratio of 128/125.

These numbers are fundamental glitches in the fabric of music. They have names! People have been thinking about them at least since Boethius around 500 AD, but probably earlier.

• The ‘syntonic comma’, 81/80, is all about trying to approximate a power of 3 by products of 2’s and 5’s.

• The ‘lesser diesis’, 128/125, is all about trying to approximate powers of 2 by powers of 5.

If these numbers were 1, music would be beautiful in a very simple way. But reality cannot be wished away.

And as we’ll see, these numbers are lurking in the spacing between notes in just intonation—not just near the tritone, but everywhere!

Look! The four kinds of semitone in just intonation are related by the lesser diesis and syntonic comma!

In this chart, adding vectors corresponds to multiplying numbers. For example, the green arrow followed by the red one gives the dark blue one, so

25/24 × 81/80 = 135/138

Or in music terminology: the lesser chromatic semitone times the syntonic comma is the greater chromatic semitone.

And so on.

The parallelogram here is secretly related to the parallelogram we curled up to get the just intonation scale. Think about it! Music holds many mysteries.

Just intonation is great if you’re playing in just one ‘key’, always ending each passage with the note I’ve been calling 1. But when people started trying to ‘change keys’, musicians were pressed into other tuning systems.

This is a long story, which I don’t have time to tell right now. If you’re curious, read my blog articles about it!

For more on Pythagorean tuning, read this.

For more on just intonation, read this series.

For more on quarter-comma meantone tuning, read this series.

For more on well-tempered scales, read this series.

for more on equal temperament, read this series.

It’s sad in a way that this historical development winds up with equal temperament: the most boring of all the systems, which is equally good, and thus equally bad, in every key. But the history of music is not done, and computers make it vastly easier than ever before to explore tuning systems.

What will come next? It’s up to us. I hope next year you explore more of the wonders of music.


Formal Scientific Modeling

21 December, 2025

In January I’m going to a workshop on category theory for modeling, with a focus on epidemiology.

Formal scientific modeling: a case study in global health, 2026 January 12-16, American Institute of Mathematics, Pasadena, California. Organized by Nina Fefferman, Tim Hosgood, and Mary Lou Zeeman.

It’s sponsored by American Institute of Mathematics, the NSF, the Topos Institute, and the US NSF Center for Analysis and Prediction of Pandemic Expansion. Here are some of the goals:

1. Get a written problem list from a bunch of modelling experts, i.e. statements of the form “I’ll be interested in categorical approaches to modelling when they can do X”, or “how would category theory think about this specific dynamical behaviour, or is this actually not a category theory question at all?”, or … and so on.

2. Make academic friends. There will be people who are not at all category theorists (many of them haven’t even heard of the subject) but who have elected to spend 5 days at a working conference to actually work with some category theorists.

3. There will probably be a lot of conversations that are essentially 5–15 minute speed tutorials in “what is agro-ecology”, or “how do diabetes models work”, or “what does it mean to implement climate databases in a non-trivial way”.

I think looking at examples of existing successful collaborations between category theorists and modelers will help this meeting work better. I’m hoping to give a little talk about the one I’ve been involved in.

I really had very little idea how category theory could actually help modelers until Nate Osgood, Xiaoyan Li, Kris Brown, Evan Patterson and I spent about 5 years thinking about it. We used category theory to develop radically new software for modeling in epidemiology. It was crucial that Nate and Xiaoyan do modeling for a living, while Kris and Evan design category-based software for a living. And it was crucial that we worked together for a long, long time.

But I’m hoping that what we learned can help future collaborations. I’ve written up a few insights here:

Applied category theory for modeling.


Summer Research at Topos

27 November, 2025

You can now apply for the 2026 Summer Research Associate program at the Topos Institute! This is a great opportunity.

Details and instructions on how to apply are in the official announcement.

A few important points:

• The application deadline is January 16, 2026.
• The position is paid and in-person in Berkeley, California.

These positions will last for 8 – 10 weeks, starting in June 2026 and ending in August. Each position will be mentored by Topos research staff or a select number of invited mentors. All positions are 40 hours/week, and the salary starts at $30-$50/hour.

There’s a research track and an engineering track. For the research track, possible topics include:

• Computational category theory using CatColab (Rust/Typescript skills recommended)
• Double category theory
• Categorical statistics
• Polynomial functors
• Interacting dynamical systems
• Hybrid dynamical systems, attractor theory and fast-slow dynamics
• Proof assistants, formal verification, or structure editors
• Philosophical and ethical aspects of applied category theory

For the engineering track, possible topics include:

• Delivery and support of mathematical technologies for various scientific disciplines and applications, and/or analysis, documentation, or guidance on their uses.
• Designing, implementing, testing, and maintaining software at the Topos Institute, in close collaboration with the research staff and in line with institute’s scientific strategy and mission.
• Contributing to developing the CatColab platform, including front end development in TypeScript and/or back end development in Rust. You might also contribute to the mathematical core, written in Rust, as your mathematical experience permits.

All positions require collaboration within a multi-disciplinary research environment. Each summer research associate will complete a specific Topos project, and will write a blog post by the last week of their employment. These projects may include an internal talk, software contribution, or paper. Go here to see the accomplishments of previous research associates.

Topos is committed to building a team with diverse perspectives and life experiences, so those with personal or professional backgrounds underrepresented at Topos are highly encouraged to apply. They are dedicated to shaping the future of technology to ensure a more equitable and just world, and believe that a technology that supports a healthy society can only be built by an organization that supports its team members.


Beyond the Geometry of Music

22 November, 2025

Yesterday I had a great conversation with Dmitri Tymoczko about groupoids in music theory. But at this Higgs Centre Colloquium, he preferred to downplay groupoids and talk in a way physicists would enjoy more. Click on the picture to watch his talk!

What’s great is that he’s not faking it: he’s really found deep ways in which symmetry shows up pervasively in music.

At first he tried to describe them geometrically using ‘orbifolds’, which are spaces in which some singular points have nontrivial symmetry groups, like the tip of a cone. But then he realized that the geometry was less important than the symmetry, which you can describe using ‘groupoids’: categories where every morphism is invertible. That’s why his talk is called “Beyond the geometry of music”.

I’m helping him with his work on groupoids, and I hope he explains his work to mathematicians someday without pulling his punches. I didn’t get to interview him yesterday, but I’ll try to do that soon.

For now you can read his books A Geometry of Music and Harmony: an Owner’s Manual along with many papers. What I’ve read so far is really exciting.


Safeguarded AI (Part 2)

19 November, 2025

60 people, including a lot of category theorists, are meeting in Edinburgh for the £59 million UK project called Safeguarded AI. I talked about it before here.

The plan is to build software that will let you precisely specify systems of many kinds, which an AI will design, and verify that what the AI designed meets your specifications. So: it’s not about building an AI, but instead, building a way to specify jobs for it and verify that it did those jobs correctly!

The director of this project, David Dalrymple, has changed the plan recently. There were many teams of category theorists designing formalisms to get this job done. David Jaz Myers at Topos Research UK was supposed to integrate all these formalisms. That would be a huge job.

But recently all but a few teams have been cut off from the main project—they can now do whatever they want. The project will focus on 3 parts:

1) The “categorical core”: a software infrastructure that lets you program using category theory concepts. I think Amar Hadzihasanovic, my former student Owen Lynch, and two others will be building this.

2) “DOTS”: the double operadic theory of systems, a general framework for building systems out of smaller parts. This is David Jaz Myers’ baby—see the videos.

3) Example applications. One of these, building colored Petri nets, will be done by my former student Jade Master. I don’t know all the others.

By September 2026, David Jaz Myers, Sophie Libkind, Matteo Capucci, Jason Brown and others are supposed to write a 300-page “thesis” on how this whole setup works. Some of the ideas are already available here:

• David Jaz Myers and Sophie Libkind, Towards a double operadic theory of systems.

It feels funny that so much of the math I helped invent is going into this project, and there’s a massive week-long meeting about it just a ten minute walk away, but I’m not involved. But this was by choice, and I’m happier just watching.

I apologize for any errors in the above, and for leaving out many other names of people who must be important in this project. I’ve spoken to various people involved, but not enough. I’m going to talk to David Jaz Myers tomorrow, but he wants to talk about what I’m really interested in these days: octonions and particle physics!


The Standard Model – Part 3

10 November, 2025

Physics is really bizarre and wonderful. Here I start explaining why the Standard Model has U(1) × SU(2) × SU(3) as its symmetry group. But I don’t assume you know anything about groups or quantum mechanics! So I have to start at the beginning: how the electromagnetic, weak, and strong force are connected to the numbers 1, 2, and 3. It’s all about quunits, qubits and qutrits.

You’ve heard of bits, which describe a binary alternative, like 0 and 1. You’ve probably heard about qubits, which are the quantum version of bits. The weak force is connected to qubits where the 2 choices are called “isospin up” and “isospin down”. The most familiar example is the choice between a proton and a neutron. A better example is the choice between an up quark and a down quark.

The strong force is connected to qutrits—the quantum version of a choice between 3 alternatives. In physics these are whimsically called “red”, “green” and “blue”. Quarks come in 3 colors like this.

The electromagnetic force is connected to “quunits” – the quantum version of a choice between just one alternative. It may seem like that’s no choice at all! But quantum mechanics is weird: there’s just one choice, but you can still rotate that choice.

Yes, I know this stuff sounds crazy. But this is how the world actually works. I start explaining it here, and I’ll keep on until it’s all laid out quite precisely.


The Inverse Cube Force Law

5 November, 2025

Newton’s Principia is famous for its investigations of the inverse square force law for gravity. But in this book Newton also did something that remained little-known until fairly recently. He figured out what kind of central force exerted upon a particle can rescale its angular velocity by a constant factor without affecting its radial motion. This turns out to be a force obeying an inverse cube law.

Given a particle in Euclidean space, a central force is a force that points toward or away from the origin and depends only on the particle’s distance from the origin. If the particle’s position at time t is \mathbf{r}(t) \in \mathbb{R}^n and its mass is some number m > 0, we have

m \, \ddot{\mathbf{r}}(t) = F(r(t))  \,\hat{\mathbf{r}}(t)

where \hat{\mathbf{r}}(t) is a unit vector pointing outward from the origin at the point \mathbf{r}(t). A particle obeying this equation always moves in a plane through the origin, so we can use polar coordinates and write the particle’s position as \bigl(r(t), \theta(t)\bigr). With some calculation one can show the particle’s distance from the origin, r(t), obeys

\displaystyle{ m \ddot r(t) = F(r(t)) + \frac{L^2}{mr(t)^3}  \qquad \qquad  \qquad \qquad (1) }

Here L = mr(t)^2 \dot \theta(t), the particle’s angular momentum, is constant in time. The second term in equation (1) says that the particle’s distance from the origin changes as if there were an additional force pushing it outward. This is a “fictitious force”, an artifact of working in polar coordinates. It is called the centrifugal force. And it obeys an inverse cube force law!

This explains Newton’s observation. Let us see why. Suppose that we have two particles moving in two different central forces F_1 and F_2, each obeying a version of equation (1), with the same mass m and the same radial motion r(t), but different angular momenta L_1 and L_2. Then we must have

\displaystyle{      F_1(r(t)) + \frac{L_1^2}{mr(t)^3}  =  F_2(r(t)) + \frac{L_2^2}{mr(t)^3}  }

If the particle’s angular velocities are proportional then L_2 = kL_1 for some constant k, so

\displaystyle{       F_2(r_1(t)) - F_1(r(t)) = \frac{(k^2 - 1)L_1^2}{mr(t)^3} }

This says that F_2 equals F_1 plus an additional inverse cube force.

A particle’s motion in an inverse cube force has curious features. First compare Newtonian gravity, which is an attractive inverse square force, say F(r) = -c/r^2 with c > 0. In this case we have

\displaystyle{ m \ddot r(t) = -\frac{c}{r(t)^2} + \frac{L^2}{mr(t)^3 } }

Because 1/r^3 grows faster than 1/r^2 as r \downarrow 0, as long as the angular momentum L is nonzero the repulsion of the centrifugal force will beat the attraction of gravity for sufficiently small r, and the particle will not fall in to the origin. The same is true for any attractive force F(r) = -c/r^p with p < 3. But an attractive inverse cube force can overcome the centrifugal force and make a particle fall in to the origin.

In fact there are three qualitatively different possibilities for the motion of a particle in an attractive inverse cube force F(r) = -c/r^3, depending on the value of c. With work we can solve for 1/r as a function of \theta (which is easier than solving for r). There are three cases depending on the value of

\displaystyle{  \omega^2 = 1 - \frac{cm}{L^2} }

vaguely analogous to the elliptical, parabolic and hyperbolic orbits of a particle in an inverse square force law:

\displaystyle{ \frac{1}{r(\theta)} } = \left\{ \begin{array}{lcl}   A \cos(\omega \theta) + B \sin(\omega \theta) & \text{if} & \omega^2 > 0 \\ \\   A + B \theta & \text{if} & \omega = 0 \\  \\   A e^{|\omega| \theta} + B e^{-|\omega| \theta}  & \text{if} & \omega^2 < 0   \end{array} \right.

The third case occurs when the attractive inverse cube force is strong enough to overcome the centrifugal force: c > L^2/m. Then the particle can spiral in to its doom, hitting the origin in a finite amount of time after infinitely many orbits, like this:

All three curves above are called Cotes spirals, after Roger Cotes’ work on the inverse cube force law, published posthumously in 1722. Cotes seems to have been the first to compute the derivative of the sine function. After Cotes’ death at the age of 33, Newton supposedly said “If he had lived we would have known something.”

The subtlety of the inverse cube force law is greatly heightened when we study it using quantum rather than classical mechanics. Here if c is too large the theory is ill-defined, because there is no reasonable choice of self-adjoint Hamiltonian. If c is smaller the theory is well-behaved. But at a certain borderline point it exhibits a remarkable property: spontaneous breaking of scaling symmetry. I hope to discuss this in my next column.

For more on the inverse cube force law, see:

• N. Grossman, The Sheer Joy of Celestial Mechanics, Birkhäuser, Basel, 1996, p. 34.

For more on Newton’s work involving the inverse cube force law, see:

• Wikipedia, Newton’s theorem of revolving orbits.

• S. Chandrasekhar, Newton’s Principia for the Common Reader, Oxford U. Press, Oxford, 1995, pp. 183–200.

Cotes’ book is

• Roger Cotes, Harmonia Mensuarum, Cambridge, 1722.


The Standard Model (Part 2)

3 November, 2025

Check out my video on the big ideas that go into the Standard Model of particle physics!

In the late 1800s physics had 3 main pillars: classical mechanics, statistical mechanics and electromagnetism. But they contradict each other! That was actually good – because resolving the contradictions helped lead us to special relativity and quantum mechanics.

I explain how this worked, or more precisely how it could have worked: the actual history is far more messy. For example, Planck and Einstein weren’t really thinking about the ultraviolet catastrophe when they came up with the idea that the energy of light comes in discrete packets:

• Helge Kragh, Max Planck: the reluctant revolutionary, Physics World, 1 December 2000.

Then, I sketch out how deeper thoughts on electromagnetism led us to the concept of ‘gauge theory’, which is the basis for the Standard Model.

This is a very quick intro, just to map out the territory. I’ll go into more detail later.

By the way, if you prefer to avoid YouTube, you can watch my videos at the University of Edinburgh:

Edinburgh Explorations.


Applied Category Theory 2026

29 October, 2025

The next annual conference on applied category theory is in Estonia!

Applied Category Theory 2026, Tallinn, Estonia, 6–10 July, 2026. Preceded by the Adjoint School Research Week, 29 June — 3 July.

The conference particularly encourages participation from underrepresented groups. The organizers are committed to non-discrimination, equity, and inclusion. The code of conduct for the conference is available here.

Deadlines

• Registration: TBA
• Abstracts Due: 23 March 2026
• Full Papers Due: 30 March 2026
• Author Notification: 11 May 2026
• Adjoint School: 29 June — 3 July 2026
• Conference: 6 — 10 July 2026
• Final versions of papers for proceedings due: TBA

Submissions

ACT2026 accepts submissions in English, in the following three tracks:

  1. Research
  2. Software demonstrations

  3. Teaching and communication

The detailed Call for Papers is available here.

Extended abstracts and conference papers should be prepared with LaTeX. For conference papers please use the EPTCS style files available here. The submission link is here.

Reviewing is single-blind, and we are not making public the reviews, reviewer names, the discussions nor the list of under-review submissions. This is the same as previous instances of ACT.

Program Committee Chairs

• Geoffrey Cruttwell, Mount Allison University, Sackville
• Priyaa Varshinee Srinivasan, Tallinn University of Technology, Estonia

Program Committee

• Alexis Toumi, Planting Space
• Bryce Clarke, Tallinn University of Technology
• Barbara König, University of Duisburg-Essen
• Bojana Femic, Serbian Academy of Sciences and Arts
• Chris Heunen, The University of Edinburgh
• Daniel Cicala, Southern Connecticut State University
• Dusko Pavlovic, University of Hawaii
• Evan Patterson, Topos Institute
• Fosco Loregian, Tallinn University of Technology
• Gabriele Lobbia, Università di Bologna
• Georgios Bakirtzis, Institut Polytechnique de Paris
• Jade Master, University of Strathclyde
• James Fairbanks, University of Florida
• Jonathan Gallagher, Hummingbird Biosciences
• Joe Moeller, Caltech
• Jules Hedges, University of Strathclyde
• Julie Bergner, University of Virginia
• Kohei Kishida, University of Illinois, Urbana-Champaign
• Maria Manuel Clementino, CMUC, Universidade de Coimbra
• Mario Román, University of Oxford
• Marti Karvonen, University College London
• Martina Rovelli, UMass Amherst
• Masahito Hasegawa, Kyoto University
• Matteo Capucci, University of Strathclyde
• Michael Shulman, University of San Diego
• Nick Gurski, Case Western Reserve University
• Niels Voorneveld, Cybernetica
• Paolo Perrone, University of Oxford
• Peter Selinger, Dalhousie University
• Paul Wilson, University of Southampton
• Robin Cockett, University of Calgary
• Robin Piedeleu, University College London
• Rory Lucyshyn-Wright, Brandon University
• Rose Kudzman-Blais, University of Ottawa
• Ryan Wisnesky, Conexus AI
• Sam Staton, University of Oxford
• Shin-Ya Katsumata, Kyoto Sangyo University
• Simon Willerton, University of Sheffield
• Spencer Breiner, National Institute of Standards and Technology
• Tai Danae Bradley, SandboxAQ
• Titouan Carette, École Polytechnique
• Tom Leinster, The University of Edinburgh
• Walter Tholen, York University

Teaching & Communication

• Selma Dündar-Coecke, University College London, Institute of Education
• Ted Theodosopoulos, Nueva School

Organizing Committee

• Pawel Sobocinski, Tallinn University of Technology
• Priyaa Varshinee Srinivasan, Tallinn University of Technology
• Sofiya Taskova, Tallinn University of Technology
• Kristi Ainen, Tallinn University of Technology

Steering Committee

• John Baez, University of California, Riverside
• Bob Coecke, University of Oxford
• Dorette Pronk, Dalhousie University
• David Spivak, Topos Institute
• Michael Johnson, Macquarie University
• Simona Paoli, University of Aberdeen