Chapter 4: Harmonic Ratios in Nature and Music
4.1 Universal Harmony: Ratios in Nature
Harmony is everywhere: spiral galaxies, hurricanes, seashells, moons locked in orbital resonance (Jupiter's three inner moons orbit in a 1:2:4 ratio), atoms vibrating at set frequencies. It's even carved into the scroll of a double bass, whose lowest string hides a ladder of ghost notes above every note it plays. Early philosophers saw such patterns as proof of an ordered universe, built on the same whole-number ratios that make musical intervals sound right.
4.2 Harmonic and Overtone Series
A vibrating string produces a harmonic series: integer multiples of a base frequency. These overtones create the natural template for musical intervals.
# Base frequency
base_frequency = 440 # A4
# First 10 harmonics
harmonics = [base_frequency * (n + 1) for n in range(10)]
harmonicsContinue reading this chapter
You're reading a free preview. Purchase the book to unlock every chapter in Artificial Intelligence for Musicians.
Want a hand with the code or building your own setup?
I'm an AI/ML engineer and a professional musician. Bring a question, a real project, a tool you wish existed, or a workflow that's eating your time, and we'll build it on your machine with your files. First call is free, 15 minutes, no commitment.
Book a free 15 minute call →