#[repr(u8)]pub enum ScratchPreset {
Baby = 0,
Stab = 1,
Chirp = 2,
Transform = 3,
Flare = 4,
Crab = 5,
Orbit = 6,
Drum = 7,
}Expand description
Intent-aware automatic crossfader patterns for common scratch techniques.
Baby leaves the stored manual crossfader in control. Every other preset
owns the real audible crossfader through this gate. The host can still keep
the manual position intact for an immediate return to Baby.
Variants§
Implementations§
Source§impl ScratchPreset
impl ScratchPreset
pub const ALL: [Self; 8]
pub const fn as_str(self) -> &'static str
pub const fn id(self) -> u8
pub const fn from_id(id: u8) -> Option<Self>
pub const fn default_clicks(self) -> u8
Sourcepub const fn uses_clicks(self) -> bool
pub const fn uses_clicks(self) -> bool
Reports whether click count changes this technique’s audible pattern.
Sourcepub const fn initial_stroke_span(self) -> f64
pub const fn initial_stroke_span(self) -> f64
Returns the provisional stroke span in source seconds.
Prediction confidence remains zero until one stroke completes.
pub const fn descriptor(self) -> ScratchPresetDescriptor
Trait Implementations§
Source§impl Clone for ScratchPreset
impl Clone for ScratchPreset
Source§fn clone(&self) -> ScratchPreset
fn clone(&self) -> ScratchPreset
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScratchPreset
Source§impl Debug for ScratchPreset
impl Debug for ScratchPreset
Source§impl Default for ScratchPreset
impl Default for ScratchPreset
Source§fn default() -> ScratchPreset
fn default() -> ScratchPreset
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScratchPreset
impl<'de> Deserialize<'de> for ScratchPreset
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
Source§impl Display for ScratchPreset
impl Display for ScratchPreset
impl Eq for ScratchPreset
Source§impl FromStr for ScratchPreset
impl FromStr for ScratchPreset
Source§impl PartialEq for ScratchPreset
impl PartialEq for ScratchPreset
Source§impl Serialize for ScratchPreset
impl Serialize for ScratchPreset
impl StructuralPartialEq for ScratchPreset
Auto Trait Implementations§
impl Freeze for ScratchPreset
impl RefUnwindSafe for ScratchPreset
impl Send for ScratchPreset
impl Sync for ScratchPreset
impl Unpin for ScratchPreset
impl UnsafeUnpin for ScratchPreset
impl UnwindSafe for ScratchPreset
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