pub struct Chime {
pub freqs: &'static [f64],
pub spacing_ms: u32,
pub timbre: &'static Timbre,
pub period_ms: u32,
}Expand description
A short motif of struck notes, plus the silence that follows it — so a looping alert carries its own cadence and needs no gap bolted on.
Fields§
§freqs: &'static [f64]Note frequencies in Hz, played in order.
spacing_ms: u32Time between note onsets. Shorter than the decay, so notes ring into one another instead of being cut off — that overlap is most of what makes this sound designed rather than beeped.
timbre: &'static Timbre§period_ms: u32One full period, motif plus trailing silence.
Auto Trait Implementations§
impl Freeze for Chime
impl RefUnwindSafe for Chime
impl Send for Chime
impl Sync for Chime
impl Unpin for Chime
impl UnsafeUnpin for Chime
impl UnwindSafe for Chime
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