# Equal temperament

An equal temperament is a musical temperament or tuning system that approximates just intervals by dividing an octave (or other interval) into steps such that the ratio of the frequencies of any adjacent pair of notes is the same. This system yields pitch steps perceived as equal in size, due to the logarithmic changes in pitch frequency.
In classical music and Western music in general, the most common tuning system since the 18th century has been 12 equal temperament (also known as 12 tone equal temperament, 12 TET or 12 ET, informally abbreviated as 12 equal), which divides the octave into 12 parts, all of which are equal on a logarithmic scale, with a ratio equal to the 12th root of 2, (¹²√2{\textstyle {\sqrt[{12}]{2}}} ≈ 1.05946). That resulting smallest interval, ⁠1/12⁠ the width of an octave, is called a semitone or half step. In Western countries the term equal temperament, without qualification, generally means 12 TET.
In modern times, 12 TET is usually tuned relative to a standard pitch of 440 Hz, called A 440, meaning one note, A, is tuned to 440 hertz and all other notes are defined as some multiple of semitones away from it, either higher or lower in frequency. The standard pitch has not always been 440 Hz; it has varied considerably and generally risen over the past few hundred years.
Other equal temperaments divide the octave differently. For example, some music has been written in 19 TET and 31 TET, while the Arab tone system uses 24 TET.
Instead of dividing an octave, an equal temperament can also divide a different interval, like the equal-tempered version of the Bohlen–Pierce scale, which divides the just interval of an octave and a fifth (ratio 3:1), called a "tritave" or a "pseudo-octave" in that system, into 13 equal parts.
For tuning systems that divide the octave equally, but are not approximations of just intervals, the term equal division of the octave, or EDO can be used.
Unfretted string ensembles, which can adjust the tuning of all notes except for open strings, and vocal groups, who have no mechanical tuning limitations, sometimes use a tuning much closer to just intonation for acoustic reasons. Other instruments, such as some wind, keyboard, and fretted instruments, often only approximate equal temperament, where technical limitations prevent exact tunings. Some wind instruments that can easily and spontaneously bend their tone, most notably trombones, use tuning similar to string ensembles and vocal groups.

## General properties

In an equal temperament, the distance between two adjacent steps of the scale is the same interval. Because the perceived identity of an interval depends on its ratio, this scale in even steps is a geometric sequence of multiplications. (An arithmetic sequence of intervals would not sound evenly spaced and would not permit transposition to different keys.) Specifically, the smallest interval in an equal-tempered scale is the ratio:
    $\ r^{n}=p\$
    $\ r={\sqrt[{n}]{p\ }}\$
where the ratio r divides the ratio p (typically the octave, which is 2:1) into n equal parts. (See Twelve-tone equal temperament below.)
Scales are often measured in cents, which divide the octave into 1200 equal intervals (each called a cent). This logarithmic scale makes comparison of different tuning systems easier than comparing ratios, and has considerable use in ethnomusicology. The basic step in cents for any equal temperament can be found by taking the width of p above in cents (usually the octave, which is 1200 cents wide), called below w, and dividing it into n parts:
    $\ c={\frac {\ w\ }{n}}\$
In musical analysis, material belonging to an equal temperament is often given an integer notation, meaning a single integer is used to represent each pitch. This simplifies and generalizes discussion of pitch material within the temperament in the same way that taking the logarithm of a multiplication reduces it to addition. Furthermore, by applying the modular arithmetic where the modulus is the number of divisions of the octave (usually 12), these integers can be reduced to pitch classes, which removes the distinction (or acknowledges the similarity) between pitches of the same name, e.g., c is 0 regardless of octave register. The MIDI encoding standard uses integer note designations.

### General formulas for the equal-tempered interval
## Twelve-tone equal temperament

12 tone equal temperament, which divides the octave into 12 intervals of equal size, is the musical system most widely used today, especially in Western music.

### History

