Struct Freq

Source
pub struct Freq(/* private fields */);

Implementations§

Source§

impl Freq

Source

pub const ZERO: Self

Source

pub const C0: Self

C0, MIDI note #12

Source

pub const CS0: Self

Source

pub const D0: Self

Source

pub const DS0: Self

Source

pub const E0: Self

Source

pub const F0: Self

Source

pub const FS0: Self

Source

pub const G0: Self

Source

pub const GS0: Self

Source

pub const A0: Self

A0, the lowest note of a piano

Source

pub const AS0: Self

Source

pub const B0: Self

B0, the lowest note of a 5 string bass

Source

pub const C1: Self

C1, the lowest note of double bass with C extension

Source

pub const CS1: Self

Source

pub const D1: Self

Source

pub const DS1: Self

Source

pub const E1: Self

E1, the lowest note of a bass

Source

pub const F1: Self

Source

pub const FS1: Self

Source

pub const G1: Self

Source

pub const GS1: Self

Source

pub const A1: Self

Source

pub const AS1: Self

Source

pub const B1: Self

Source

pub const C2: Self

Source

pub const CS2: Self

Source

pub const D2: Self

Source

pub const DS2: Self

Source

pub const E2: Self

E2, the lowest note of a guitar.

Source

pub const F2: Self

Source

pub const FS2: Self

Source

pub const G2: Self

Source

pub const GS2: Self

Source

pub const A2: Self

Source

pub const AS2: Self

Source

pub const B2: Self

Source

pub const C3: Self

Source

pub const CS3: Self

Source

pub const D3: Self

Source

pub const DS3: Self

Source

pub const E3: Self

Source

pub const F3: Self

Source

pub const FS3: Self

Source

pub const G3: Self

G3, the lowest note of a violin.

Source

pub const GS3: Self

Source

pub const A3: Self

Source

pub const AS3: Self

Source

pub const B3: Self

Source

pub const C4: Self

C4, the “middle C”.

Source

pub const CS4: Self

Source

pub const D4: Self

Source

pub const DS4: Self

Source

pub const E4: Self

Source

pub const F4: Self

Source

pub const FS4: Self

Source

pub const G4: Self

Source

pub const GS4: Self

Source

pub const A4: Self

A4, the tuning reference note.

Source

pub const AS4: Self

Source

pub const B4: Self

Source

pub const C5: Self

Source

pub const CS5: Self

Source

pub const D5: Self

Source

pub const DS5: Self

Source

pub const E5: Self

Source

pub const F5: Self

Source

pub const FS5: Self

Source

pub const G5: Self

Source

pub const GS5: Self

Source

pub const A5: Self

Source

pub const AS5: Self

Source

pub const B5: Self

Source

pub const C6: Self

Source

pub const CS6: Self

Source

pub const D6: Self

Source

pub const DS6: Self

Source

pub const E6: Self

Source

pub const F6: Self

Source

pub const FS6: Self

Source

pub const G6: Self

Source

pub const GS6: Self

Source

pub const A6: Self

Source

pub const AS6: Self

Source

pub const B6: Self

Source

pub const C7: Self

Source

pub const CS7: Self

Source

pub const D7: Self

Source

pub const DS7: Self

Source

pub const E7: Self

Source

pub const F7: Self

Source

pub const FS7: Self

Source

pub const G7: Self

Source

pub const GS7: Self

Source

pub const A7: Self

Source

pub const AS7: Self

Source

pub const B7: Self

Source

pub const C8: Self

C8, the highest note of a piano.

Source

pub const CS8: Self

Source

pub const D8: Self

Source

pub const DS8: Self

Source

pub const E8: Self

Source

pub const F8: Self

Source

pub const FS8: Self

Source

pub const G8: Self

Source

pub const GS8: Self

Source

pub const A8: Self

Source

pub const AS8: Self

Source

pub const B8: Self

Source

pub const C9: Self

Source

pub const CS9: Self

Source

pub const D9: Self

Source

pub const DS9: Self

Source

pub const E9: Self

Source

pub const F9: Self

Source

pub const FS9: Self

Source

pub const G9: Self

Source

pub const GS9: Self

G#9, MIDI note #128, the top of the MIDI tuning range.

Source

pub const A9: Self

Source

pub const AS9: Self

Source

pub const B9: Self

B9. For most of adults, it is already beyond the hearing range.

Source

pub fn hz(hz: f32) -> Self

Source

pub fn midi(note: u8) -> Self

Source

pub fn note(pitch: Pitch, octave: u8) -> Self

Trait Implementations§

Source§

impl Clone for Freq

Source§

fn clone(&self) -> Freq

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl From<f32> for Freq

Source§

fn from(value: f32) -> Self

Converts to this type from the input type.
Source§

impl Copy for Freq

Auto Trait Implementations§

§

impl Freeze for Freq

§

impl RefUnwindSafe for Freq

§

impl Send for Freq

§

impl Sync for Freq

§

impl Unpin for Freq

§

impl UnwindSafe for Freq

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.