Read The Times Australia

Daily Bulletin

How a little mathematics can help create some beautiful music

  • Written by: Andrew J. Milne, Postdoctoral Research Fellow in Music Cognition and Computation, Western Sydney University

Since the time of Pythagoras around 500 BCE, music and mathematics have had an intimate and mutually supportive relationship.

Mathematics has been used to tune musical scales, to design musical instruments, to understand musical form and to generate novel music. But what can mathematics say about one of the most common features of contemporary music – rhythmic loops?

Repeated rhythmic loops are an essential component of most electronic dance music and hip-hop, and also play an important role in rock, jazz, Latin and non-Western music.

Now, two mathematical models of rhythmic loops – made in a free software application called XronoMorph – can be used to generate exciting new musical structures that would otherwise be hard to compose or perform.

XronoMorph: An Introduction

Rhythmic loops: Circles and polygons

A natural geometrical characterisation of a periodic structure, such as a rhythmic loop, is as a circular arrangement of points. You can travel clockwise around a circle but inevitably you come back to where you started.

A common feature of rhythmic loops is that they are multilevel. For example, in Latin percussion, different instruments play different interlocking patterns that may or may not coincide. Such rhythms can be depicted by multiple polygons on the same circle.

A simple geometrical representation is to draw lines that make each of these independent levels into an independent polygon. In this way, a multilevel rhythm becomes a collection of inscribed polygons.

image Clave (top) + Conga (bottom) rhythm in score notation. Andrew Milne, Author provided image Clave (red) + Conga (blue) rhythm as polygons. Andrew Milne, Author provided

But which polygons?

There are more than 17 trillion different rhythms, and that is only counting rhythms with three levels where every beat occurs at one of 16 distinct time locations (16 being a very common temporal subdivision in music).

But, realistically, only a small proportion of these are of musical interest. The trick is to find them.

Two mathematical principles – well-formedness and perfect balance – allow us to easily navigate two distinct rhythmic sub-spaces that are of musical interest, but hard to explore with traditional computational tools or notation.

Well-formed polygons

Well-formedness elegantly generalises three properties commonly found in real-world multilevel rhythms:

  • each rhythmic level comprises only a small number of distinct beat lengths, often only one or two;

  • each level’s beats are fairly evenly spaced in time – there aren’t sudden clusters of events followed by long gaps; and

  • the rhythmic levels are hierarchical – there is a slow and metrically dominant level; above this is a faster and weaker level that splits the previous level’s beats; above this is an even faster and weaker level that splits the previous level’s beats; and so on.

Every level of a well-formed rhythm has two beat lengths: a long beat and a short beat. The length of a given beat is the time between its onset and the onset of the following beat.

A multilevel well-formed rhythm can then be fully defined by three numerical parameters: the numbers of long and short beats in the lowest level rhythm, and the ratio of the sizes of its long and short beats.

From these three numbers, an entire rhythmic hierarchy can be calculated, such that each level has no more than two beat lengths, each level arranges these beat lengths to make them as evenly spaced as possible and each successive level in the hierarchy is created by splitting the long beats of the level below.

Using XronoMorph, the above three parameters can be freely manipulated. The rhythmic hierarchy emerging from them often has great aesthetic appeal. Every level is related to every other level and is also intrinsically well-formed. Together, they create a somewhat self-similar and interwoven structure reminiscent of fractals.

A demonstration of how a well-formed hierarchy is built, and the effect of the lowest level’s beat-size ratio.

Perfectly balanced polygons

Perfect balance is a mathematical principle that can generalise polyrhythms, a type of rhythm commonly used in sub-Saharan African music.

Unlike well-formed rhythms and most Western rhythms, polyrhythms are not hierarchical. They are more like an alliance of different rhythmic levels, each of equal status.

In a polyrhythm, two or more levels, each comprising evenly spaced beats, are superimposed.

Geometrically, they are combinations of regular polygons like equilateral triangles, squares, regular pentagons, and so forth. In real-world polyrhythms, beats from all levels typically coincide at a single location in the period.

A standard 2:3:6 polyrhythm. For clarity, the hexagonal level is not shown. A standard 3:4:12 polyrhythm. For clarity, the 12-gon level is not shown. A standard 3:5:15 polyrhythm. For clarity, the 15-gon level is not shown.

A notable feature of these polyrhythms is that the average position, or centre of gravity, of the circularly arranged beats is precisely at the centre of the circle. This property is defined as perfect balance.

All regular polygons are perfectly balanced, so any combination of regular polygons is also perfectly balanced, and this is true regardless of the individual rotations of the polygons.

This allows an immediate generalisation of standard polyrhythms. The regular polygons can be independently rotated (time-shifted) so they never coincide. This is a musical feature that is, as far as we know, rarely exploited but which produces exciting rhythmic grooves.

Perfectly balanced music constructed with independently rotated regular polygons: 2 digons, 3 squares, 1 heptagon. The polygons have been independently rotated so – unlike a standard polyrhythm – there is no single location at which they all coincide.

But perfect balance opens up yet another fascinating generalisation of standard polyrhythms. There are certain perfectly balanced shapes – irregular elemental polygons – that are not produced by a simple combination of regular polygons.

image An irregular elemental polygon: 1 triangle + 1 pentagon - 1 digon. Only the labelled vertices are sounded. Andrew Milne, Author provided image An irregular elemental polygon: 2 digons + 3 pentagons - 3 digons - 2 triangles. Only the labelled vertices are sounded. Andrew Milne, Author provided

