pub struct ModeParams<T: Transcendental> {
pub freq_ratio: T,
pub amplitude: T,
pub decay_time: T,
}Expand description
Definition of a single resonant mode.
Fields§
§freq_ratio: TFrequency ratio relative to fundamental (1.0 = fundamental).
amplitude: TAmplitude of this mode (0.0–1.0).
decay_time: TDecay time in seconds (time to -60 dB).
Trait Implementations§
Source§impl<T: Clone + Transcendental> Clone for ModeParams<T>
impl<T: Clone + Transcendental> Clone for ModeParams<T>
Source§fn clone(&self) -> ModeParams<T>
fn clone(&self) -> ModeParams<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Copy + Transcendental> Copy for ModeParams<T>
Auto Trait Implementations§
impl<T> Freeze for ModeParams<T>where
T: Freeze,
impl<T> RefUnwindSafe for ModeParams<T>where
T: RefUnwindSafe,
impl<T> Send for ModeParams<T>
impl<T> Sync for ModeParams<T>
impl<T> Unpin for ModeParams<T>where
T: Unpin,
impl<T> UnsafeUnpin for ModeParams<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ModeParams<T>where
T: UnwindSafe,
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