Consonance and tuning

Eleven sources on why some notes seem to fit, and how scales get divided.

Consonance is the sense that notes fit together. Tuning decides which pitches are available in the first place. This page lists eleven sources, oldest first where dated. Two ask how listeners come to accept noise and difficult music.

Themes here: What the senses do (4), Getting good (4), Given away (3), Rules that generate (2), Art through code (2), How forms evolve (1), Saying it exactly (1), Taste and judgment (1).

Harmony Explained

Daniel Shawcross Wilkerson. February 2012, revised June 2014. arXiv preprint.

A preprint that tries to derive the major scale and chords from physics and computation. This wiki has read only its abstract and the discussion around it, and says so.

John Coltrane's Tone Circle

Roelant Hollander. 22 January 2016. Personal blog post.

A long reading of the drawing known as Coltrane's tone circle. It gathers competing interpretations, from scales to geometry to mysticism. It is included because it shows how much meaning can gather around one diagram.

The cultural evolution of distortion in music (and other norms of mixed appeal)

Gregory A. Bryant and Paul E. Smaldino. 3 April 2025. Peer-reviewed journal paper with an agent-based model.

The paper links musical distortion to nonlinear phenomena in animal vocal signals. It adds an agent-based model of how groups choose a timbre norm. Only the abstract was read, so model details and results are unknown.

Show HN: See chords as flags – Visual harmony of top composers on musescore

Posted by vitaly-pavlenko, with replies from many commenters. 5 November 2025. Hacker News discussion thread about a colored piano-roll notation tool.

The thread opens with the creator describing Rawl, a piano roll coloring each scale degree. Replies debate whether such a view beats sheet music for harmony. The poster answers many questions about the color design and annotation work.

Harmony Explained on Hacker News

Posted by surprisetalk, with a reply from the paper's author. 28 July 2026. Hacker News thread.

A thread of 114 comments on Wilkerson's paper. Musicians dispute whether simple ratios and fixed feelings explain musical experience. The paper's author joins in and asks people to read it first.

Music theory for programmers

Luke Haas, RunJS. 17 August 2026. Company blog post, with runnable code.

A long tutorial that derives notes, scales and chords in runnable JavaScript. Its strength is treating tuning as a compromise you can compute. Its critics say it is mostly acoustics rather than theory.

Music Theory for Programmers on Hacker News

Posted by birdculture, with replies from many commenters. 2 September 2026. Hacker News thread.

A thread of 249 comments on the Haas tutorial. Trained musicians argue that it is acoustics rather than theory. Others debate how much of music is physics and how much is convention.

Music Theory for the 21st-Century Classroom

Posted by aanet, with replies from many commenters. 10 September 2026. Hacker News discussion thread about an open online music theory textbook.

The thread discusses an open college textbook hosted by the University of Puget Sound. Replies wander from the book itself to notation, tuning and how theory should be taught. Many commenters are working musicians or programmers who disagree with each other.

xenharmlib documentation

xenharmlib project. Current as of version 0.4.0. Software documentation for a free library.

Documentation for a free Python library that calculates with scales in many tunings. It is a toolset, not an argument. It is the practical end of this subject.

A beginner's guide to modern classical music

Luke Muehlhauser. Undated. Personal blog post, a curated listening guide with links.

Luke Muehlhauser lists dozens of recordings in playlists, ordered from most accessible to least. The post tells how the author came to love the genre. It offers a listening quiz and guesses why the music is unpopular. It cites no data.

What’s new in xenharmlib 0.4.0?

Fabian Vallon (named in the page's copyright line). Undated. Software release notes with code examples.

The page announces xenharmlib 0.4.0 and walks through its new features with short code samples. The main change is support for Just Intonation and other regular temperaments. Evidence is the library's own example output, written by its developer.

Connections to other subjects

These links are this wiki's own reading, not claims the sources make.

Glossary

Agent-based model
A simulation in which many simple virtual individuals follow rules and interact.
Atonal
Music that has no central key or home note.
C clef
A clef that marks where middle C sits, used by viola and some other instruments.
Cadence
A short chord pattern that ends a phrase, such as V to I.
Cents
A pitch measure, with 1,200 to the octave.
DAW
Software for recording and arranging music, short for digital audio workstation.
Enharmonic
Describes two written notes, such as A sharp and B flat, sharing a pitch.
Equal temperament
A tuning that divides the octave into equal steps.
Generator interval
An interval that is stacked repeatedly to produce all the notes of a tuning.
Interval class vector
A count of how often each interval type appears among the notes of a set.
Just intonation
A tuning built from simple frequency ratios.
Meantone
A family of tunings that flatten the fifth slightly to improve the thirds.
Minimalism
A style built on repeating a few short musical phrases with slow change.
Nonlinear phenomena
Irregular sound features, such as roughness or chaos, in animal and human voices.
Norm
A shared habit or standard within a group.
Piano roll
A grid view of music where each note is a bar placed by pitch.
Pitch class
A note regardless of its octave.
Postminimalism
Minimalism that is mixed with other influences such as romantic harmony.
Pythagorean comma
The small gap between twelve pure fifths and seven octaves.
Pythagorean tuning
A tuning built by stacking pure fifths, each a 3 to 2 ratio.
Regular temperament
A tuning in which every note is built from a few repeated generator intervals.
Roman numeral analysis
A way of naming chords by their place in a key, like I or V.
Scale degree
A note's numbered position in a scale, counted from the tonic.
Schenkerian analysis
A method of reducing a piece to its underlying harmonic and melodic structure.
Secondary dominant
A chord that briefly acts as the V of a chord other than the tonic.
Serialism
A method of composing that applies a fixed series of notes or other elements.
Shape notes
A teaching notation that gives each scale degree a distinct note-head shape.
Timbre
The tone quality that distinguishes one sound source from another.
Tonic
The home note of a key, the one that feels like a resting place.
Voice leading
The way each separate line of a chord progression moves from note to note.
Whole-tone scale
A six-note scale with equal steps of two semitones.
Xenharmonic
Describes music that uses tunings beyond the standard twelve equal steps per octave.