Barrios AI

Artificial Intelligence for Musicians

  1. Introduction
  2. Emergent Harmonic Structures | Software 1.0
  3. Pythagoras and the Music of the Spheres
  4. Building the Modes from Ancient Theory
  5. Harmonic Ratios in Nature and Music
  6. Musical Mathematics
  7. Exploring Chance and Randomness
  8. Statistics of Sound
  9. Software 2.0 | Deep Learning: Teaching Computers to See
  10. Software 2.0 | Deep Learning: Teaching Computers to Hear
  11. Software 3.0 | Generative AI: Teaching Computers to Read & Write
  12. Software 3.0 | Gemini Notebook as RAG

Chapter 4: Harmonic Ratios in Nature and Music

Free Preview

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)]
harmonics

Continue reading this chapter

You're reading a free preview. Purchase the book to unlock every chapter in Artificial Intelligence for Musicians.

✓ Full book unlocked✓ Every chapter✓ Runnable code✓ Lifetime access

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 →