r/creativecoding • u/lukehaas • Sep 04 '26
I built an interactive article that derives music theory from scratch in raw Web Audio
I can't play an instrument, so I worked out music theory from first principles in JavaScript instead, starting from a single oscillator.
Every example is editable and runs in the page, so you can change a number and hear it. No audio libraries, just raw Web Audio.
8
Upvotes
2
u/azurelimina Sep 04 '26
Calling this “derivation” pf music theory is a stretch. You wrote an article that teaches what equal temperament is for, and then waved a hand at basic triadic harmony.
If this was really just first principles, then why is everything textbook audio and basic music theory?