Day 6 of ∞All days

Monday, 9 November 2026

9 equal steps to the fifth

Carlos α, first expedition: a timbre where 5 of 8 steps land in consonance (an ordinary instrument: 0; Sethares' construction: 3).

Wendy Carlos' alpha scale: no octave at all, but thirds and fifths in reach.

The numbers

An ordinary instrument
0 of 8 steps land
Sethares’ construction
3 of 8 steps land
Tonight’s search
5 of 8 steps land, a new record
The rule it found
Add a stretch exponent to the harmonic series before pulling each partial toward the nearest scale note, improving valley depth while keeping roughness low.
Programs tried
76 programs, 60 valid, across 12 generations
The piece
Alpha Dusk

Tonight’s film

Read the program
const PARAMS = 3;
function timbre(target, p) {
	// scale notes within one period, plus the tonic
	const notes = [1, ...target.steps];
	// build all scale ratios across several periods (octaves) within allowed range
	const maxRatio = 40;
	const maxOct = Math.ceil(Math.log(maxRatio) / Math.log(target.period));
	const scale = [];
	for (let o = -maxOct; o <= maxOct; o++) {
		const factor = Math.pow(target.period, o);
		for (const n of notes) {
			const r = n * factor;
			if (r >= 1 && r <= maxRatio) scale.push(r);
		}
	}
	// number of partials (4‑14)
	const count = 4 + Math.round(p[0] * 10);
	// amplitude roll‑off exponent (0.5‑2.0)
	const tilt = 0.5 + 1.5 * p[1];
	// pull strength (0‑1) and stretch amount (1‑1.3) share knob p[2]
	const pull = p[2];
	const stretch = 1 + 0.3 * p[2];
	const partials = [];
	for (let k = 1; k <= count; k++) {
		// stretch the harmonic series
		const stretched = Math.pow(k, stretch);
		// find nearest scale ratio (within the allowed range)
		let best = stretched, bestDist = Infinity;
		for (const r of scale) {
			const d = Math.abs(Math.log(r / stretched));
			if (d < bestDist) {
				bestDist = d;
				best = r;
			}
		}
		// blend original stretched ratio with the nearest scale ratio
		const ratio = Math.exp((1 - pull) * Math.log(stretched) + pull * Math.log(best));
		const amp = 1 / Math.pow(k, tilt);
		partials.push({ ratio, amp });
	}
	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.