The two figures frequently credited with the achievement of exact calculation of equal temperament are Zhu Zaiyu (also romanized as Chu-Tsaiyu. Chinese: 朱載堉) in 1584 and Simon Stevin in 1585. According to F.A. Kuttner, a critic of giving credit to Zhu, it is known that Zhu "presented a highly precise, simple and ingenious method for arithmetic calculation of equal temperament mono-chords in 1584" and that Stevin "offered a mathematical definition of equal temperament plus a somewhat less precise computation of the corresponding numerical values in 1585 or later."
The developments occurred independently.$^{(p200)}$
Kenneth Robinson credits the invention of equal temperament to Zhu and provides textual quotations as evidence. In 1584 Zhu wrote:
    I have founded a new system. I establish one foot as the number from which the others are to be extracted, and using proportions I extract them. Altogether one has to find the exact figures for the pitch-pipers in twelve operations.
Kuttner disagrees and remarks that his claim "cannot be considered correct without major qualifications". Kuttner proposes that neither Zhu nor Stevin achieved equal temperament and that neither should be considered its inventor.

#### China

Chinese theorists had previously come up with approximations for 12 TET, but Zhu was the first person to mathematically solve 12 tone equal temperament, which he described in two books, published in 1580 and 1584. Needham also gives an extended account.
Zhu obtained his result by dividing the length of string and pipe successively by ¹²√2{\textstyle {\sqrt[{12}]{2}}} ≈ 1.059463, and for pipe length by ${\sqrt[{24}]{2}}$ ≈ 1.029302, such that after 12 divisions (an octave), the length was halved.
Zhu created several instruments tuned to his system, including bamboo pipes.

#### Europe

Some of the first Europeans to advocate equal temperament were lutenists Vincenzo Galilei, Giacomo Gorzanis, and Francesco Spinacino, all of whom wrote music in it.
Simon Stevin was the first to develop 12 TET based on the twelfth root of two, which he described in van de Spiegheling der singconst (c. 1605), published posthumously in 1884.
Plucked instrument players (lutenists and guitarists) generally favored equal temperament, while others were more divided. In the end, 12-tone equal temperament won out. This allowed enharmonic modulation, new styles of symmetrical tonality and polytonality, atonal music such as that written with the 12-tone technique or serialism, and jazz (at least its piano component) to develop and flourish.

### Mathematics

In 12 tone equal temperament, which divides the octave into 12 equal parts, the width of a semitone, i.e. the frequency ratio of the interval between two adjacent notes, is the twelfth root of two:
    ${\sqrt[{12}]{2\ }}=2^{\tfrac {1}{12}}\approx 1.059463$
This interval is divided into 100 cents.

#### Calculating absolute frequencies

To find the frequency, P$_n$, of a note in 12 TET, the following formula may be used:
    $\ P_{n}=P_{a}\ \cdot \ {\Bigl\ {\sqrt[{12}]{2\ }}\ {\Bigr )}^{n-a}\$
In this formula P$_n$ represents the pitch, or frequency (usually in hertz), you are trying to find. P$_a$ is the frequency of a reference pitch. The indes numbers n and a are the labels assigned to the desired pitch (n) and the reference pitch (a). These two numbers are from a list of consecutive integers assigned to consecutive semitones. For example, A$_4$ (the reference pitch) is the 49th key from the left end of a piano (tuned to 440 Hz), and C$_4$ (middle C), and F♯$_4$ are the 40th and 46th keys, respectively. These numbers can be used to find the frequency of C$_4$ and F♯$_4$:
    $P_{40}=440\ {\text{Hz}}\ \cdot \ {\Bigl{\sqrt[{12}]{2}}\ {\Bigr )}^{(40-49)}\approx 261.626\ {\text{Hz}}\$
    $P_{46}=440\ {\text{Hz}}\ \cdot \ {\Bigl{\sqrt[{12}]{2}}\ {\Bigr )}^{(46-49)}\approx 369.994\ {\text{Hz}}\$

#### Converting frequencies to their equal temperament counterparts

To convert a frequency (in Hz) to its equal 12 TET counterpart, the following formula can be used:
    $\ E_{n}=E_{a}\ \cdot \ 2^{\ x}\ \quad$ where in general $\quad \ x\ \equiv \ {\frac {1}{\ 12\ }}\ \operatorname {round} \!{\Biggl12\log _{2}\left({\frac {\ n\ }{a}}\right){\Biggr )}~.$
