pub struct StringParams<T: Transcendental> {
pub frequency: T,
pub decay: T,
pub stiffness: T,
pub brightness: T,
}Expand description
Parameters for a physical string model.
Fields§
§frequency: TFundamental frequency in Hz (e.g., 440.0 for A4).
decay: TDecay factor per sample (0.0 = instant decay, 0.99999 = near-infinite sustain).
stiffness: TStiffness coefficient (0.0 = ideal flexible string, > 0 = inharmonic dispersion).
brightness: TBrightness — loop filter cutoff ratio (0.0 = fully dark, 1.0 = fully bright).
Trait Implementations§
Source§impl<T: Clone + Transcendental> Clone for StringParams<T>
impl<T: Clone + Transcendental> Clone for StringParams<T>
Source§fn clone(&self) -> StringParams<T>
fn clone(&self) -> StringParams<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 moreSource§impl<T: Debug + Transcendental> Debug for StringParams<T>
impl<T: Debug + Transcendental> Debug for StringParams<T>
Source§impl<T: Transcendental> Default for StringParams<T>
impl<T: Transcendental> Default for StringParams<T>
Auto Trait Implementations§
impl<T> Freeze for StringParams<T>where
T: Freeze,
impl<T> RefUnwindSafe for StringParams<T>where
T: RefUnwindSafe,
impl<T> Send for StringParams<T>
impl<T> Sync for StringParams<T>
impl<T> Unpin for StringParams<T>where
T: Unpin,
impl<T> UnsafeUnpin for StringParams<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for StringParams<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