pub struct Tuning { /* private fields */ }Expand description
Denotes the pitch in Hz for each MIDI note.
Implementations§
Source§impl Tuning
impl Tuning
Sourcepub fn equal_temperament(a4: f32) -> Self
pub fn equal_temperament(a4: f32) -> Self
Creates a new equal temperament tuning, based on the provided pitch for the note A4.
Sourcepub fn concert_pitch() -> Arc<Self>
pub fn concert_pitch() -> Arc<Self>
Gets an reference to the standard tuning system in which A4 is 440Hz.
Trait Implementations§
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