Wednesday, July 23, 2025

Cyclic Paths in Tuning

This diagram shows relationships between the sixteen ways to tune a diatonic scale using just intonation. Each arrow in the diagram represents moving from one tuning to another by shifting a single note by a syntonic comma. The arrows point in the direction of raising the pitch of the note. The diagram has a loop: once all seven notes have been raised by a syntonic comma, one has returned to the same tuning structure that one started with, just a tad higher.

I've made diagrams for each of the sixteen tunings, showing the just tuned perfect fifths, major thirds, and minor thirds. In this first tuning, for example, there is no arrow from G to D. In conventional equal tempered tuning, every interval of seven half steps is the same. In just intonation, not all similar intervals can be tuned the same. In this first tuning, the G-D interval is tuned to a 40:27 frequency ratio, and will sound rather harsh.

Here is an example of tuning 1. I used 87edo to create these examples, rather than just intonation, because my algorithmic composition software works mainly with edo. This software uses weighted random choices to decide what pitches to play. The weights are computed based on the consonance or dissonance of intervals between related notes. So with tuning 1 for example, the program will not very often put a G near a D. It will much more often put A and D near each other.

Here is an example of tuning 2.

Here is an example of tuning 3.

Here is an example of tuning 4.

Here is an example of tuning 5.

Here is an example of tuning 6.

Here is an example of tuning 7.

Here is an example of tuning 8.

Here is an example of tuning 9.

Here is an example of tuning 10.

Here is an example of tuning 11.

Here is an example of tuning 12.

Here is an example of tuning 13.

Here is an example of tuning 14.

Here is an example of tuning 15.

Here is an example of tuning 16.

Saturday, July 19, 2025

Diatonic Scale in Just Intonation

I am continuing to explore conventional scales, like the 12 notes of a piano or the 7 white notes, tuned with just intonation.

This interval graph is a simple way to tune a piano - just a little bit out of the ordinary. Here is an algorithmic example using this tuning.

Just toying with possibilities, I came up with a tweaked version:

Here is an algorithmic example in this tuning. This network still has a diatonic scale as a connected subgraph, but this subgraph does not appear as any of the seven tuning modes I listed a few days ago. This got me wondering: how many ways are there to just tune a diatonic scale?

It was a pretty simple tweak to the code I wrote that counted 41844 ways to tune all twelve notes of the piano with just intonation. Looking just at the seven white notes, and requiring these seven notes to be all interconnected by simple just ratios - there are 16 ways to tune a diatonic scale! Here is a list.

Thursday, July 17, 2025

Non-Diatonic

I hadn't realized how many ways the 12 conventional notes could be tuned in just intonation!There are so many possibilities with temperaments, with scale sizes... but even with this very restricted approach, there is a lot of room for exploration!

Many of the tunings will be oddly shaped with few options for harmonic movement. Many will be based on conventional diatonic tuning, with the usual seven note pattern connected by close harmonic relationships. The above tuning network does not fit the diatonic pattern. The core of the pattern consists of the two short chains of perfect fifths, C#, Ab, Eb, and E, B, F#. Either A or Bb could be added to make a diatonic scale, but both A and Bb are not directly related.

Here is an algorithmic example of this non-diatonic tuning.

This piece was created in 53edo, which is quite close to just intonation. The table above shows just tuning and also the 53edo approximation for this interval network.

It's simple enough to move A and Bb in the network so that diatonic scales are supported. Here E major and Ab minor will be tuned properly:

Here's a piece in this more conventional tuning.

Tuesday, July 15, 2025

41844 Ways to Tune a Piano

Here's the big list I generated! This gives twelves pitches per octave, as fractions and as cents values. The twelve pitches in the octave all have to be related to each other by just intervals. In each tuning, there is a tree of simple intervals that relates the twelve pitch classes.

One could certainly extend the notion of simple intervals, e.g. to include ratios like 8:7. How exactly these intervals should appear on the piano keyboard, I don't know. With this list of 41844 tunings, the intervals appear on the keyboard in their conventional way: minor thirds are three half-steps, etc.

Monday, July 14, 2025

Just Intonation

Here is a puzzle: how many ways are there to tune a piano using just intonation? The answer will of course depend on the exact rules.

  • All octaves are perfect: C5 is twice the frequency of C4, etc.
  • A4 is fixed to 440 Hz.
  • Each note must be tuned to at least one other note by a just interval, one of
    • an octave 2:1
    • a perfect fifth 3:2
    • a perfect fourth 4:3
    • a major third 5:4
    • a minor third 6:5
    • a major sixth 5:3
    • a minor sixth 8:5
  • these interval relationships must correspond to convention. E.g. if E is linked to C by an just interval, that interval must be a major third.
  • there must be a path of these just intervals connecting any two notes
I think these rules are enough to define the puzzle.

The diagram above provides a hint that the number of ways to tune a piano with just intonation is likely quite large. Writing a bit of software to enumerate the possibilities shouldn't be too difficult...

Sunday, July 13, 2025

Interval Networks

I am continuing to explore the tuning modes I posted about yesterday. The table of fractions I posted then is compact, but difficult to interpret in terms of simple relationships. So I have made graph or network diagrams for a few of the modes.

Above is a diagram for mode 1. As with the diagrams in the post from a couple days ago for diatonic modes, the green arrows represent perfect fifths, the blue arrows are major thirds, and the red arrows are minor thirds.

This is a diagram for mode 7.

This is a diagram for mode 5. If you remove all the black keys, you can see that it corresponds to the 5th diatonic mode that I posted two days ago. There are seven diatonic modes and twelve dodecatonic modes, so they don't line up exactly. But each diatonic mode will appear as a sort of spine inside at least one of the dodecatonic modes, and their orderings are consistent with each other.

There are many ways to use just intonation to tune the twelve notes on a piano, and to step along a path through these options. I chose this particular approach because it is consistent with the diatonic modes I described.

Yesterday I posted algorithmic examples for modes 1 and 7. Here is an example for mode 5. I've been tweaking my code to work better with these examples. Usually I am experimenting with temperament, working to traverse commas that a tuning tempers out. Temperament creates a non-trivial topology for the interval networks. This topology combines with the non-trivial topology of the rhythmic structure to create knots, so the order that emerges from the thermodynamic simulation doesn't collapse into triviality. These just tuned interval graphs have a trivial topology, i.e. there are no cycles, which means there are no knots that prevent collapse. My approach with these tunings is mostly just to keep the temperature higher. With this piece, I gradually lowered the temperature, watching for some pitch class to start to dominate. So this piece is more about order just starting to emerge, which will happen before the phase transition, i.e. at a higher temperature than most of what I post. Anyway, it still sounds fun enough for me!

Saturday, July 12, 2025

Twelve-Tone Modes

Yesterday I posted about an approach to diatonic modes through tuning: there's more than one way to tune the seven notes of the scale using just intonation! I got to wondering whether the cycle of syntonic shifts could be extended to just tuning of all twelve notes on the piano keyboard. Turns out to be quite natural!

The first row here, the first mode, matches Kyle Gann's approach to just tuning. Just like the diatonic tuning modes I posted yesterday, the sequence of modes shifts notes one by one up by a syntonic comma. In this table I have shown mode 6 twice: since C is being used as a reference pitch, I shifted the whole tuning back down to keep C at 1/1. The seven modes I posted yesterday are the same as these modes when the tuning for the black piano keys are ignored.

I suppose I should produce twelve sample compositions as examples for these twelve modes, but for now I have just made examples for mode 1 and mode 7.