use-rhythm 0.0.1

Rhythm metadata primitives for RustUse.
Documentation
  • Coverage
  • 1.52%
    1 out of 66 items documented1 out of 35 items with examples
  • Size
  • Source code size: 15.5 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.04 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-music
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-rhythm

Rhythm metadata primitives for RustUse.

Experimental

use-rhythm is experimental while use-music remains below version 0.3.0.

Example

use use_rhythm::{DottedDuration, DurationValue, NoteDuration};

let note = NoteDuration::new(DurationValue::Eighth);
let dotted = DottedDuration::new(DurationValue::Half, 1);

assert!(note.is_shorter_than_quarter_like());
assert_eq!(dotted.dot_count(), 1);
# Ok::<(), use_rhythm::RhythmError>(())

Scope

  • Symbolic note durations, rest durations, duration values, beat divisions, tuplets, dotted durations, rhythmic positions, and syncopation labels.

Relationship to use-acoustics

use-rhythm models symbolic music durations only. use-time owns general time primitives, and use-acoustics owns physical sound calculations.

Non-goals

  • Sequencing, scheduling, playback, clocking, or general-purpose time duration utilities.

License

Licensed under either Apache-2.0 or MIT.