The algorithm evenly distributes a specified number of beats in a total specified number of steps, returning a binary vector where 1s indicate the occurrence of a beat.
Arguments
- beats
Integer, number of beats to distribute.
- steps
Integer, total number of steps across which the beats are to be distributed.
- start
Integer, the starting value in sequence. Default is 1.
Details
Converted to R from discussions of Euclidean Algorithms in this post https://medium.com/code-music-noise/euclidean-rhythms-391d879494df. See also Toussaint, Godfried. 2005. “The Euclidean Algorithm Generates Traditional Musical Rhythms.” In, 4756. https://archive.bridgesmathart.org/2005/bridges2005-47.html