Lesson 23 — Advanced Musical Mathematics

Polyrhythms, phrase mathematics, and the numbers that make music move.

← Back to Tutorials

The Hidden Math Behind Music

Everything we have covered so far — beats, bars, note durations, and tempo — is built on numbers. Once you start seeing music as a set of overlapping cycles, you can predict where a phrase will end, where tension will peak, and where a resolution will land.

Advanced musical mathematics is not about memorizing formulas. It is about recognizing patterns: ratios, subdivisions, least common multiples, and how different cycles line up over time.

What Is a Polyrhythm?

A polyrhythm happens when two or more rhythms with different subdivisions are played at the same time. The simplest example is 3 against 4: one voice plays three evenly spaced pulses while another plays four pulses in the same span.

At first the two rhythms feel independent. But because they share the same underlying grid, they eventually meet back on the downbeat. That meeting point is called the resolution.

The math is straightforward: the resolution occurs after the least common multiple (LCM) of the two numbers. For 3 and 4, the LCM is 12, so the pattern resolves every 12 beats.

  • 2 : 3 resolves every 6 beats.
  • 3 : 4 resolves every 12 beats.
  • 4 : 5 resolves every 20 beats.
  • 5 : 7 resolves every 35 beats.

The larger the numbers, the longer the tension builds before the release.

Phrases, Sections & Resolution

A phrase is a musical idea stretched across a specific number of bars. In most dance and electronic music, phrases line up in powers of two: 4, 8, 16, 32, or 64 bars. Those boundaries are where producers add or remove elements, introduce a fill, or drop the bass.

A polyrhythmic resolution can act like an invisible phrase boundary. Even if the harmony and melody stay the same, the moment the conflicting rhythms snap back together creates a natural sense of arrival. Composers use this to extend a section, delay a drop, or create a rhythmic illusion of speeding up or slowing down.

Understanding these numerical patterns matters because:

  • Analysis — you can hear why a track feels like it is turning a corner even when nothing obvious changed.
  • Composition — you can place tension and release exactly where you want them.
  • Performance — you know when a safe mix-in point is coming, even in rhythmically complex tracks.

The deeper your understanding of these patterns, the more doors open for creative expression. Rhythm becomes a tool you shape, not a grid you are trapped inside.

Polyrhythm Lab

Use the device below to build a polyrhythm. Choose two subdivisions, set a tempo, and press Play. The outer ring shows Voice A, the inner ring shows Voice B, and the orange hand tracks one full resolution cycle. Watch how the voices start together, drift apart, and realign at the top.

POLYRHYTHM LAB
3 : 4 — resolution every 12 beats
Press Play to start
3
4
90 BPM

🎧 Monakai Pro Tip

Start with 3:4 and count out loud: 1-2-3 in one hand and 1-2-3-4 in the other. At first it feels like patting your head and rubbing your stomach, but once your brain maps the LCM, the pattern becomes one continuous shape instead of two separate rhythms.

← Synthesizers

Key Takeaways

Practice This

Open your DAW and apply one idea from this lesson to a 16-bar loop. Don't worry about making a full track — just experiment until the concept feels natural in your hands.

Try Monakai's free VST3 plugins to hear these ideas in action, and check the music production blog for more tips.