E$_n$ is the frequency of a pitch in equal temperament, and E$_a$ is the frequency of a reference pitch. For example, if we let the reference pitch equal 440 Hz, we can see that E$_5$ and C♯$_5$ have the following frequencies, respectively:
    $E_{660}=440\ {\mathsf {Hz}}\ \cdot \ 2^{\left({\frac {7}{\ 12\ }}\right)}\ \approx \ 659.255\ {\mathsf {Hz}}\ \quad$ where in this case $\quad x={\frac {1}{\ 12\ }}\ \operatorname {round} \!{\Biggl\ 12\log _{2}\left({\frac {\ 660\ }{440}}\right)\ {\Biggr )}={\frac {7}{\ 12\ }}~.$
    $E_{550}=440\ {\mathsf {Hz}}\ \cdot \ 2^{\left({\frac {1}{\ 3\ }}\right)}\ \approx \ 554.365\ {\mathsf {Hz}}\ \quad$ where in this case $\quad x={\frac {1}{\ 12\ }}\ \operatorname {round} \!{\Biggl12\log _{2}\left({\frac {\ 550\ }{440}}\right){\Biggr )}={\frac {4}{\ 12\ }}={\frac {1}{\ 3\ }}~.$

#### Comparison with just intonation

The intervals of 12 TET closely approximate some intervals in just intonation. The fifths and fourths are almost indistinguishably close to just intervals, while thirds and sixths are further away.
In the following table, the sizes of various just intervals are compared to their equal-tempered counterparts, given as a ratio as well as cents.
    Interval Name Exact value in 12 TET Decimal value in 12 TET Pitch in Just intonation interval Cents in just intonation 12 TET cents tuning error Unison (C) 2$^{0⁄12}$ = 1 1 0 ⁠1/1⁠ = 1 0 0 Minor second (D♭) 2$^{1⁄12}$ = ${\sqrt[{12}]{2}}$ 1.059463 100 ⁠16/15⁠ = 1.06666... 111.73 -11.73 Major second (D) 2$^{2⁄12}$ = ${\sqrt[{6}]{2}}$ 1.122462 200 ⁠9/8⁠ = 1.125 203.91 -3.91 Minor third (E♭) 2$^{3⁄12}$ = ${\sqrt[{4}]{2}}$ 1.189207 300 ⁠6/5⁠ = 1.2 315.64 -15.64 Major third (E) 2$^{4⁄12}$ = ${\sqrt[{3}]{2}}$ 1.259921 400 ⁠5/4⁠ = 1.25 386.31 +13.69 Perfect fourth (F) 2$^{5⁄12}$ = ${\sqrt[{12}]{32}}$ 1.33484 500 ⁠4/3⁠ = 1.33333... 498.04 +1.96 Tritone (G♭) 2$^{6⁄12}$ = ${\sqrt {2}}$ 1.414214 600 ⁠64/45⁠= 1.42222... 609.78 -9.78 Perfect fifth (G) 2$^{7⁄12}$ = ${\sqrt[{12}]{128}}$ 1.498307 700 ⁠3/2⁠ = 1.5 701.96 -1.96 Minor sixth (A♭) 2$^{8⁄12}$ = ${\sqrt[{3}]{4}}$ 1.587401 800 ⁠8/5⁠ = 1.6 813.69 -13.69 Major sixth (A) 2$^{9⁄12}$ = ${\sqrt[{4}]{8}}$ 1.681793 900 ⁠5/3⁠ = 1.66666... 884.36 +15.64 Minor seventh (B♭) 2$^{10⁄12}$ = ${\sqrt[{6}]{32}}$ 1.781797 1000 ⁠16/9⁠ = 1.77777... 996.09 +3.91 Major seventh (B) 2$^{11⁄12}$ = ${\sqrt[{12}]{2048}}$ 1.887749 1100 ⁠15/8⁠ = 1.875 1088.270 +11.73 Octave (C) 2$^{12⁄12}$ = 2 2 1200 ⁠2/1⁠ = 2 1200.00 0

### Seven-tone equal division of the fifth

Violins, violas, and cellos are tuned in perfect fifths (G D A E for violins and C G D A for violas and cellos), which suggests that their semitone ratio is slightly higher than in conventional 12 tone equal temperament. Because a perfect fifth is in 3:2 relation with its base tone, and this interval comprises seven steps, each tone is in the ratio of ⁷√(3/2){\textstyle {\sqrt[{7}]{3/2}}} to the next (100.28 cents), which provides for a perfect fifth with ratio of 3:2, but a slightly widened octave with a ratio of ≈ 517:258 or ≈ 2.00388:1 rather than the usual 2:1, because 12 perfect fifths do not equal seven octaves. During actual play, however, violinists choose pitches by ear, and only the four unstopped pitches of the strings are guaranteed to exhibit this 3:2 ratio.

## Other equal temperaments
### Five-, seven-, and nine-tone temperaments in ethnomusicology

Five- and seven-tone equal temperament (5 TET Play and {{7 TET}}Play ), with 240 cent Play and 171 cent Play steps, respectively, are fairly common.
5 TET and 7 TET mark the endpoints of the syntonic temperament's valid tuning range, as shown in Figure 1.
* In 5 TET, the tempered perfect fifth is 720 cents wide (at the top of the tuning continuum), and marks the endpoint on the tuning continuum at which the width of the minor second shrinks to a width of 0 cents.
* In 7 TET, the tempered perfect fifth is 686 cents wide (at the bottom of the tuning continuum), and marks the endpoint on the tuning continuum, at which the minor second expands to be as wide as the major second (at 171 cents each).

#### 5 tone and 9 tone equal temperament

According to Kunst (1949), Indonesian gamelans are tuned to 5 TET, but according to Hood (1966) and McPhee (1966) their tuning varies widely, and according to Tenzer (2000) they contain stretched octaves. It is now accepted that of the two primary tuning systems in gamelan music, slendro and pelog, only slendro somewhat resembles five-tone equal temperament, while pelog is highly unequal; however, in 1972 Surjodiningrat, Sudarjana and Susanto analyze pelog as equivalent to 9 TET (133-cent steps Play).

#### 7-tone equal temperament

A Thai xylophone measured by Morton in 1974 "varied only plus or minus 5 cents" from 7 TET. According to Morton,
    "Thai instruments of fixed pitch are tuned to an equidistant system of seven pitches per octave ... As in Western traditional music, however, all pitches of the tuning system are not used in one mode (often referred to as 'scale'); in the Thai system five of the seven are used in principal pitches in any mode, thus establishing a pattern of nonequidistant intervals for the mode." Play
A South American Indian scale from a pre-instrumental culture measured by Boiles in 1969 featured 175 cent seven-tone equal temperament, which stretches the octave slightly, as with instrumental gamelan music.
Chinese music has traditionally used 7 TET.

### Various equal temperaments
#### 19 EDO

    Many instruments have been built using 19 EDO tuning. Equivalent to ⁠ 1 / 3 ⁠ comma meantone, it has a slightly flatter perfect fifth (at 695 cents), but its minor third and major sixth are less than one-fifth of a cent away from just, with the lowest EDO that produces a better minor third and major sixth than 19 EDO being 232 EDO. Its perfect fourth (at 505 cents), is seven cents sharper than just intonation's and five cents sharper than 12 EDO's.

#### 22 EDO

    22 EDO is one of the most accurate EDOs to represent superpyth temperament (where 7:4 and 16:9 are the same interval) and is near the optimal generator for porcupine temperament. The fifths are so sharp that the major and minor thirds we get from stacking fifths will be the supermajor third (9/7) and subminor third (7/6). One step closer to each other are the classical major and minor thirds (5/4 and 6/5).

#### 23 EDO

    23 EDO is the largest EDO that fails to approximate the 3rd, 5th, 7th, and 11th harmonics (3:2, 5:4, 7:4, 11:8) within 20 cents, but it does approximate some ratios between them (such as the 6:5 minor third) very well, making it attractive to microtonalists seeking unusual harmonic territory.

