pub enum SclEntry {
Ratio {
num: u64,
den: u64,
},
Cents(f64),
}Expand description
One pitch entry of a Scala scale, kept in its ORIGINAL exact form so that a
just-intonation ratio (e.g. 3/2) stays exact and a cents value stays a float.
Variants§
Ratio
A rational interval num/den above 1/1 (den is never 0).
Cents(f64)
An interval given directly in cents (1200 cents = one octave). May be negative.
Implementations§
Trait Implementations§
impl Copy for SclEntry
impl StructuralPartialEq for SclEntry
Auto Trait Implementations§
impl Freeze for SclEntry
impl RefUnwindSafe for SclEntry
impl Send for SclEntry
impl Sync for SclEntry
impl Unpin for SclEntry
impl UnsafeUnpin for SclEntry
impl UnwindSafe for SclEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more