Overtonium

Overtonium / Tuning

The tuning system

Three separate axes. TUNE decides how the overtone series is spelled, STRETCH decides whether it is a series at all, and the temperament decides what the keyboard underneath is tuned to. They combine rather than overlap.

TUNE, from equal to just

A drawbar organ is the shortest way into what this control does, because it is the same problem answered the other way round. Every drawbar is a harmonic, but an organ has only the twelve notes of the keyboard to build one out of, so each drawbar is put on the nearest one. The second, fifth and eighth are all fifths an octave apart, which means holding a C puts three G's into the sound. A harmonic series is not spaced that way. Its intervals are whole-number ratios, 2:1, 3:2, 4:3, and apart from the octaves not one of them lands on a key. TUNE is the distance between those two answers, and it is continuous rather than a switch between them.

For harmonic n, the just interval above the fundamental is 1200 * log2(n) cents. Overtonium rounds that to the nearest semitone to get the equal-tempered position, and the remainder is the cent offset the TUNE knob dials in.

semitoneOffset(n, blend) = round(1200*log2(n)/100) + blend * (1200*log2(n) mod 100) / 100

At blend = 1 this is exactly n times the fundamental, so the stack fuses into one timbre. At blend = 0 every partial is on a semitone of the chromatic scale and the same stack reads as a chord. Nothing is written down as a constant, but rounded to whole cents the derivation reproduces the familiar table, which the test suite asserts so it cannot quietly drift.

The same patch on the same note, differing in TUNE and nothing else: every partial at its exact whole-number ratio, then each one pulled to the nearest semitone, then the knob taken slowly from one to the other.

Just Saw

Equal Saw

The whole sweep

Where each partial sits against the nearest semitone Thirty-two rows, one per partial. The line down the middle is the tempered semitone TUNE snaps to at one end of its travel, and each dot is where that partial actually falls as a whole-number ratio. The distance between them is what the knob dials through. Only the octaves, partials 1, 2, 4, 8, 16 and 32, sit exactly on the line. The table below gives the same figures exactly. -50 -25 the semitone +25 +50 n cents from the nearest semitone 1 2 3 4 5 6 7 -31 8 9 10 11 -49 12 13 +41 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Every partial against the semitone TUNE snaps it to. The dot is the whole-number ratio, the line is the tempered position, and the distance between them is what the knob dials through. Only the octaves sit on the line.

Sitting on the line has a consequence worth knowing at the panel: on channels 1, 2, 4, 8, 16 and 32 the knob does nothing to the sound. An octave is 1200 cents in both tunings, so there is nowhere for the blend to take those six, and their readouts stay at 0.0 wherever the knob is. Hovering one of those strips says so rather than leaving you to work it out. They are not stuck, they are just not moved by that knob: STRETCH moves them, and so do DRIFT, the pitch modulator, and the oscillator character, whose rack sits every partial but the first a few cents off spec.

n Semitones Cents Interval n Semitones Cents Interval
1 0 0 prime/octave 17 49 +5 minor second
2 12 0 prime/octave 18 50 +4 major second
3 19 +2 fifth 19 51 -2 minor third
4 24 0 prime/octave 20 52 -14 major third
5 28 -14 major third 21 53 -29 fourth
6 31 +2 fifth 22 54 -49 tritone
7 34 -31 minor seventh 23 54 +28 tritone
8 36 0 prime/octave 24 55 +2 fifth
9 38 +4 major second 25 56 -27 minor sixth
10 40 -14 major third 26 56 +41 minor sixth
11 42 -49 tritone 27 57 +6 major sixth
12 43 +2 fifth 28 58 -31 minor seventh
13 44 +41 minor sixth 29 58 +30 minor seventh
14 46 -31 minor seventh 30 59 -12 major seventh
15 47 -12 major seventh 31 59 +45 major seventh
16 48 0 prime/octave 32 60 0 prime/octave

The two big offsets are the ones worth knowing by ear. The seventh partial lands 31 cents flat of a minor seventh and the eleventh 49 cents flat of a tritone, which is to say halfway between two keys. Those are the partials that make a just-tuned stack sound unlike anything a keyboard can play.

The eleventh has a name in Norway. Its pitch between the fourth and the tritone is the natural fourth of Norwegian folk music, which the willow flute plays because the harmonic series is all it can play. The composer Eivind Groven spent much of his life on it. From 1936 he built organs with up to three pitches behind every key, chosen automatically as the music moved, so an ordinary keyboard could play pure triads in every key and the eleventh partial came out exactly in tune. Here it is the eleventh row with TUNE at just, 551 cents above the octave below it.

Stretch

Nothing real rings at integer multiples of anything. A string with any bending stiffness has partials at n * f0 * sqrt(1 + B * n^2), sharp of the harmonic and increasingly so up the series, and it is that, not the hammer or the soundboard, that makes a piano sound like a piano rather than like a sawtooth. It is also what a tuner is matching when they stretch the octaves: tune the top of the instrument to the theory and it beats against its own overtones.

