What I Learned Writing an Album in Just Intonation

Pierre Cusa <pierre@osar.fr>
August 2024 (history)
in osar.fr / notes

Just intonation (JI) today falls under the umbrella of microtonal music, because it involves playing "between the notes" of the 12-tone scale we're used to. As I type microtonal, my spellchecker decorates it with a sad squiggle, confirming I've drifted (again) into a topic that's not even in its dictionary. But JI is often described as the way music should naturally sound. So which one is it, an obscure deviation from the norm, or an ideal we should return to?

This post contains all the notes I want to keep after writing an album in JI, specifically using a very uncompromising method called freestyle JI. The album itself isn't the focus here, but it allowed me to get a practical perspective on a topic that's often described more theoretically. This practical perspective is exactly what you'll find here.

Basics of Just Intonation

In order to understand JI, first you have to "empty your cup". Most people's cup is occupied by 12-tone equal temperament (12TET), which defines the notes we're typically allowed to play. To understand 12TET, start with the octave: going up or down one octave means multiplying or dividing the frequency by 2. Then, divide this octave into 12 equally spaced semitones. This "space between semitones" is actually a specific irrational number: đť’” $=\sqrt[12]{2}$. Multiplying by this number 12 times is equivalent to a single multiplication by 2 (the octave):

12-tone equal temperament. Circles contain approximate frequencies in Hertz.
đť’” $=\sqrt[12]{2} \approx 1.0595...$

Just intonation is a broader system which does not equally divide the octave in any way. In JI, you take your reference pitch, then multiply or divide its frequency by any whole number to get playable tones as desired. In other words, all intervals in JI are natural ratios, while in 12TET, this is only the case for the octave.

Example of JI intervals. Circles contain approximate frequencies in Hertz.

In psychoacoustics, it's generally accepted that our perception of harmony relies on the interpretation of intervals as natural ratios. Simplifying a bit, this means JI is an exact representation of the way we perceive harmony, while 12TET gets harmonic significance from the fact that it contains intervals that are good approximations of JI intervals:

JI:
      12TET:
A simple melody in both JI and 12TET.

The theory, so far, tells us that JI should be more consonant than 12TET, but the above examples don't show this convincingly. This is where "writing an album" comes in. To me, making music is the goal of researching it, but it also guides and informs the research, giving a means to judge subjectively whether the results are useful. Below, we'll get to deeper theory, with examples of things that worked noticeably better in JI, but also things that fundamentally don't work in JI.

But before composing in JI, it's necessary to have tools that allow it, and this is more challenging than it might seem. Even simple JI intervals inside a single octave can actually result in an infinity of possible tones, so it seems like we should somehow narrow down the possibilities.

The "Boring" Solution: Scales

Music-making tools, both digital and physical, often assume you want to work with a limited set of predefined tones. This clashes with "raw" JI and its infinite level of detail. The most common solution, both ancient and modern, is to use a subset of JI with 12 tones per octave. Assuming a modern mindset, this effectively turns JI into an alternative tuning for a familiar musical system.

Example of a 12-tone tuning based on JI: the Pythagorean tuning.
Circles contain approximate frequencies in Hertz.

I won't dwell too long on the creation of just-intoned, general-purpose scales, but it's important to understand that this approach is central to the history of music1. There are still some situations where it might make sense to use such scales, but I'll venture to say that in the common case, it's not a great idea. The results easily end up more dissonant than 12TET when the wrong intervals are played, and it's surprisingly hard to avoid the "wrong intervals", something I'll detail further down.

A more creative approach is to experiment with alternative sets of tones that don't attempt to mimic 12TET. These might not have a fixed number of tones per octave, and are often laid out with more consonant tones closer together, which takes some of the edge off the problem mentioned above. These alternative layouts are especially useful to bring physical instruments closer to just intonation.

Not so boring: some instrument layouts focusing on just intonation. Left: Harry Partch's diamond marimba, Right: Jim Snow's JI keyboard.

The Far-Out Solution: Freestyle JI

So far, we've bent to the common view that JI can't be used directly, and that you need to narrow it down to a chosen scale or tuning. But what if we don't want to use a predefined set of tones at all? This is what I've been calling "raw" JI, and it's actually an existing approach called freestyle JI, which means you have to be ready to give each note its individual frequency, with all frequencies being natural ratios of each other. This also has the reputation of being terribly impractical, which is always a selling point for me.