#### 24 EDO

    24 EDO, the quarter-tone scale, is particularly popular, as it represents a convenient access point for composers conditioned on standard Western 12 EDO pitch and notation practices who are also interested in microtonality. Because 24 EDO contains all the pitches of 12 EDO, musicians employ the additional colors without losing any tactics available in 12 tone harmony. That 24 is a multiple of 12 also makes 24 EDO easy to achieve instrumentally by employing two traditional 12 EDO instruments tuned a quarter-tone apart, such as two pianos, which also allows each performer (or one performer playing a different piano with each hand) to read familiar 12 tone notation. Various composers, including Charles Ives, experimented with music for quarter-tone pianos. 24 EDO also approximates the 11th and 13th harmonics very well, unlike 12 EDO.

#### 26 EDO

    26 is the denominator of a convergent to log$_2$(7), tuning the 7th harmonic (7:4) with less than half a cent of error. Although it is a meantone temperament, it is a very flat one, with four of its perfect fifths producing a major third 17 cents flat (equated with the 11:9 neutral third). 26 EDO has two minor thirds and two minor sixths and could be an alternate temperament for barbershop harmony.

#### 27 EDO

    27 is the lowest number of equal divisions of the octave that uniquely represents all intervals involving the first eight harmonics. It tempers out the septimal comma but not the syntonic comma.

#### 29 EDO

    29 is the lowest number of equal divisions of the octave whose perfect fifth is closer to just than in 12 EDO, in which the fifth is 1.5 cents sharp instead of 2 cents flat. Its classic major third is roughly as inaccurate as 12 EDO, but is tuned 14 cents flat rather than 14 cents sharp. It also tunes the 7th, 11th, and 13th harmonics flat by roughly the same amount, allowing 29 EDO to match intervals such as 7:5, 11:7, and 13:11 very accurately. Cutting all 29 intervals in half produces 58 EDO, which allows for lower errors for some just tones.

#### 31 EDO

    31 EDO was advocated by Christiaan Huygens and Adriaan Fokker and represents a rectification of quarter-comma meantone into an equal temperament. 31 EDO does not have as accurate a perfect fifth as 12 EDO (like 19 EDO), but its major thirds and minor sixths are less than 1 cent away from just. It also provides good matches for harmonics up to 11, of which the seventh harmonic is particularly accurate.

#### 34 EDO

    34 EDO gives slightly lower total combined errors of approximation to 3:2, 5:4, 6:5, and their inversions than 31 EDO does, despite having a slightly less accurate fit for 5:4. 34 EDO does not accurately approximate the seventh harmonic or ratios involving 7, and is not meantone since its fifth is sharp instead of flat. It enables the 600 cent tritone, since 34 is an even number.

#### 41 EDO

    41 is the next EDO with a better perfect fifth than 29 EDO and 12 EDO. Its classical major third is also more accurate, at only six cents flat. It is not a meantone temperament, so it distinguishes 10:9 and 9:8, along with the classic and Pythagorean major thirds, unlike 31 EDO. It is more accurate in the 13 limit than 31 EDO.

#### 46 EDO

    46 EDO provides major thirds and perfect fifths that are both slightly sharp of just, and many say that this gives major triads a characteristic bright sound. The prime harmonics up to 17 are all within 6 cents of accuracy, with 10:9 and 9:5 a fifth of a cent away from pure. As it is not a meantone system, it distinguishes 10:9 and 9:8.

#### 53 EDO

    53 EDO has only had occasional use, but is better at approximating the traditional just consonances than 12, 19 or 31 EDO. Its extremely accurate perfect fifths make it equivalent to an extended Pythagorean tuning, as 53 is the denominator of a convergent to log$_2$(3). With its accurate cycle of fifths and multi-purpose comma step, 53 EDO has been used in Turkish music theory. It is not a meantone temperament, which put good thirds within easy reach by stacking fifths; instead, like all schismatic temperaments, the very consonant thirds are represented by a Pythagorean diminished fourth (C-F♭), reached by stacking eight perfect fourths. It also tempers out the kleisma, allowing its fifth to be reached by a stack of six minor thirds (6:5).

#### 58 EDO

    58 equal temperament is a duplication of 29 EDO, which it contains as an embedded temperament. Like 29 EDO it can match intervals such as 7:4, 7:5, 11:7, and 13:11 very accurately, as well as better approximating just thirds and sixths.

