rhythms 0.1.0

A rhythmic pattern generation library
Documentation
  • Coverage
  • 100%
    15 out of 15 items documented14 out of 15 items with examples
  • Size
  • Source code size: 26.97 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.87 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • grindcode/rhythms
    6 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • grindcode

rhythms

A rhythmic pattern generation library in Rust with no_std support.

Documentation

Release notes

Work In Progress

This project is under development and the current API is subjective to change. Please use at your own risk.

Example

use rhythms::Pattern;

let pattern = Pattern::new(4, 2, 0);
assert_eq!([true, false, true, false], pattern.as_slice());

// or
let mut pattern = Pattern::with_length(4);
pattern.pulses(2);
pattern.rotate(-1);
assert_eq!([false, true, false, true], pattern.as_slice());

License

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.