Intriguingly, such polygons are constructed by summing differently rotated positively-weighted and negatively-weighted regular polygons. When a positively-weighted vertex and a negatively-weighted vertex coincide they cancel out.

Legal patterns are produced when no negative weights are left behind. So, although we never hear these negative beats directly, they have a ghostly impact by cancelling out some of the positive beats.

In XronoMorph, a wide choice of regular and irregular elemental polygons can be combined and independently rotated, creating a fascinating subspace of generalised polyrhythms.

Perfectly balanced music constructed with regular and irregular elemental polygons.

XronoMorph

We developed the rhythmic loop generator XronoMorph to demonstrate these principles, hoping it might inspire musicians and music enthusiasts to create novel and interesting rhythms that would be hard to play manually or to otherwise compose.

Simple and attractive software interfaces can also transform a need for expert knowledge into a willingness to intuitively interrogate the interface. In this way, we also hope it will encourage musical engagement, with potential application in music education by allowing visual exploration of complex rhythmic patterns.

Early reaction from musicians and composers has been highly enthusiastic with comments such as “This is an inspired design – truly musical”, “the most interesting and inventive new app around” and “this really helps me better understand and create beats”.

This lends support to the long-held notion that there is a profound connection between mathematics and music, and that a little mathematics can help create some beautiful music.

image XronoMorph screenshot. Andrew Milne, Author provided

Authors: Andrew J. Milne, Postdoctoral Research Fellow in Music Cognition and Computation, Western Sydney University

Read more http://theconversation.com/how-a-little-mathematics-can-help-create-some-beautiful-music-61812

Business News

Inside the Icon: The BridgeMuseum Officially Opens at the Sydney Harbour Bridge

A bold new way to experience one of Australia’s most recognisable landmarks has arrived, with BridgeClimb Sydney officially opening the all-new BridgeMuseum.  Located inside the Sydney Harbour Brid...

Daily Bulletin - avatar Daily Bulletin

Is Your Brand Showing Up in AI Search? Most Melbourne Brands Aren't.

The New Front Door Nobody Told You About Something changed. Quietly. Without a press release. The way buyers find businesses in Australia has been rewired. Not replaced, rewired. Google isn't dead...

Daily Bulletin - avatar Daily Bulletin

How Australian Businesses Can Measure SEO ROI

SEO can feel vague when you are staring at a dashboard full of numbers that do not clearly connect to revenue. The key is to measure the right signals in the right order, then tie them back to outcome...

Daily Bulletin - avatar Daily Bulletin

How Commercial Roller Shutters Improve Site Security Without Slowing Operations

Security upgrades can be frustrating when they make everyday work harder. A door that takes too long to open, creates bottlenecks at shift change, or fails at the worst time can turn “better protectio...

Daily Bulletin - avatar Daily Bulletin

Why a Document Destruction Service Still Matters for Modern Businesses

Businesses generate large volumes of information every day, from staff records and contracts to invoices, reports and customer files. While attention often focuses on how documents are stored, the way...

Daily Bulletin - avatar Daily Bulletin

Bicycle Rack Safety and Space-Smart Storage

Bike storage problems usually show up as small annoyances first: tangled handlebars, scratched frames, and bikes that topple when you pull one out. Over time, those issues become safety risks, especia...

Daily Bulletin - avatar Daily Bulletin

How to Tell if a Childcare Centre Is a Good Fit for Your Child

Choosing childcare can feel like you’re making a huge decision with limited information. Tours are short, centres are often on their best behaviour, and your child might act differently in a new space...

Daily Bulletin - avatar Daily Bulletin

Car Import Timeline: What Usually Happens at Each Stage

Importing a car into Australia can feel confusing because multiple agencies and checkpoints are involved, and the timeline is shaped as much by paperwork quality as it is by shipping speed. The most u...

Daily Bulletin - avatar Daily Bulletin

Portable Toilet Hygiene Standards Explained: Clean vs Sanitised vs Disinfected

In portable toilet servicing, the words clean, sanitised, and disinfected often get used as if they mean the same thing. They don’t. And that difference matters because a unit can look tidy and still ...

Daily Bulletin - avatar Daily Bulletin

The Daily Magazine

Gold Migration Lawyers in Liquidation: How the Closure Affects Your ART Appeal

If your appeal was with Gold Migration Lawyers, a recent change to how the Tribunal decides cases ...

The pressure cooker: life in urban Australia in 2026

Australian cities have always been demanding. Long commutes, rising housing costs, busy schedules a...

What Actually Makes a Good Criminal Lawyer in Melbourne

Most people only think about this question once. That is usually too late. Most people charged wi...

Why Working With A Chatswood Tutor Can Improve Academic Performance

Academic expectations continue increasing for students across primary school, high school, and senio...

Is It Worth Getting Solar Panels in Melbourne?

The real question is not whether solar works in Melbourne. It works. The question is what it is co...

How A Diploma Of Project Management Builds Practical Skills For Modern Work Environments

Developing the ability to plan, execute, and deliver outcomes efficiently is a key requirement in to...

How to Choose the Right Football for Every Level

Choosing a football may seem straightforward, but the right option depends on who will be using it a...

What to Ask a Wedding Photographer Before You Book

Booking a wedding photographer can feel deceptively simple: you like the photos, you like the vibe...

Why Stress Relief For Dogs Is Essential For Emotional Balance And Long-Term Wellbeing

Managing emotional health is just as important as physical care when it comes to pets, which is why ...