Misplaced Pages

Euclidean rhythm

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
(Redirected from Euclidean Rhythm) Maximally even rhythm

The Euclidean rhythm in music was discovered by Godfried Toussaint in 2004 and is described in a 2005 paper "The Euclidean Algorithm Generates Traditional Musical Rhythms". The greatest common divisor of two numbers is used rhythmically giving the number of beats and silences, generating almost all of the most important world music rhythms, except some Indian talas. The beats in the resulting rhythms are as equidistant as possible; the same results can be obtained from the Bresenham algorithm.

Summary of algorithm

In Toussaint's paper the task of distributing k {\displaystyle k} beats within n {\displaystyle n} time steps is considered. It is given that k < n {\displaystyle k<n} , so there are fewer beats than steps. The question arises of how to distribute these beats such that they are as equidistant as possible. This is easy when n {\displaystyle n} is divisible by k {\displaystyle k} —in this case we distribute the beats such that they are n / k {\displaystyle n/k} steps away from their neighbour. As an example, below is a euclidean rhythm for n = 16 {\displaystyle n=16} and k = 4 {\displaystyle k=4} . These beats are 4 steps away from each other because n / k = 16 / 4 = 4 {\displaystyle n/k=16/4=4} .


Here "x" represents a beat and "." represents a silence.

The problem becomes more complicated when k {\displaystyle k} does not divide n {\displaystyle n} . In this case the formula n / k {\displaystyle n/k} doesn't produce an integer, so some beats must be slightly closer to one neighbour than the other. Because of this the beats are no longer perfectly equidistant. As an example, take the case when n = 13 {\displaystyle n=13} and k = 5 {\displaystyle k=5} . A naive algorithm may place the beats like this:


Although the beats are technically distributed with ideal spacing between the beats—they are either two steps apart or three—we still have a problem where the beats are "clumped" at the start and spaced out at the end. A more concrete definition of "equidistant" might ask that these spacings ("x ." and "x . .") are also distributed evenly.

Toussaint's observation is that Euclid's algorithm can be used to systematically find a solution for any k {\displaystyle k} and n {\displaystyle n} that minimizes "clumping". Taking the previous example where n = 13 {\displaystyle n=13} and k = 5 {\displaystyle k=5} we perform Euclid's algorithm:

n = 13 ,   k = 5 n = q 0 k + r 0 q 0 = 2 ,   r 0 = 3 k = q 1 r 0 + r 1 q 1 = 1 ,   r 1 = 2 r 0 = q 2 r 1 + r 2 q 2 = 1 ,   r 2 = 1 r 1 = q 3 r 2 + r 3 q 3 = 2 ,   r 3 = 0 {\displaystyle {\begin{aligned}&&n=13,\ k=5\\n&=q_{0}k+r_{0}\implies &q_{0}=2,\ r_{0}=3\\k&=q_{1}r_{0}+r_{1}\implies &q_{1}=1,\ r_{1}=2\\r_{0}&=q_{2}r_{1}+r_{2}\implies &q_{2}=1,\ r_{2}=1\\r_{1}&=q_{3}r_{2}+r_{3}\implies &q_{3}=2,\ r_{3}=0\\\end{aligned}}}

Toussaint's algorithm first constructs the following rhythm.


Then, using the sequence t = k , r 0 , r 1 , r 2 , . . . {\displaystyle t=k,r_{0},r_{1},r_{2},...} we iteratively take t n {\displaystyle t_{n}} columns off the right of the sequence and place them at the bottom. Starting with t 0 = k = 5 {\displaystyle t_{0}=k=5} , we get

[ x x x x x . . .
  . . . . .       ]

Next is t 1 = r 0 = 3 {\displaystyle t_{1}=r_{0}=3} :

[ x x x x x
  . . . . .
  . . .     ]

Next is t 2 = r 1 = 2 {\displaystyle t_{2}=r_{1}=2} :

[ x x x
  . . .
  . . .
  x x
  . .   ]

The process stops here because t 3 < 2 {\displaystyle t_{3}<2} , i.e. there is only one column to move. The final beat pattern is read out from top to bottom, left to right:


Other uses of Euclid's algorithm in music

In the 17th century Conrad Henfling writing to Leibniz about music theory and the tuning of musical instruments makes use of the Euclidean algorithm in his reasoning. Viggo Brun investigated the use of Euclidean Algorithm in terms of constructing scales up to 4 different size intervals. Erv Wilson explored both using ratios and scale steps of which Kraig Grady applied to rhythms within long meters.

See also

References

  1. The Euclidean algorithm generates traditional musical rhythms by G. T. Toussaint, Proceedings of BRIDGES: Mathematical Connections in Art, Music, and Science, Banff, Alberta, Canada, July 31 to August 3, 2005, pp. 47–56.
  2. Comparative Musicology – Musical Rhythm and Mathematics
  3. ^ The Euclidean Algorithm Generates Traditional Musical Rhythms, by Godfried Toussaint, Extended version of the paper that appeared in the Proceedings of BRIDGES: Mathematical Connections in Art, Music and Science, Banff, Alberta, Canada, July 31–August 3, 2005, pp. 47–56.
  4. Musical pitch and Euclid's algorithm
  5. https://anaphoria.com/brun-euclideanalgo.pdf Euclidean Algorithms and Musical Theory
  6. https://anaphoria.com/viggo3.pdf A sequence of Constant Structures
  7. https://anaphoria.com/viggo2.pdf Viggo's Brun's algorithm applied
  8. https://anaphoria.com/ViggoRhythm.pdf Applying Viggo Brun's Algorithm to Rhythm

External links

Rhythm and meter
Categories: