firefly_rust::audio

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, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> Same for T

source§

type Output = T

Should always be Self
source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
source§

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

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.