pub struct Tuning {
pub semitone: u8,
pub fraction: u16,
}
Expand description
Used to represent a tuning by TuningNoteChange
and KeyBasedTuningDump
.
Fields§
§semitone: u8
The semitone corresponding with the same MIDI note number, 0-127
fraction: u16
Fraction of semitones above the semitone
, in .0061-cent units.
0-16383
Implementations§
Trait Implementations§
source§impl PartialEq for Tuning
impl PartialEq for Tuning
impl Copy for Tuning
impl Eq for Tuning
impl StructuralPartialEq for Tuning
Auto Trait Implementations§
impl Freeze for Tuning
impl RefUnwindSafe for Tuning
impl Send for Tuning
impl Sync for Tuning
impl Unpin for Tuning
impl UnwindSafe for Tuning
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