#### 72 EDO

    72 EDO approximates many just intonation intervals well, providing near-just equivalents to the 3rd, 5th, 7th, and 11th harmonics. 72 EDO has been taught, written and performed in practice by Joe Maneri and his students (whose atonal inclinations typically avoid any reference to just intonation whatsoever). As it is a multiple of 12, 72 EDO can be considered an extension of 12 EDO, containing six copies of 12 EDO starting on different pitches, three copies of 24 EDO, and two copies of 36 EDO.

#### 96 EDO

    96 EDO approximates all intervals within 6.25 cents, which is barely distinguishable. As an eightfold multiple of 12, it can be used fully like the common 12 EDO. It has been advocated by several composers, especially Julián Carrillo.
Other equal divisions of the octave that have found occasional use include 13 EDO, 15 EDO, 17 EDO, and 55 EDO.
2, 5, 12, 41, 53, 306, 665 and 15601 are denominators of first convergents of log$_2$(3), so 2, 5, 12, 41, 53, 306, 665 and 15601 twelfths (and fifths), being in correspondent equal temperaments equal to an integer number of octaves, are better approximations of 2, 5, 12, 41, 53, 306, 665 and 15601 just twelfths/fifths than in any equal temperament with fewer tones.
1, 2, 3, 5, 7, 12, 29, 41, 53, 200, ... (sequence A060528 in the OEIS) is the sequence of divisions of octave that provides better and better approximations of the perfect fifth. Related sequences containing divisions approximating other just intervals are listed in a footnote.

### Equal temperaments of non-octave intervals

The equal-tempered version of the Bohlen–Pierce scale consists of the ratio 3:1 (1902 cents) conventionally a perfect fifth plus an octave (that is, a perfect twelfth), called in this theory a tritave (play), and split into 13 equal parts. This provides a very close match to justly tuned ratios consisting only of odd numbers. Each step is 146.3 cents (play), or ¹³√3{\textstyle {\sqrt[{13}]{3}}}.
Wendy Carlos created three unusual equal temperaments after a thorough study of the properties of possible temperaments with step size between 30 and 120 cents. These were called alpha, beta, and gamma. They can be considered equal divisions of the perfect fifth. Each of them provides a very good approximation of several just intervals. Their step sizes:
* alpha: ⁹√(3/2){\textstyle {\sqrt[{9}]{\frac {3}{2}}}} (78.0 cents) Play
* beta: ¹¹√(3/2){\textstyle {\sqrt[{11}]{\frac {3}{2}}}} (63.8 cents) Play
* gamma: ²⁰√(3/2){\textstyle {\sqrt[{20}]{\frac {3}{2}}}} (35.1 cents) Play
Alpha and beta may be heard on the title track of Carlos's 1986 album Beauty in the Beast.

### Proportions between semitone and whole tone

