euclidean rhythms are also great for generating / selecting musical scales and chords among other things
> The Euclidean algorithm (which comes down to us from Euclid’s Elements) computes the greatest common divisor of two given integers. It is shown here that the structure of the Euclidean algorithm may be used to automatically generate, very efficiently, a large family of rhythms used as timelines (rhythmic ostinatos), in traditional world music. These rhythms, here dubbed Euclidean rhythms, have the property that their onset patterns are distributed as evenly as possible in a mathematically precise sense, and optimal manner.
G. T. Toussaint, The Euclidean algorithm generates traditional musical rhythms, Proceedings of BRIDGES: Mathematical Connections in Art, Music, and Science - http://cgm.cs.mcgill.ca/~godfried/publications/banff-extende...
---
The author published a book titled The Geometry of Musical Rhythm, one of whose chapters is based on the paper.
https://en.wikipedia.org/wiki/The_Geometry_of_Musical_Rhythm