Twelve pure fifths and seven octaves / 十二个纯五度与七个八度 / 純正五度十二回と七オクターブ Article and generation date: 2026-10-29 Files tuning-fifths-lab.py Complete calculation / WAV generator / checks tuning-fifths-results.json Actual numerical and encoded-audio results tuning-fifths-pure-partials.wav Coincident partial reference tuning-fifths-tempered-partials.wav Near-frequency partial pair tuning-fifths-README.txt This file Run python3 tuning-fifths-lab.py > rerun.json Python standard library only, no network, packages or credentials. WAV files are written beside the script. The script overwrites only its two named WAV outputs. Recorded environment: macOS 27.0.1, arm64, CPython 3.12.14. Other platforms may differ in environment fields and final PCM rounding / hashes; compare numerical results within floating-point/16-bit quantization tolerance. Mathematical model and results Ideal octave: 2:1. Pure fifth: 3:2. Reference A4=440 Hz is chosen for examples. Twelve fifths / seven octaves = (3/2)^12 / 2^7 = 531441/524288, not 1. The exact ratio is computed with fractions.Fraction, not a rounded frequency. Cents(r) = 1200*log2(r). Pure fifth: 701.955000865... cents; ET fifth: 700 cents, ratio 2^(7/12). Narrowing: 1.955000865... cents per fifth; comma: 23.460010384... cents. All 13 chain rows (0 through 12 fifths) are kept, folded into a single octave. Starting at 440 Hz, twelve pure fifths folded down seven octaves give 446.003036499... Hz. Equal-tempered fifths return to 440 Hz after folding. References 220/440/880 Hz demonstrate constant cents but scaled Hz differences. Audio construction These are ORIGINAL SYNTHETIC SINE PAIRS, not recordings or complete A/E notes. Pure reference components: 1320 Hz and 1320 Hz, initially in phase. Tempered-pair components: 1320 Hz and 1318.510227651... Hz. These model the lower A4 third harmonic and the upper E5 second harmonic. Predicted beat frequency: 1.4897723485... Hz; period: 0.6712434963... seconds. 48000 samples/s, mono, 16-bit little-endian PCM WAV, 8 seconds, 384000 frames. Linear 20 ms fade at both ends; each complete signal scaled to digital RMS 0.12 before quantization. This is NOT perceptual loudness matching. Each published file is 768044 bytes, with the actual SHA-256 in the report. No recorded performance, licensed music, or borrowed sound samples are included. Checks that actually ran Exact nonclosure; comma equals twelve fifth narrowings in cents; ET octave and twelve-fifth closure within floating-point tolerance; cumulative cents difference of all 13 folded chain rows. Re-open each actual WAV, verify format, 384000 frames, endpoints, no clipping, decoded RMS, and peak. Numerical probes use decoded PCM, not the source array. Goertzel amplitude at the KNOWN component frequencies and an off-frequency 2000 Hz probe. This is a specified-frequency projection, not an independent frequency estimator, FFT peak identification or a frequency-resolution claim. Actual decoded 20 ms RMS windows centered on the predicted maximum (1/beat) and minimum (0.5/beat). In this run min/max is 0.999836... for the pure control and 0.027232... for the tempered pair. No claim that finite windows reach zero. The script stops on a failed assertion. Scope Ideal integer harmonics, exact 2:1 octaves, and fixed reference only. No real piano tuning, strings/inharmonicity model, loudspeaker/room measurement, human audibility threshold, preference study, or performance test. Digital sample/RMS tests do not establish how a particular person will hear it. The audio intentionally isolates only two partials. Do not describe it as a full piano fifth or as an actual instrument recording. Primary sources read 2026-10-29 UNSW Music Acoustics: Note names, MIDI numbers and frequencies https://www.phys.unsw.edu.au/jw/notes.html Kenneth P. Scholtz, Music Theory Online 4.4 (July 1998), Algorithms for Mapping Diatonic Keyboard Tunings and Temperaments; sections 3 and 4. HTML text read. https://mtosmt.org/retrofit/mto.98.4.4/mto.98.4.4.scholtz.php UNSW: Tartini tones and temperament (interval ratios and tuning choices) https://www.phys.unsw.edu.au/jw/tartini-temperament.html UNSW Physclips: Interference beats and Tartini tones https://www.animations.physics.unsw.edu.au/jw/beats.htm UNSW: How harmonic are harmonics? https://phys.unsw.edu.au/jw/harmonics.html UNSW Acoustics FAQ: frequency/interval ratios and stretch tuning https://phys.unsw.edu.au/jw/musFAQ.html The script, numerical results and WAV samples are independently generated for the article. No source illustrations, textbook exercises or audio are bundled.