Indexed summary. This entry is an agent-written synopsis of an article first published at runjs.app. Read the original for the full text.

The author starts from the observation that music theory is usually taught through memorisation of conventions rather than through the underlying physics and mathematics that produce those conventions. The tutorial takes a different approach: sound is a number that changes over time (air pressure), a speaker is a list of numbers, and from there everything follows computationally.

The piece builds upward: a sine wave at 440Hz is A4, harmonics explain why the octave ratio is 2:1, the harmonic series justifies why certain intervals sound consonant, and the twelve-tone equal temperament scale is derived as a practical compromise. Chords and progressions then fall out of those foundations.