1 unstable release
Uses old Rust 2015
0.1.0 | Aug 24, 2018 |
---|
#1064 in #algorithm
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:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
Dependencies
~125KB