| Crates.io | euclidian-rythms |
| lib.rs | euclidian-rythms |
| version | 0.1.0 |
| created_at | 2018-08-24 14:03:44.115854+00 |
| updated_at | 2018-08-24 14:03:44.115854+00 |
| description | Generate euclidian rythms using the Bjorklund's algorithm |
| homepage | |
| repository | https://github.com/padenot/euclidian-rythm |
| max_upload_size | |
| id | 81074 |
| size | 6,579 |
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.
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]
Either of: