pub struct PulseCompressor {
pub threshold: f32,
pub ratio: f32,
pub attack: f32,
pub release: f32,
pub makeup_gain: f32,
}Expand description
Compressor effect parameters.
Fields§
§threshold: f32Compression threshold in the normalized tunes amplitude domain.
ratio: f32Compression ratio.
attack: f32Attack time in seconds.
release: f32Release time in seconds.
makeup_gain: f32Makeup gain multiplier.
Implementations§
Source§impl PulseCompressor
impl PulseCompressor
Sourcepub fn to_tunes(&self) -> Compressor
pub fn to_tunes(&self) -> Compressor
Converts this wrapper to the corresponding tunes compressor.
Trait Implementations§
Source§impl Clone for PulseCompressor
impl Clone for PulseCompressor
Source§fn clone(&self) -> PulseCompressor
fn clone(&self) -> PulseCompressor
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 moreSource§impl Debug for PulseCompressor
impl Debug for PulseCompressor
Source§impl Default for PulseCompressor
impl Default for PulseCompressor
Source§impl PartialEq for PulseCompressor
impl PartialEq for PulseCompressor
Source§fn eq(&self, other: &PulseCompressor) -> bool
fn eq(&self, other: &PulseCompressor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PulseCompressor
Auto Trait Implementations§
impl Freeze for PulseCompressor
impl RefUnwindSafe for PulseCompressor
impl Send for PulseCompressor
impl Sync for PulseCompressor
impl Unpin for PulseCompressor
impl UnsafeUnpin for PulseCompressor
impl UnwindSafe for PulseCompressor
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§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