pub struct FxCompressor { /* private fields */ }
Expand description
Compressor parameters for the kit.
Implementations§
source§impl FxCompressor
impl FxCompressor
sourcepub fn set_threshold(&mut self, threshold: usize) -> Result<(), RytmError>
pub fn set_threshold(&mut self, threshold: usize) -> Result<(), RytmError>
Sets the threshold of the compressor.
Range: 0..=127
sourcepub fn set_attack(&mut self, attack: FxCompAttack)
pub fn set_attack(&mut self, attack: FxCompAttack)
Sets the attack of the compressor.
sourcepub fn set_release(&mut self, release: FxCompRelease)
pub fn set_release(&mut self, release: FxCompRelease)
Sets the release of the compressor.
sourcepub fn set_ratio(&mut self, ratio: FxCompRatio)
pub fn set_ratio(&mut self, ratio: FxCompRatio)
Sets the ratio of the compressor.
sourcepub fn set_side_chain_eq(&mut self, seq: FxCompSideChainEq)
pub fn set_side_chain_eq(&mut self, seq: FxCompSideChainEq)
Sets the side chain eq of the compressor.
sourcepub fn set_gain(&mut self, gain: usize) -> Result<(), RytmError>
pub fn set_gain(&mut self, gain: usize) -> Result<(), RytmError>
Sets the gain of the compressor.
Range: 0..=127
sourcepub fn set_mix(&mut self, mix: usize) -> Result<(), RytmError>
pub fn set_mix(&mut self, mix: usize) -> Result<(), RytmError>
Sets the mix of the compressor.
Range: 0..=127
sourcepub fn set_volume(&mut self, volume: usize) -> Result<(), RytmError>
pub fn set_volume(&mut self, volume: usize) -> Result<(), RytmError>
Sets the volume of the compressor.
Range: 0..=127
sourcepub const fn attack(&self) -> &FxCompAttack
pub const fn attack(&self) -> &FxCompAttack
Returns the attack of the compressor.
sourcepub const fn release(&self) -> &FxCompRelease
pub const fn release(&self) -> &FxCompRelease
Returns the release of the compressor.
sourcepub const fn ratio(&self) -> &FxCompRatio
pub const fn ratio(&self) -> &FxCompRatio
Returns the ratio of the compressor.
sourcepub const fn side_chain_eq(&self) -> &FxCompSideChainEq
pub const fn side_chain_eq(&self) -> &FxCompSideChainEq
Returns the side chain eq of the compressor.
Trait Implementations§
source§impl Clone for FxCompressor
impl Clone for FxCompressor
source§fn clone(&self) -> FxCompressor
fn clone(&self) -> FxCompressor
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 FxCompressor
impl Debug for FxCompressor
source§impl Default for FxCompressor
impl Default for FxCompressor
source§impl<'de> Deserialize<'de> for FxCompressor
impl<'de> Deserialize<'de> for FxCompressor
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 FxCompressor
impl Ord for FxCompressor
source§fn cmp(&self, other: &FxCompressor) -> Ordering
fn cmp(&self, other: &FxCompressor) -> 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 FxCompressor
impl PartialEq for FxCompressor
source§fn eq(&self, other: &FxCompressor) -> bool
fn eq(&self, other: &FxCompressor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FxCompressor
impl PartialOrd for FxCompressor
source§fn partial_cmp(&self, other: &FxCompressor) -> Option<Ordering>
fn partial_cmp(&self, other: &FxCompressor) -> 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 FxCompressor
impl Serialize for FxCompressor
source§impl TryFrom<&ar_kit_t> for FxCompressor
impl TryFrom<&ar_kit_t> for FxCompressor
impl Copy for FxCompressor
impl Eq for FxCompressor
impl StructuralEq for FxCompressor
impl StructuralPartialEq for FxCompressor
Auto Trait Implementations§
impl RefUnwindSafe for FxCompressor
impl Send for FxCompressor
impl Sync for FxCompressor
impl Unpin for FxCompressor
impl UnwindSafe for FxCompressor
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