STRETCH is that stiffness, dialled by what it does to the top partial rather than by its own value, which lives between 0.00003 and 0.008 and means nothing to anyone. At +150 cents, which is a real piano:

Partial 2 8 16 32
Cents sharp of harmonic +0.6 +10.2 +40.0 +150.0

The bottom of the series barely moves and the top of it walks away, which is the shape that matters. Push further and the partials stop agreeing on a fundamental, and the sound stops being a note with a timbre and becomes a bell. Negative pulls them inward instead, which no physical string does and which is worth having anyway.

It is a separate axis from TUNE rather than more of it, and the two combine: equal temperament with heavy stretch is a different object from just intonation with the same stretch. Zero is the plain harmonic series.

One note while STRETCH is taken from a harmonic series out past a piano. The bottom of the series barely moves and the top of it walks away, and somewhere along the way the partials stop agreeing on a fundamental.

STRETCH from 0 to 500 cents

Tuning the keyboard

Everything above is about where a partial sits over the note you played. This is about where that note sits. Settings carries six temperaments.

Temperament Major third Fifth What it is
Equal 400.00 700.00 the reference everything else is measured against
Just (major) 386.31 701.96 pure by construction, chosen interval by interval
Pythagorean 407.82 701.96 every fifth pure, the third pays for it
Quarter-comma meantone 386.31 696.58 fifths narrowed a quarter comma, which makes the third pure
Werckmeister III 390.22 696.09 four fifths narrowed, no wolf, every key playable
Young 392.18 698.04 six narrowed by a sixth, gentler again

They are derived from the circle of fifths rather than copied out as tables of cents. Almost every historical temperament is described by how much each of the twelve fifths is narrowed, so that is what the code says, and the pitch classes fall out of it. The two commas it is all built from come out at 23.460 and 21.506 cents, which are the published figures, and the tests assert the property that defines each temperament rather than the numbers that happen to result: meantone's third pure to a thousandth of a cent, Pythagorean's fifth likewise, Werckmeister at its characteristic 390.2.

Root

Picks which pitch class the temperament is built on, since an unequal temperament is only in tune in the keys near its centre, and that is the point of it. It is greyed out for equal temperament, which has no centre to have.

Reference pitch

415 through 466 Hz. A stays exactly there in every temperament, because the offsets are taken relative to A's own: a tuner tunes A first and works outwards. Only the other eleven notes move.

None of the three travels with a preset. A temperament is a property of the music you are playing rather than of any one sound in it: you set it once and work, and having a patch drag you back to equal in the middle of that would be no help. That includes Init, which clears the patch rather than the session.

One C major chord, twice, on a temperament built on C. Equal spaces the third at 400 cents and Werckmeister III at 390, which is most of the way to the pure 386, so the beating between the third and the root slows almost to a stop.

Equal

Werckmeister III

Tracking

Without TRACK, a patch has the same spectrum at every pitch. Nothing real does. Play up a piano and the top of the series thins out, not because the note changed but because the body has a rolloff that stays where it is while the partials climb up through it.

TRACK is that rolloff, in dB per octave above a fixed corner of 1 kHz, which is around C6. It is measured against the fundamental rather than absolutely, and that is the part that matters: taken absolutely it would be a shelf, making high notes quieter rather than duller, which is not the thing worth having. Normalised, the fundamental keeps its level at every pitch and only the spectrum above it thins.

The consequence falls out of where the corner sits. A bass note has most of its series below 1 kHz and keeps nearly all of it. A treble note whose fundamental is already above the corner loses the full slope across every partial it has. At 6 dB per octave, the 32nd partial keeps 57% of its level at A1 and 4% at A5. Zero is off, and off is exact.

The same five notes an octave apart, twice. With it off the spectrum is the same at every pitch. With it on the bass note keeps nearly all of its series, since most of it sits below the corner, and the top note has walked most of its into the rolloff. Measured on these two files, the partials above the fundamental come to 1.43 times it at C2 either way, and at C6 to 1.45 with tracking off against 0.49 with it on.

TRACK off

TRACK at 6 dB/oct

Drift, the fourth kind of detuning

Per channel rather than global, and random rather than periodic. DRIFT gives a partial a smooth random walk of up to 25 cents, redrawn as the note plays, which is the cassette warble the earlier instruments in this line got from tape. Every partial draws from its own stream, so a stack with drift on it never quite settles, and no two notes drift the same way.

It is the reason a held chord keeps moving without any modulation being dialled in, and it is why the pitch lamp on the PITCH MOD rule reads a needle rather than a pulse: what it shows is where modulation and drift together have the partial at this instant.

One held chord, twice. With drift off a partial sits exactly where it was put. With it on every partial walks its own way and the stack never settles: measured across these files, the eighth partial holds at 0 cents in the first and wanders over 12 cents in the second.

DRIFT off

DRIFT at 18 cents