pub enum FadeType {
Logarithmic,
Linear,
Exponential,
}Expand description
Specifies what kind of curve to use in a fade.
Logarithmic fades will have (roughly) the same perceived volume change per unit time. Linear fades will seem to speed up or slow down over the course of the fade, and should be used when “intermixing” related tracks. Exponential fades will have the variable-speed “problem” even worse, but may sound the best of the three.
Variants§
Logarithmic
Fades between the given volumes on a logarithmic curve, such that any given timespan within the fade will have the same perceived volume change as any other.
Linear
Fades linearly between the given amplification factors. You only want this when you’re crossfading between partly correlated samples.
Exponential
Fades between the given volumes on an exponential curve, resulting in a fade that “hangs out” at the louder side. Arguably more aesthetically pleasing than a logarithmic fade.
Trait Implementations§
impl Copy for FadeType
impl Eq for FadeType
impl StructuralPartialEq for FadeType
Auto Trait Implementations§
impl Freeze for FadeType
impl RefUnwindSafe for FadeType
impl Send for FadeType
impl Sync for FadeType
impl Unpin for FadeType
impl UnwindSafe for FadeType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.