use-mode 0.0.1

Musical mode metadata primitives for RustUse.
Documentation
  • Coverage
  • 1.75%
    1 out of 57 items documented1 out of 18 items with examples
  • Size
  • Source code size: 14.77 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 904.85 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-mode

Musical mode metadata primitives for RustUse.

Experimental

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

Example

use use_mode::{ModeKind, ModeName};

let name = ModeName::new("D dorian")?;
let kind: ModeKind = "dorian".parse()?;

assert_eq!(name.as_str(), "D dorian");
assert_eq!(kind, ModeKind::Dorian);
# Ok::<(), use_mode::ModeError>(())

Scope

  • Modal names, kinds, church modes, mode degrees, mode families, and brightness labels.

Relationship to use-acoustics

use-music keeps symbolic music metadata separate from use-acoustics, which owns physical sound calculations such as frequency, wavelength, decibels, sound pressure, sound intensity, period, angular frequency, and speed-of-sound approximations.

Non-goals

  • Advanced modal composition, modal interchange analysis, or generated harmony.

License

Licensed under either Apache-2.0 or MIT.