Saturday, 7 November 2026
13 equal steps to the tritave
Bohlen–Pierce, first expedition: a timbre where 11 of 12 steps land in consonance (an ordinary instrument: 2; Sethares' construction: 11).
Bohlen–Pierce: a scale that repeats at the twelfth (3:1) instead of the octave.
The numbers
- An ordinary instrument
- 2 of 12 steps land
- Sethares’ construction
- 11 of 12 steps land
- Tonight’s search
- 11 of 12 steps land, a new record
- The rule it found
- add faint “anchor” partials on any scale step that isn’t already covered, deepening the valleys without disturbing the main detuned spectrum
- Programs tried
- 76 programs, 59 valid, across 12 generations
- The piece
- Day 4 — The Tritave Holds
Tonight’s film
Read the program
const PARAMS = 5; // [partials‑count, tilt, stretch‑exp, detune‑max, anchor‑strength]
function timbre(target, p) {
const period = target.period; // e.g. 3 for Bohlen–Pierce
const steps = target.steps; // ratios inside one period
// full scale: original steps, the period itself and a copy one period higher
const scale = [1, ...steps, period];
for (const s of steps) scale.push(s * period);
// ----- knobs -------------------------------------------------
const cnt = 4 + Math.round(p[0] * 20); // 4 … 24 main partials (incl. fund)
const tilt = 0.5 + 1.5 * p[1]; // amp roll‑off exponent (0.5 … 2.0)
const stretch = 1 + 0.3 * p[2]; // harmonic‑stretch factor (1 … 1.3)
const detMax = p[3] * 0.015; // max alternating detune (0 … 1.5 %)
const anchorStrength = p[4]; // 0 … 1
// ----- build main (detuned) partials -------------------------
const partials = [{ ratio: 1, amp: 1 }]; // fundamental fixed
for (let k = 2; k <= cnt; k++) {
// 1. stretched harmonic (helps separate high partials)
const stretched = Math.pow(k, stretch);
// 2. nearest scale ratio (log‑distance)
let nearest = stretched;
let bestDist = Infinity;
for (const r of scale) {
const d = Math.abs(Math.log(stretched / r));
if (d < bestDist) { bestDist = d; nearest = r; }
}
// 3. tiny alternating detune
const sign = (k % 2) ? 1 : -1;
const det = 1 + sign * detMax * (k / cnt);
let ratio = nearest * det;
if (ratio > 40) continue; // respect ceiling
// 4. amplitude roll‑off
const amp = 1 / Math.pow(k, tilt);
partials.push({ ratio, amp });
}
// ----- anchor partials on uncovered scale steps -------------
const maxAmp = Math.max(...partials.map(o => o.amp));
const tolerance = 0.015; // log‑distance tolerance
for (const step of steps) {
// skip if a main partial already sits within tolerance
let covered = false;
for (const ptl of partials) {
if (Math.abs(Math.log(ptl.ratio / step)) < tolerance) { covered = true; break; }
}
if (covered) continue;
// distance to nearest main partial (log‑distance)
let minDist = Infinity;
for (const ptl of partials) {
const d = Math.abs(Math.log(ptl.ratio / step));
if (d < minDist) minDist = d;
}
// anchor amplitude grows with the gap (capped by anchorStrength)
const amp = anchorStrength * 0.2 * maxAmp *
(1 - Math.exp(-Math.pow(minDist / 0.02, 2)));
if (amp < 0.01 * maxAmp) continue; // keep anchors quiet
if (partials.length >= 32) break;
partials.push({ ratio: step, amp });
}
// ----- ensure fundamental loud enough -------------------------
const curMax = Math.max(...partials.map(o => o.amp));
const fund = partials.find(o => Math.abs(o.ratio - 1) < 1e-12);
if (fund && fund.amp < 0.2 * curMax) fund.amp = 0.2 * curMax;
return partials;
}Consonance here is measured with Sethares’ model of sensory dissonance, not by ear. A step lands when it sits at the bottom of a valley in the timbre’s dissonance curve. Perfect harmony is out of reach — pure fifths and thirds never close into one scale — which is why the search does not end.
Every morning, what the night found.
One email a day at 7am Singapore time, with the discovery, the music and the film.