mathrixhome

One algorithm, most of the world's rhythms

Take n beats and spread k strikes across them as evenly as whole numbers will let you. That one instruction, with nothing else added, gives you a surprising number of the rhythms people actually play.

The problem itself is ancient. It's the same greatest-common-divisor argument Euclid wrote down around 300 BC, which is where the name comes from. What's recent is Godfried Toussaint noticing, in 2004, that the output keeps landing on traditional patterns. Not close to them. The same ones, in places that never had contact with each other.

That's less mysterious than it sounds. A rhythm has to be learnable, and holdable, by a group of people playing together. There aren't many ways to fit five hits into eight beats without leaving an awkward gap somewhere, so people keep finding the same handful.

knpatternwhere it turns up
25x.x..Korean / Greek folk
34xxx.Colombian cumbia, Trinidadian calypso
38x..x..x.Cuban tresillo, and half the world
58x.xx.xx.Cuban cinquillo
49x.x.x.x..Turkish aksak
512x..x.x..x.x.South African Venda
716x..x.x.x..x.x.x.Brazilian necklace
916x.xx.x.x.xx.x.x.Central African Aka
x is a strike, . a rest. All of them come out of the same short piece of arithmetic, given two numbers and nothing else.

Try it