Sunday, 8 November 2026
11 equal steps to the octave
11-EDO, first expedition: a timbre where 9 of 10 steps land in consonance (an ordinary instrument: 0; Sethares' construction: 6).
Eleven equal steps, a scale with no fifth and no major third at all.
The numbers
- An ordinary instrument
- 0 of 10 steps land
- Sethares’ construction
- 6 of 10 steps land
- Tonight’s search
- 9 of 10 steps land, a new record
- The rule it found
- add a proximity‑based amplitude boost so partials that sit close to a scale step are louder, deepening the valley dips without increasing self‑roughness.
- Programs tried
- 76 programs, 59 valid, across 12 generations
- Also works for
- 5-EDO (4 of 4), 7-EDO (6 of 6), 8-EDO (6 of 7), 9-EDO (7 of 8), 10-EDO (8 of 9), 13-EDO (9 of 12)
- The piece
- Day 5 — Eleven Without a Fifth
Tonight’s film
Read the program
const PARAMS = 7; // [count, tilt, stretch, pull, attExp, crowd, boost]
function timbre(target, p) {
// 1️⃣ number of partials (4 – 14)
const count = 4 + Math.round(p[0] * 10);
// 2️⃣ overall spectral tilt
const tilt = 0.5 + 1.5 * p[1];
// 3️⃣ harmonic‑stretch exponent (≈1 = plain series)
const stretch = 0.8 + 0.8 * p[2];
// 4️⃣ pull toward nearest scale step (0 = none, 1 = snap)
const pull = p[3];
// 5️⃣ distance‑attenuation curvature (1 = linear, up to 3 = strong)
const attExp = 1 + 2 * p[4];
// 6️⃣ crowding strength (0 = none, 1 = strong)
const crowd = p[5];
// 7️⃣ proximity‑boost strength (0 = none, 1 = max)
const boost = p[6];
// size of one step in log₂, half‑step for distance‑based scaling
const stepLog = Math.log2(target.period) / target.steps.length;
const halfStep = stepLog / 2;
// scale degrees (including tonic) – examined in every octave
const degrees = [1, ...target.steps];
const partials = [];
// ----- generate stretched‑and‑pulled partials -----
for (let k = 1; k <= count; k++) {
// original stretched harmonic ratio
const base = Math.pow(k, stretch);
// nearest scale degree across octaves (ratio ≤ 40)
let bestRatio = base;
let bestDiff = Infinity;
for (let oct = 0; ; oct++) {
const octMul = Math.pow(target.period, oct);
if (octMul * degrees[degrees.length - 1] > 40) break;
for (const d of degrees) {
const r = d * octMul;
if (r > 40) continue;
const diff = Math.abs(Math.log2(base / r));
if (diff < bestDiff) {
bestDiff = diff;
bestRatio = r;
}
}
}
// blend original harmonic toward its nearest scale degree
const ratio = Math.exp((1 - pull) * Math.log(base) + pull * Math.log(bestRatio));
// base amplitude with spectral tilt
let amp = 1 / Math.pow(k, tilt);
// stronger distance‑based attenuation (non‑linear)
amp *= Math.pow(0.5, (1 - pull) * Math.pow(bestDiff / halfStep, attExp));
partials.push({ ratio, amp, diff: bestDiff });
}
// ----- crowding attenuation (reduces amplitudes of close‑spaced partials) -----
const cbBase = 0.02; // ~24 cents in log₂
const crowdExp = 1 + 3 * crowd; // 1 … 4
for (let i = 0; i < partials.length; i++) {
const ri = partials[i].ratio;
let minDist = Infinity;
for (let j = 0; j < partials.length; j++) {
if (i === j) continue;
const rj = partials[j].ratio;
const d = Math.abs(Math.log2(ri / rj));
if (d < minDist) minDist = d;
}
const factor = Math.min(1, Math.pow(minDist / cbBase, crowdExp));
partials[i].amp *= factor;
}
// ----- proximity‑based boost (louder when close to a scale step) -----
const sigma = halfStep; // spread of the Gaussian
for (const pt of partials) {
const g = Math.exp(- (pt.diff * pt.diff) / (2 * sigma * sigma));
pt.amp *= 1 + boost * g; // up to (1+boost)× when exactly on a step
}
// ----- ensure fundamental loud enough -----
const maxAmp = Math.max(...partials.map(q => q.amp));
const fund = partials.find(q => Math.abs(q.ratio - 1) < 1e-12);
if (fund && fund.amp < 0.2 * maxAmp) fund.amp = 0.2 * maxAmp;
// ----- final clean‑up -----
return partials.slice(0, 32).map(({ ratio, amp }) => ({ ratio, amp }));
}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.