#generate #algorithm #euclidian #rythms #bjorklund #rythm

euclidian-rythms

Generate euclidian rythms using the Bjorklund's algorithm

1 unstable release

Uses old Rust 2015

0.1.0 Aug 24, 2018

#1064 in #algorithm

MIT/Apache

5KB
82 lines

Euclidian rythm generators

Rust implementation of “The Euclidean Algorithm Generates Traditional Musical Rhythms”.

Effectively a port of a python implementation, which is a port of the original paper's implementation.

Example

Generating the bell pattern of Adowa: Mpre, traditional Ashanti music from Ghana.

let mut pattern = [0 as u8; 12];
let pulses = 7;
euclidian_rythm(&mut pattern, pulses).unwrap();
println!("{:?}", pattern);
// [1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0]

License

Either of:

Dependencies

~125KB