pub struct FxDistortion { /* private fields */ }
Expand description
Distortion parameters for the kit.
Implementations§
source§impl FxDistortion
impl FxDistortion
sourcepub fn set_delay_overdrive(
&mut self,
delay_overdrive: usize
) -> Result<(), RytmError>
pub fn set_delay_overdrive( &mut self, delay_overdrive: usize ) -> Result<(), RytmError>
Sets the delay overdrive of the distortion.
Range: 0..=127
sourcepub fn set_reverb_post(&mut self, reverb_post: bool)
pub fn set_reverb_post(&mut self, reverb_post: bool)
Sets the reverb post of the distortion.
sourcepub fn set_delay_post(&mut self, delay_post: bool)
pub fn set_delay_post(&mut self, delay_post: bool)
Sets the delay post of the distortion.
sourcepub fn set_amount(&mut self, amount: usize) -> Result<(), RytmError>
pub fn set_amount(&mut self, amount: usize) -> Result<(), RytmError>
Sets the amount of the distortion.
Range: 0..=127
sourcepub fn set_symmetry(&mut self, symmetry: isize) -> Result<(), RytmError>
pub fn set_symmetry(&mut self, symmetry: isize) -> Result<(), RytmError>
Sets the symmetry of the distortion.
Range: -64..=63
sourcepub const fn delay_overdrive(&self) -> usize
pub const fn delay_overdrive(&self) -> usize
Returns the delay overdrive of the distortion.
Range: 0..=127
sourcepub const fn reverb_post(&self) -> bool
pub const fn reverb_post(&self) -> bool
Returns the reverb post of the distortion.
sourcepub const fn delay_post(&self) -> bool
pub const fn delay_post(&self) -> bool
Returns the delay post of the distortion.
Trait Implementations§
source§impl Clone for FxDistortion
impl Clone for FxDistortion
source§fn clone(&self) -> FxDistortion
fn clone(&self) -> FxDistortion
Returns a copy 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 FxDistortion
impl Debug for FxDistortion
source§impl Default for FxDistortion
impl Default for FxDistortion
source§impl<'de> Deserialize<'de> for FxDistortion
impl<'de> Deserialize<'de> for FxDistortion
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 Ord for FxDistortion
impl Ord for FxDistortion
source§fn cmp(&self, other: &FxDistortion) -> Ordering
fn cmp(&self, other: &FxDistortion) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for FxDistortion
impl PartialEq for FxDistortion
source§fn eq(&self, other: &FxDistortion) -> bool
fn eq(&self, other: &FxDistortion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FxDistortion
impl PartialOrd for FxDistortion
source§fn partial_cmp(&self, other: &FxDistortion) -> Option<Ordering>
fn partial_cmp(&self, other: &FxDistortion) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for FxDistortion
impl Serialize for FxDistortion
source§impl TryFrom<&ar_kit_t> for FxDistortion
impl TryFrom<&ar_kit_t> for FxDistortion
impl Copy for FxDistortion
impl Eq for FxDistortion
impl StructuralEq for FxDistortion
impl StructuralPartialEq for FxDistortion
Auto Trait Implementations§
impl RefUnwindSafe for FxDistortion
impl Send for FxDistortion
impl Sync for FxDistortion
impl Unpin for FxDistortion
impl UnwindSafe for FxDistortion
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