use rill_core::Transcendental;
#[derive(Debug, Clone)]
pub struct StringParams<T: Transcendental> {
pub frequency: T,
pub decay: T,
pub stiffness: T,
pub brightness: T,
}
impl<T: Transcendental> Default for StringParams<T> {
fn default() -> Self {
Self {
frequency: T::from_f32(440.0),
decay: T::from_f32(0.9995),
stiffness: T::from_f32(0.0),
brightness: T::from_f32(0.95),
}
}
}