In this section, semitone and whole tone may not have their usual 12 EDO meanings, as it discusses how they may be tempered in different ways from their just versions to produce desired relationships. Let the number of steps in a semitone be s, and the number of steps in a tone be t.
There is exactly one family of equal temperaments that fixes the semitone to any proper fraction of a whole tone, while keeping the notes in the right order (meaning that, for example, C, D, E, F, and F♯ are in ascending order if they preserve their usual relationships to C). That is, fixing q to a proper fraction in the relationship q t = s also defines a unique family of one equal temperament and its multiples that fulfil this relationship.
For example, where k is an integer, 12k EDO sets q = ⁠1/2⁠, 19 k EDO sets q = ⁠1/3⁠, and 31 k EDO sets q = ⁠ 2 / 5 ⁠ . The smallest multiples in these families (e.g. 12, 19 and 31 above) has the additional property of having no notes outside the circle of fifths. (This is not true in general; in 24 EDO, the half-sharps and half-flats are not in the circle of fifths generated starting from C.) The extreme cases are 5 k EDO, where q = 0 and the semitone becomes a unison, and 7 k EDO , where q = 1 and the semitone and tone are the same interval.
Once one knows how many steps a semitone and a tone are in this equal temperament, one can find the number of steps it has in the octave. An equal temperament with the above properties (including having no notes outside the circle of fifths) divides the octave into 7 t − 2 s steps and the perfect fifth into 4 t − s steps. If there are notes outside the circle of fifths, one must then multiply these results by n, the number of nonoverlapping circles of fifths required to generate all the notes (e.g., two in 24 EDO, six in 72 EDO). (One must take the small semitone for this purpose: 19 EDO has two semitones, one being ⁠ 1 / 3 ⁠ tone and the other being ⁠ 2 / 3 ⁠. Similarly, 31 EDO has two semitones, one being ⁠ 2 / 5 ⁠ tone and the other being ⁠ 3 / 5 ⁠).
The smallest of these families is 12 k EDO, and in particular, 12 EDO is the smallest equal temperament with the above properties. Additionally, it makes the semitone exactly half a whole tone, the simplest possible relationship. These are some of the reasons 12 EDO has become the most commonly used equal temperament. (Another reason is that 12 EDO is the smallest equal temperament to closely approximate 5 limit harmony, the next-smallest being 19 EDO.)
Each choice of fraction q for the relationship results in exactly one equal temperament family, but the converse is not true: 47 EDO has two different semitones, where one is ⁠ 1 / 7 ⁠ tone and the other is ⁠ 8 / 9 ⁠, which are not complements of each other like in 19 EDO (⁠ 1 / 3 ⁠ and ⁠ 2 / 3 ⁠). Taking each semitone results in a different choice of perfect fifth.

## Related tuning systems

Equal temperament systems can be thought of in terms of the spacing of three intervals found in just intonation, most of whose chords are harmonically perfectly in tune—a good property not quite achieved between almost all pitches in almost all equal temperaments. Most just chords sound amazingly consonant, and most equal-tempered chords sound at least slightly dissonant. In C major those three intervals are:
* the greater tone  T = ⁠ 9 / 8 ⁠  = the interval from C:D, F:G, and A:B;
* the lesser tone  t = ⁠ 10 / 9 ⁠  = the interval from D:E and G:A;
* the diatonic semitone  s = ⁠ 16 / 15 ⁠  = the interval from E:F and B:C.
Analyzing an equal temperament in terms of how it modifies or adapts these three intervals provides a quick way to evaluate how consonant various chords can possibly be in that temperament, based on how distorted these intervals are.

### Regular diatonic tunings

The diatonic tuning in 12 tone equal temperament (12 TET) can be generalized to any regular diatonic tuning dividing the octave as a sequence of steps  T t s T t T s  (or some circular shift or "rotation" of it). To be called a regular diatonic tuning, each of the two semitones ( s ) must be smaller than either of the tones (greater tone,  T , and lesser tone,  t ). The comma κ is implicit as the size ratio between the greater and lesser tones: Expressed as frequencies κ = ⁠ T / t ⁠ , or as cents  κ = T − t  .
The notes in a regular diatonic tuning are connected in a "spiral of fifths" that does not close (unlike the circle of fifths in 12 TET). Starting on the subdominant F (in the key of C) there are three perfect fifths in a row—F–C, C–G, and G–D—each a composite of some permutation of the smaller intervals  T T t s . The three in-tune fifths are interrupted by the grave fifth D–A =  T t t s (grave means "flat by a comma"), followed by another perfect fifth, E–B, and another grave fifth, B–F♯, and then restarting in the sharps with F♯–C♯; the same pattern repeats through the sharp notes, then the double-sharps, and so on, indefinitely. But each octave of all-natural or all-sharp or all-double-sharp notes flattens by two commas with every transition from naturals to sharps, or single sharps to double sharps, etc. The pattern is also reverse-symmetric in the flats: Descending by fourths the pattern reciprocally sharpens notes by two commas with every transition from natural notes to flattened notes, or flats to double flats, etc. If left unmodified, the two grave fifths in each block of all-natural notes, or all-sharps, or all-flat notes, are "wolf" intervals: Each of the grave fifths out of tune by a diatonic comma.
Since the comma, κ, expands the lesser tone  t = s c , into the greater tone,  T = s c κ , a just octave  T t s T t T s  can be broken up into a sequence  s c κ   s c   s   s c κ   s c   s c κ   s , (or a circular shift of it) of 7 diatonic semitones s, 5 chromatic semitones c, and 3 commas  κ . Various equal temperaments alter the interval sizes, usually breaking apart the three commas and then redistributing their parts into the seven diatonic semitones s, or into the five chromatic semitones c, or into both s and c, with some fixed proportion for each type of semitone.
The sequence of intervals s, c, and κ can be repeatedly appended to itself into a greater spiral of 12 fifths, and made to connect at its far ends by slight adjustments to the size of one or several of the intervals, or left unmodified with occasional less-than-perfect fifths, flat by a comma.

