Tuning & Temperament Explorer
Compare equal temperament, just intonation and historical tunings by ear, count the beats and download tuning files.
Runs in your browser. Nothing is uploaded.
Tunings to compare
Major third C4–E4: in A it beats 10.38 times a second, in B it is beatless.
Choose a reference between 380 and 500 Hz.
A4 always sits exactly at this pitch. Period-instrument groups often tune Baroque music to 415 Hz.
Listen and compare
| Intervalsizes in cents | A Equal temperament | B Just intonation in C |
|---|---|---|
| Major thirdC4–E4pure: 386.31 | 400.0013.69 cents wide10.38 beats/s | 386.31pureno beats |
| Perfect fifthC4–G4pure: 701.96 | 700.001.96 cents narrow0.89 beats/s | 701.96pureno beats |
| Minor thirdE4–G4pure: 315.64 | 300.0015.64 cents narrow17.79 beats/s | 315.64pureno beats |
| Notes (Hz)C4, E4, G4 | 261.63, 329.63, 392.00 | 261.63, 327.03, 392.44 |
The root keeps its equal-tempered pitch in both tunings, so you hear only the other notes move. Beats/s means beats per second. The keyboard and the tables below keep A4 at the reference pitch instead.
Play the keyboard
Tap keys to hold them, then switch between A and B to hear the beats change. Turn off Hold notes to play only while pressed. When a key has focus, your computer keys play too: Z to M for C3 to B3, Q to U for C4 to B4. Escape stops all sound.
Inside the tuning
Just intonation in C. 5-limit just intonation: each note is a small whole-number ratio from the key note, such as 5/4 or 3/2. The main chords of that key are beatless.
- Fifths: 9 pure; 2 narrowed by 21.51 cents (D–A, B♭–F); 1 widened by 19.55 cents (F♯–C♯).
- Major thirds: 0.00 to +41.06 cents from pure, 8 of them pure.
- Wolf: D–A at 680.45 cents, F♯–C♯ at 721.51 cents, B♭–F at 680.45 cents.
Major keys
Minor keys
Each key shows its third and fifth in cents from pure. Select a key to hear its chord.
- Pure or within 2 cents
- 2 to 7 cents from pure
- 7 to 12 cents from pure
- 12 to 17 cents (equal temperament is 13.7 and 15.6)
- 17 to 24 cents (Pythagorean thirds are 21.5)
- More than 24 cents
Your custom tuning A
Twelve fifths must add up to seven octaves, so one fifth takes whatever the others leave.
| Fifth | Tempering | Size (cents) |
|---|
These notes don’t rise from C to B. That’s allowed: the keyboard, tables and files use them exactly as typed.
| Note | Cents from C | Offset from equal (cents) | Frequency (Hz) | Ratio from C |
|---|---|---|---|---|
| C4 | 0.00 | +15.64 | 264.00 | 1/1 |
| C♯4 | 111.73 | +27.37 | 281.60 | 16/15 |
| D4 | 203.91 | +19.55 | 297.00 | 9/8 |
| E♭4 | 315.64 | +31.28 | 316.80 | 6/5 |
| E4 | 386.31 | +1.96 | 330.00 | 5/4 |
| F4 | 498.04 | +13.69 | 352.00 | 4/3 |
| F♯4 | 590.22 | +5.87 | 371.25 | 45/32 |
| G4 | 701.96 | +17.60 | 396.00 | 3/2 |
| G♯4 | 813.69 | +29.33 | 422.40 | 8/5 |
| A4 | 884.36 | 0.00 | 440.00 | 5/3 |
| B♭4 | 1017.60 | +33.24 | 475.20 | 9/5 |
| B4 | 1088.27 | +3.91 | 495.00 | 15/8 |
To set an electronic tuner, use the offsets with A unchanged and calibrate the tuner to your reference pitch.
| Key | Major third (cents) | vs pure | Beats/s | Fifth (cents) | vs pure | Beats/s |
|---|---|---|---|---|---|---|
| C major | 386.31 | 0.00 | 0.00 | 701.96 | 0.00 | 0.00 |
| D♭ major | 386.31 | 0.00 | 0.00 | 701.96 | 0.00 | 0.00 |
| D major | 386.31 | 0.00 | 0.00 | 680.45 | −21.51 | 11.00 |
| E♭ major | 386.31 | 0.00 | 0.00 | 701.96 | 0.00 | 0.00 |
| E major | 427.37 | +41.06 | 39.60 | 701.96 | 0.00 | 0.00 |
| F major | 386.31 | 0.00 | 0.00 | 701.96 | 0.00 | 0.00 |
| F♯ major | 427.37 | +41.06 | 44.55 | 721.51 | +19.55 | 12.65 |
| G major | 386.31 | 0.00 | 0.00 | 701.96 | 0.00 | 0.00 |
| A♭ major | 386.31 | 0.00 | 0.00 | 701.96 | 0.00 | 0.00 |
| A major | 427.37 | +41.06 | 52.80 | 701.96 | 0.00 | 0.00 |
| B♭ major | 386.31 | 0.00 | 0.00 | 680.45 | −21.51 | 17.60 |
| B major | 427.37 | +41.06 | 59.40 | 701.96 | 0.00 | 0.00 |
Beats per second for the major third and fifth above each key note. Thirds wider than pure beat faster as you go up.
Download just-intonation-in-c-a440
Load the .scl together with its .kbm: the .kbm puts the scale on middle C and A4 at your reference pitch. The .tun file is for synths that read AnaMark tuning files.
Hear the comma
Twelve fifths up from C should land on C again, seven octaves higher. Pure fifths overshoot. Narrow them and the gap closes, but each fifth starts to beat.
Use the arrow keys for steps of 0.01 cents.
- 701.96centsEach fifthPure 3:2
- 0.00beats/sBeats in C4–G4The fifth is pure
- +23.46centsLast note against CTwelve fifths: 8,423.46 cents
Twelve fifths add up to 8,423.46 cents against 8,400 for seven octaves, so the last note lands 23.46 cents above C. That gap is the Pythagorean comma.
How to use
- Pick two tunings, for example Equal temperament as A and Just intonation as B, and a reference pitch.
- Choose a chord and press Play A, then B. In equal temperament, listen for the fast wobble of the major third.
- On the keyboard, hold two or three notes and switch between A and B to hear the beats come and go.
- Under Inside the tuning, read how each fifth is tuned, how pure every key is and the full tables.
- Download a Scala .scl file with its .kbm keyboard map, an AnaMark .tun file or a CSV of the table.
Worked example
Input
Tuning A: equal temperament. Tuning B: quarter-comma meantone. Reference pitch A4 = 440 Hz. Chord: C4 major.
What to press
Try an example, then Play A, then B. The root C4 stays at 261.63 Hz in both tunings.
Result
Equal temperament: the third C4–E4 (261.63 and 329.63 Hz) beats 10.38 times a second and the fifth C4–G4 0.89 times. Meantone: the third is pure at 386.31 cents, but the fifth is 696.58 cents, 5.38 cents narrow, and beats 2.43 times a second.
Two more numbers from the same setup. In equal temperament the fifth A3–E4 (220.00 and 329.63 Hz) beats 3 × 220.00 − 2 × 329.63 = 0.74 times a second. Switch tuning B to Werckmeister III to see its circle. Eight fifths are pure and four are narrowed by 5.87 cents each: C–G, G–D, D–A and B–F♯. With Just intonation in C as B, the C4 major chord is beatless. In D4 major, though, the fifth D4–A4 is 680.45 cents and beats 10.88 times a second.
How it works
Cents and frequencies
A cent is 1/100 of an equal-tempered semitone, so an octave is 1200 cents. Cents turn frequency ratios into numbers you can add: a fifth plus a fourth makes an octave.
cents = 1200 × log2(f2 ÷ f1) equal temperament: f = A4 × 2^((n − 69) ÷ 12), where n is the MIDI note number
A4 always sits exactly at the reference pitch you choose. Every other note follows from the tuning’s cents, counted from C.
Each tuning is built from its fifths
A temperament is a chain of twelve fifths around the circle. We start from pure 3:2 fifths of 701.96 cents. We narrow or widen each one by the fraction of a comma its definition states, then fold the notes into one octave. No cents value is copied from a table.
Pythagorean comma = 1200 × log2(3^12 ÷ 2^19) = 23.46 cents syntonic comma = 1200 × log2(81 ÷ 80) = 21.51 cents schisma = Pythagorean comma − syntonic comma = 1.95 cents
| Tuning | How the fifths are tuned |
|---|---|
| Equal temperament | All twelve narrowed by 1/12 Pythagorean comma (1.96 cents). |
| Pythagorean | Eleven pure fifths from E♭ to G♯. G♯–E♭ is a whole Pythagorean comma narrow: the wolf. |
| Quarter-comma meantone | Eleven fifths from E♭ to G♯ narrowed by 1/4 syntonic comma (5.38 cents), which makes eight major thirds pure. G♯–E♭ is the wolf, 35.68 cents wide. |
| 1/3-, 1/5- and 1/6-comma meantone | The same chain with 1/3, 1/5 or 1/6 syntonic comma. With 1/3 the minor thirds are pure. |
| Werckmeister III | C–G, G–D, D–A and B–F♯ narrowed by 1/4 Pythagorean comma (5.87 cents). The other eight are pure. |
| Kirnberger III | C–G, G–D, D–A and A–E narrowed by 1/4 syntonic comma, so C–E is pure. F♯–C♯ is a schisma narrow. The rest are pure. |
| Vallotti | F–C, C–G, G–D, D–A, A–E and E–B narrowed by 1/6 Pythagorean comma (3.91 cents). The other six are pure. Vallotti’s own description used 1/6 syntonic comma; this Pythagorean form is the one usually tuned today under his name. |
| Young’s second temperament | C–G, G–D, D–A, A–E, E–B and B–F♯ narrowed by 1/6 Pythagorean comma, the other six pure. Thomas Young gave this as a simple way to get nearly the effect of his main proposal, now called his first temperament. It is in his letter to the Royal Society dated 1799, printed in 1800. Some lists use the name “Young (1799)” for that first proposal. |
Just intonation uses ratios from the key note instead: 1/1, 16/15, 9/8, 6/5, 5/4, 4/3, 45/32, 3/2, 8/5, 5/3, 9/5 and 15/8. Sources differ for three notes: the semitone, tritone and minor seventh above the key note. Ratios such as 25/24, 64/45 and 16/9 also appear there, so treat ours as one common choice.
Beats
When two notes form an almost pure interval, one harmonic of each nearly coincides. The two drift in and out of step, and you hear the sound swell and fade. The number of swells per second is the difference between those harmonics:
fifth |3f1 − 2f2| fourth |4f1 − 3f2| major third |5f1 − 4f2| minor third |6f1 − 5f2| major sixth |5f1 − 3f2| minor sixth |8f1 − 5f2|
Here f1 is the lower note. In equal temperament with A4 = 440 Hz, C4–E4 gives 5 × 261.626 − 4 × 329.628 = −10.38. So the third beats 10.38 times a second, and the minus sign means it is wider than pure. Beat rates double with every octave up.
Tuning files
The .scl file uses the Scala scale format: a description, the number of notes, then one pitch per line. Pitches are cents from C, and the last line is the octave, 2/1. C itself is left out, as the format asks. The .kbm keyboard map puts the scale’s first note on middle C (MIDI note 60). It tunes A4 (MIDI note 69) to your reference pitch. The .tun file follows the AnaMark tuning file format, version 2.00. It lists all 128 MIDI notes three ways: whole cents, exact cents and offsets from equal tuning. The CSV holds both tables at full precision.
The sound
Notes play as a steady tone of 16 harmonics that grow gradually weaker, a little like a reed organ. That makes the beating harmonics easy to hear. Up to 8 notes sound at once; a ninth replaces the oldest.
Sources
The cents on this page match the published values for Werckmeister III, Kirnberger III, Vallotti and Young’s second temperament. Quarter-comma meantone matches Scala’s own example file.
- Scala scale file format, Huygens-Fokker Foundation
- Specifications of AnaMark tuning file format V2.00, Mark Henning, 2009
- Thomas Young, Outlines of experiments and inquiries respecting sound and light, Philosophical Transactions of the Royal Society 90 (1800), section XVI
- Wikipedia: Werckmeister temperament, Kirnberger temperament, Vallotti temperament, Young temperament, Quarter-comma meantone
FAQ
What’s the difference between equal temperament and just intonation?
Just intonation tunes intervals to small whole-number frequency ratios, such as 3:2 for a fifth and 5:4 for a major third. In its home key the main chords, I, IV and V, are beatless. Other chords are not: in C, the fifth D–A is 21.51 cents narrow. Equal temperament splits the octave into 12 equal semitones of 100 cents. Every key then sounds alike, but each major third is 13.69 cents wider than pure and beats audibly. Press Play A, then B with the default settings to hear it.
Why can’t a piano be perfectly in tune?
Pure intervals don’t add up. Twelve pure fifths overshoot seven octaves by 23.46 cents, the Pythagorean comma, and three pure major thirds fall 41.06 cents short of an octave. With 12 keys per octave, the error has to go somewhere. It can be spread evenly over all fifths, or unevenly so some keys sound purer. Try Hear the comma above.
What temperament did Bach use?
Nobody knows exactly. The few accounts of how Bach tuned are second-hand and vague. Modern proposals, including some read from the drawing on the title page of The Well-Tempered Clavier, are still debated. The collection has a prelude and fugue in all 24 keys. So his tuning had to make every key usable, as the well temperaments here do.
What is a wolf fifth?
A fifth that takes up the error the other fifths leave behind. In quarter-comma meantone, eleven fifths are 5.38 cents narrow. So G♯–E♭ ends up at 737.64 cents, 35.68 cents wider than pure, and beats so fast it howls. Choose that tuning, then the root G♯3 and Perfect fifth, to hear it.
What are cents?
A cent is 1/100 of an equal-tempered semitone, and an octave is 1200 cents. The formula 1200 × log2(f2 ÷ f1) turns frequency ratios into numbers you can add. A pure fifth is 701.96 cents and a pure major third 386.31. A difference of a few cents is easier to hear as beats in a chord than as a change of pitch in one note.
How do I load a .scl file in my synth?
Download the .scl file and the .kbm file with the same name, then load both in the synth’s tuning settings. Surge XT and Pianoteq, for example, read Scala files. The .kbm tells the synth to start the scale on middle C and to put A4 at your reference pitch. Synths that read AnaMark files can take the .tun download instead.
Is A = 432 Hz special?
No. It’s simply another reference pitch. Going from 440 to 432 Hz lowers every note by the same 31.77 cents. The intervals and the character of each temperament stay the same. Only the pitch and the beat rates drop, by 1.8%. Choose 432 above and compare.
How do piano tuners use beats?
They tune by ear to beat rates they know. In equal temperament with A4 = 440 Hz, the major third F3–A3 beats about 6.93 times a second and the fifth F3–C4 about 0.59 times. Each third up the scale beats a little faster. Tuners set one octave this way, then tune the rest by octaves. Set the octave to 3 and the Keys table lists these rates for any tuning.
Updated