use-tempo 0.0.1

Tempo metadata primitives for RustUse.
Documentation
  • Coverage
  • 1.82%
    1 out of 55 items documented1 out of 23 items with examples
  • Size
  • Source code size: 14.09 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 879.71 kB 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-tempo

Tempo metadata primitives for RustUse.

Experimental

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

Example

use use_tempo::{BeatsPerMinute, TempoMarking};

let bpm = BeatsPerMinute::new(120.0)?;

assert_eq!(bpm.value(), 120.0);
assert_eq!(TempoMarking::Allegro.as_str(), "allegro");
# Ok::<(), use_tempo::TempoError>(())

Scope

  • Finite positive BPM values, tempo markings, ranges, tempo changes, tempo-map points, metronome marks, and rubato labels.

Relationship to use-acoustics

use-tempo models musical tempo metadata only. use-time owns general timing utilities, and use-acoustics owns physical sound calculations.

Non-goals

  • Clocks, schedulers, playback, sequencing, transport, or timing engines.

License

Licensed under either Apache-2.0 or MIT.