Skip to main content

Crate laxury_eu

Crate laxury_eu 

Source
Expand description

The musical logic of La.

laxury-eu relates fixed-do La (the note A), movable-do scale degree six, concert-pitch tuning, twelve-tone equal temperament, transposition, and frequency analysis. It performs no audio I/O and has no dependencies.

§Example

use laxury_eu::{Pitch, Solfege, Tuning};

let tuning = Tuning::concert_pitch();
let la4 = Pitch::la(4)?;
assert_eq!(la4.midi(), 69);
assert_eq!(Solfege::La.fixed_note_name().to_string(), "A");
assert!((tuning.frequency(la4) - 440.0).abs() < 1e-12);

Structs§

FrequencyAnalysis
The nearest equal-tempered pitch and its tuning deviation.
Key
A movable-do key defined by tonic pitch class and mode.
LaRelation
A pitch expressed in relation to La/A within the same octave.
Pitch
A MIDI-representable equal-tempered pitch from 0 through 127.
Tuning
A twelve-tone equal-temperament tuning anchored by A4/La4.

Enums§

Error
Pitch and tuning validation errors.
Mode
Major or natural-minor movable-do interval structure.
NoteName
The twelve pitch classes, spelled with sharps for chromatic notes.
Solfege
The seven unaltered solfège syllables.