pub enum BeatDetectionMode {
Off,
HardCut1,
HardCut2,
HardCut3,
HardCut4,
HardCut5,
HardCut6 {
special_preset: String,
},
}Expand description
Beat detection mode (inspired by MilkDrop3).
Variants§
Off
No beat detection
HardCut1
HardCut1: Load new preset if bass > 1.5 with minimum delay of 0.2s
HardCut2
HardCut2: Load new preset if treb > 2.9 with minimum delay of 0.5s
HardCut3
HardCut3: Load new preset if treb > 2.9 with minimum delay of 1s
HardCut4
HardCut4: Load new preset if treb > 2.9 with minimum delay of 3s, or immediately if treb > 8
HardCut5
HardCut5: Load new preset if treb > 2.9 with minimum delay of 5s
HardCut6
HardCut6: Load new preset if bass > 1.5, and load special preset if bass > 4.90
Implementations§
Trait Implementations§
Source§impl Clone for BeatDetectionMode
impl Clone for BeatDetectionMode
Source§fn clone(&self) -> BeatDetectionMode
fn clone(&self) -> BeatDetectionMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BeatDetectionMode
impl Debug for BeatDetectionMode
Source§impl PartialEq for BeatDetectionMode
impl PartialEq for BeatDetectionMode
impl StructuralPartialEq for BeatDetectionMode
Auto Trait Implementations§
impl Freeze for BeatDetectionMode
impl RefUnwindSafe for BeatDetectionMode
impl Send for BeatDetectionMode
impl Sync for BeatDetectionMode
impl Unpin for BeatDetectionMode
impl UnwindSafe for BeatDetectionMode
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,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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