[−][src]Trait tune::tuning::Tuning
Required methods
fn pitch_of(&self, note_or_address: N) -> Pitch
Finds the Pitch
for the given note or address.
fn find_by_pitch(&self, pitch: Pitch) -> Approximation<N>
Finds the closest note or address for the given Pitch
.
Implementations on Foreign Types
impl<S: Borrow<Scl>, K: Borrow<Kbm>> Tuning<PianoKey> for (S, K)
[src]
fn pitch_of(&self, key: PianoKey) -> Pitch
[src]
fn find_by_pitch(&self, pitch: Pitch) -> Approximation<PianoKey>
[src]
impl<S: Borrow<Scl>, K: Borrow<Kbm>> Tuning<i32> for (S, K)
[src]
fn pitch_of(&self, degree: i32) -> Pitch
[src]
fn find_by_pitch(&self, pitch: Pitch) -> Approximation<i32>
[src]
impl Tuning<Note> for ()
[src]
Convenience implementation enabling to write ()
instead of ConcertPitch
::default()
.
Examples
assert_eq!(Pitch::from_hz(880.0).find_in(&()).approx_value, Note::from_midi_number(81));