euclidian-rythms

Crates.ioeuclidian-rythms
lib.rseuclidian-rythms
version0.1.0
sourcesrc
created_at2018-08-24 14:03:44.115854
updated_at2018-08-24 14:03:44.115854
descriptionGenerate euclidian rythms using the Bjorklund's algorithm
homepage
repositoryhttps://github.com/padenot/euclidian-rythm
max_upload_size
id81074
size6,579
Paul Adenot (padenot)

documentation

README

Euclidian rythm generators

crates.io

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:

Commit count: 3

cargo fmt