### Morphing diatonic tunings into EDO

Various equal temperaments can be understood and analyzed as having made adjustments to the sizes of and subdividing the three intervals— T ,  t , and  s , or at finer resolution, their constituents  s ,  c , and  κ . An equal temperament can be created by making the sizes of the major and minor tones (T, t) the same (say, by setting κ = 0, with the others expanded to still fill out the octave), and both semitones (s and c) the same, then 12 equal semitones, two per tone, result. In 12 TET, the semitone, s, is exactly half the size of the same-size whole tones T = t.
Some of the intermediate sizes of tones and semitones can also be generated in equal temperament systems, by modifying the sizes of the comma and semitones. One obtains 7 TET in the limit as the size of c and κ tend to zero, with the octave kept fixed, and 5 TET in the limit as s and κ tend to zero; 12 TET is of course, the case  s = c  and  κ = 0 . For instance:

#### 5 TET and 7 TET

    There are two extreme cases that bracket this framework: When s and κ reduce to zero with the octave size kept fixed, the result is t t t t t , a 5 tone equal temperament. As the s gets larger (and absorbs the space formerly used for the comma κ), eventually the steps are all the same size, t t t t t t t , and the result is seven-tone equal temperament. These two extremes are not included as "regular" diatonic tunings.

#### 19 TET

    If the diatonic semitone is set double the size of the chromatic semitone, i.e.  s = 2 c (in cents) and  κ = 0 , the result is 19 TET, with one step for the chromatic semitone c, two steps for the diatonic semitone s, three steps for the tones T = t, and the total number of steps  3 T + 2 t + 2 s = 9 + 6 + 4 =  19 steps. The imbedded 12 tone sub-system closely approximates the historically important ⁠ 1 / 3 ⁠ comma meantone system.

#### 31 TET

    If the chromatic semitone is two-thirds the size of the diatonic semitone, i.e. c = ⁠ 2 / 3 ⁠ s , with κ = 0 , the result is 31 TET, with two steps for the chromatic semitone, three steps for the diatonic semitone, and five steps for the tone, where  3 T + 2 t + 2 s = 15 + 10 + 6 =  31 steps. The imbedded 12 tone sub-system closely approximates the historically important ⁠ 1 / 4 ⁠ comma meantone.

#### 43 TET

    If the chromatic semitone is three-fourths the size of the diatonic semitone, i.e. c = ⁠ 3 / 4 ⁠ s , with κ = 0 , the result is 43 TET, with three steps for the chromatic semitone, four steps for the diatonic semitone, and seven steps for the tone, where  3 T + 2 t + 2 s = 21 + 14 + 8 =  43. The imbedded 12 tone sub-system closely approximates ⁠ 1 / 5 ⁠ comma meantone.

#### 53 TET

    If the chromatic semitone is made the same size as three commas,  c = 3 κ  (in cents, in frequency  c = κ³ ) the diatonic the same as five commas,  s = 5 κ , that makes the lesser tone eight commas t = s + c = 8 κ , and the greater tone nine,  T = s + c + κ = 9 κ . Hence  3 T + 2 t + 2 s = 27 κ + 16 κ + 10 κ = 53 κ for 53 steps of one comma each. The comma size / step size is  κ = ⁠ 1 200 / 53 ⁠  ¢ exactly, or  κ = 22.642 ¢  ≈ 21.506 ¢ , the syntonic comma. It is an exceedingly close approximation to 5-limit just intonation and Pythagorean tuning, and is the basis for Turkish music theory.