pub struct AudioMaterial {
pub material_type: MaterialType,
pub density: Fix128,
pub hardness: Fix128,
pub resonance: Fix128,
pub damping: Fix128,
}Expand description
Physical material properties for audio synthesis
Fields§
§material_type: MaterialTypeMaterial type identifier
density: Fix128Density (kg/m^3) — affects pitch/resonance
hardness: Fix128Hardness (0..1) — affects attack/brightness
resonance: Fix128Resonance (0..1) — how much the material rings
damping: Fix128Damping (0..1) — how quickly sound decays
Implementations§
Trait Implementations§
Source§impl Clone for AudioMaterial
impl Clone for AudioMaterial
impl Copy for AudioMaterial
Source§impl Debug for AudioMaterial
impl Debug for AudioMaterial
impl Eq for AudioMaterial
Source§impl PartialEq for AudioMaterial
impl PartialEq for AudioMaterial
impl StructuralPartialEq for AudioMaterial
Auto Trait Implementations§
impl Freeze for AudioMaterial
impl RefUnwindSafe for AudioMaterial
impl Send for AudioMaterial
impl Sync for AudioMaterial
impl Unpin for AudioMaterial
impl UnsafeUnpin for AudioMaterial
impl UnwindSafe for AudioMaterial
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more