pub enum FadeShape {
Linear,
EqualPower,
}Expand description
Curve applied by a clip’s fade in and fade out.
Variants§
Linear
Amplitude moves linearly. Two linear fades over one overlap dip by 6 dB.
EqualPower
Amplitude follows a quarter sine. Two of these crossfade at constant power, which is what overlapping clips normally want.
Implementations§
Trait Implementations§
impl Copy for FadeShape
Source§impl<'de> Deserialize<'de> for FadeShape
impl<'de> Deserialize<'de> for FadeShape
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FadeShape
impl StructuralPartialEq for FadeShape
Auto Trait Implementations§
impl Freeze for FadeShape
impl RefUnwindSafe for FadeShape
impl Send for FadeShape
impl Sync for FadeShape
impl Unpin for FadeShape
impl UnsafeUnpin for FadeShape
impl UnwindSafe for FadeShape
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