use-music-interval 0.0.1

Musical interval metadata primitives for RustUse.
Documentation
  • Coverage
  • 1.85%
    1 out of 54 items documented1 out of 41 items with examples
  • Size
  • Source code size: 11.45 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 977.06 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-music-interval

Musical interval metadata primitives for RustUse.

Experimental

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

Example

use use_interval::{IntervalName, SimpleInterval};

let third = SimpleInterval::major_third();
let name = IntervalName::new("major third")?;

assert_eq!(third.semitones().value(), 4);
assert_eq!(name.as_str(), "major third");
# Ok::<(), use_interval::IntervalError>(())

Scope

  • Musical interval quality, number, names, semitone distances, diatonic step distances, and direction labels.
  • Common simple interval constructors such as major third, perfect fifth, tritone, and octave.

Relationship to use-acoustics

use-music-interval models symbolic music intervals. It does not calculate frequencies or wave ratios; physical sound calculations belong in use-acoustics and generic interval/range semantics belong in use-math.

Non-goals

  • Generic mathematical intervals, harmonic analysis, chord-scale analysis, audio intervals, or frequency-ratio calculation.

License

Licensed under either Apache-2.0 or MIT.