A rhythmic pattern generation library in Rust with no_std
support.
This project is under development and the current API is subjective to change. Please use at your own risk.
``` use rhythms::Pattern;
let pattern = Pattern::new(4, 2, 0); asserteq!([true, false, true, false], pattern.asslice());
// or let mut pattern = Pattern::withlength(4); pattern.pulses(2); pattern.rotate(-1); asserteq!([false, true, false, true], pattern.as_slice()); ```
This project is licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in rhythms by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.