Let's see how freestyle JI can make an interesting composition. Imagine the composition moves through a few chords. In a system of fixed tones, you would look at your context (the current chord, maybe the overall key, etc.) and pick the best-matching tones from your predefined set. My approach to freestyle JI was to redefine which tones are available whenever the context changes, or in fact, at arbitrary moments.

Here's an example of two successive chords which have their "bespoke" tones defined individually:

A Walk through the Ambient Garden by Pure Code 2. reflecting_strings

In the example above, you can compare the same chords in JI and in their closest possible 12TET approximation2. I'll just say that our habituation to 12TET makes things difficult to judge, but to me, a listening test reveals two things that work better in JI: first, "chord 2" is noticeably more consonant and understandable in JI. This is partly because it contains more 7-limit intervals, which are more difficult to reproduce in 12TET. Second, the transition between the two chords flows better in JI than in 12TET. I attribute this to keeping shared tones equal, but constructing other tones directly from the shared ones.

This brings us to the variety of tones between chords, which becomes more obvious when composing. Throwing all the tones into a single tuning or scale would hardly make sense, with tiny sub-semitone intervals like the one between 9/5 in the first chord and 15/8 in the second. More awkward, arbitrary intervals would appear as more chords are added.

By avoiding any global scale or tuning, tones between chords are allowed to become unrelated, and tend to become even more unrelated between non-adjacent chords. This is exactly what happens throughout the album in question: the harmony is consonant and continuous, but if you take a global view, the album actually contains over 40 distinct tones in a single octave. Could I have built a 40-tone scale and used it to compose the whole thing? Not really: there would be no way to predict which ones are required in advance!

Building Chords and Composing in Freestyle JI

This is not a guide on composing in JI, the objective is more to understand the value of JI and to see where it fits. That said, it would be rich to write all this without even giving a hint of the how. Since the examples focus on complex chords, you might ask right away: how do you build these chords?

Chords and transient scales in JI can be built using variants of James Tenney's harmonic crystal growth technique3. It sounds fancy, but it's a natural process: you take a small number of "seed" tones (in the examples above and below, 2 seed tones were used for each chord), and you "grow" the set by finding tones that are most consonant with all the starting points. In this context, Tenney gives a precise definition of consonance in the form of harmonic distance, but different definitions can and should be experimented with. Tenney also describes this process as iterative, where each addition uses the entire previous set as reference, but I prefer to measure distance from nothing but the seeds.

This method can produce a huge variety of chords, especially when slightly modified or constrained in different ways. The relationship between the seeds is perhaps the main determinant for the "feel" of the final chord.

A Walk through the Ambient Garden by Pure Code 6. occultation

The example above is representative of crystal growth, and shows another interesting aspect of this technique: it gives you a direct measure of which tones are central to the chord, and which ones are more peripheral. This can be exploited in composition: do you start with misleading tones, only to reveal the true nature of the chord later on? Or do need to make an impact and state the chord's root immediately? The "order of growth" makes it easy to find this balance, something which is used in this example.

If you think this approach seems impractical to do "by hand", you're completely right. The broader question of which tools suit freestyle JI is a tough one. In my case, I somewhat sidestepped this issue by writing everything in code, for which there's currently no better documentation than the source code itself. That said, nothing in this post is specific to algorithmic music, and I believe that programming should not be necessary to compose in freestyle JI.

The topic of tools, and of deeper practical music theory for composing in this system, is something I would love to dive into, but that's firmly for another day (or lifetime, but we'll get there!) What's really missing here is the counterbalance: I've praised the light side of JI, so all that's left now is to complain about the dark side.

Dissonance in JI: The Devil's Bargain

Rollercoaster Warning

I'm now going to argue the complete opposite of everything written above.

It's sometimes said that 12TET, or even temperaments in general, are mostly "vestigial" when composing digitally. After all, computers shouldn't be limited to a fixed number of keys, holes or frets like physical instruments. So in theory, one can imagine that JI offers strictly more freedom and consonance than 12TET. This is, of course, quite wrong, and in a way that has nothing to do with ease-of-use or tools.

This point is best illustrated using an odd but very useful representation: harmonic lattices.

A harmonic lattice in just intonation.
Values inside the cells are relative to some base frequency, in this case, 440Hz.

To be precise, this is a piece of the infinite 5-limit pitch class lattice (a variant of the tonnetz). Our reference pitch is in the middle. Moving right is equivalent to multiplying the current frequency by 3. Similarly, moving up is a multiplication by 5. All of the results are automatically transposed into a single octave. While more dimensions could be added, this choice of factors is good at representing "mainstream" harmony, and at placing more consonant tones closer together.

Let's zoom out a bit to reveal the most important pattern on the lattice:

Similar tones in just intonation.

Playing on the lattice reveals an inevitable fact: some tones are very similar to each other. Clicking on a tone above highlights the most similar tones. These small intervals are commas, and they make composition in JI difficult, because we don't hear the harmonic relationship that defines them, instead, they appear to us as out-of tune versions of the same tone.

Things get interesting when we represent tempered systems on the lattice. I mentioned that 12TET gets its harmonic significance from the way it approximates JI intervals. This can be heard and visualized by comparing the JI lattice against its corresponding 12TET approximation:

Exactly equal tones in 12TET.

In the 12TET lattice, those similar tones are now exactly equal, in other words, the commas are tempered. In fact, the 12 tones of 12TET are now repeated infinitely across the grid. This is a tiling, which opens up different possibilities for composition: you can harmoniously move in any direction, and magically end up back at your starting point. Let's look at this exact technique being used in the AnĂ­ron chord progression from Howard Shore's soundtrack to The Lord of the Rings. Here, the chords are projected onto the 12TET lattice:

The "AnĂ­ron" chord progression, from Howard Shore's soundtrack to The Lord of the Rings

Above, you can see how harmonic motion in one direction "magically" returns to its starting point, thanks to 12TET's tiling. If you try to replicate this in JI, you're now fighting with commas:

Solution 1 (drift):

Solution 2 (jump):
Attempting and failing to play the AnĂ­ron chord progression in JI.

There are two ways of adapting this chord progression to JI:

12TET naturally merges these small out-of-tune intervals, while distributing any required dissonance evenly over multiple tones. This property exists in other temperaments as well, but 12TET happens to be very good at it. This harmonic technique of "traveling through" 12TET's tiling is neither rare not advanced, it's something that musicians and composers do constantly without even thinking about it. Not only that, but it's common to use single chords that connect tiles together, which would also be impossible in JI. That's why a good part of the music that we know and love does not have any equivalent in JI.

The more you compose in JI, the more you realize the extent of this problem. Even in some very simple chord progressions, our perception of harmony relies on multiple ambiguous connections between tones in different harmonic directions. JI creates perfect intervals for a single interpretation of how tones are connected, but we still hear the other possible interpretations, and they're now more dissonant than with 12TET!

As a consequence, composing in JI is a bit like navigating a minefield. Hidden dissonant intervals are everywhere, and if you don't deliberately avoid them, you're almost guaranteed to simply make things worse than with 12TET. Once you've got a solid intuition for this, then yes, composing in JI can become harmonically rich and varied while remaining consonant.

Thinking in Different Tunings

This article started off with "JI is better than 12TET", then completely reversed positions. I'll cap off this shameless "thesis/antithesis/synthesis" structure by saying that tuning systems are like artistic construction tools: they all do different things, and while 12TET is great, it's a bit like a hammer that's currently being used for everything.

There's also a finer point that underlies this entire article: just intonation is often used as an alternative tuning, but it's more interesting to see it as an entirely different way of composing. Most pieces written in 12TET do not convert well to JI. Similarly, you can do things in JI that don't map well to 12TET. This article gives examples of both.

Music software often offers a "tuning" setting, and then lets you compose using the same old interface. This is interesting to play with, but it's not a good representation of the possibilities of JI, which really call for different ways of representing and reasoning about harmony.

Further reading: It's a tone-eat-tone world out there


  1. The topic of scales based on JI, including their history, is explored in glorious geeky detail by John Baez in his "Just Intonation" series. He takes a different approach to topics that are very close to this article. 

  2. A JI composition can be "converted" to 12TET using a mapping which is fairly consistent as long as we remain under the 11-limit. 

  3. The canonical source for the crystal growth technique is James Tenney's posthumously published From Scratch: Writings in Music Theory. The most relevant chapter is also currently hosted separately on Plainsound Music Edition