Struct comfy_wgpu::kira::track::effect::compressor::CompressorHandle
pub struct CompressorHandle { /* private fields */ }Expand description
Controls a compressor.
Implementations§
§impl CompressorHandle
impl CompressorHandle
pub fn set_threshold(
&mut self,
threshold: impl Into<Value<f64>>,
tween: Tween
) -> Result<(), CommandError>
pub fn set_threshold( &mut self, threshold: impl Into<Value<f64>>, tween: Tween ) -> Result<(), CommandError>
Sets the volume above which volume will start to be decreased (in dBFS).
pub fn set_ratio(
&mut self,
ratio: impl Into<Value<f64>>,
tween: Tween
) -> Result<(), CommandError>
pub fn set_ratio( &mut self, ratio: impl Into<Value<f64>>, tween: Tween ) -> Result<(), CommandError>
Sets how much the signal will be compressed.
A ratio of 2.0 (or 2 to 1) means an increase of 3dB will
become an increase of 1.5dB. Ratios between 0.0 and 1.0
will actually expand the audio.
pub fn set_attack_duration(
&mut self,
attack_duration: impl Into<Value<Duration>>,
tween: Tween
) -> Result<(), CommandError>
pub fn set_attack_duration( &mut self, attack_duration: impl Into<Value<Duration>>, tween: Tween ) -> Result<(), CommandError>
Sets how much time it takes for the volume attenuation to ramp up once the input volume exceeds the threshold.
pub fn set_release_duration(
&mut self,
release_duration: impl Into<Value<Duration>>,
tween: Tween
) -> Result<(), CommandError>
pub fn set_release_duration( &mut self, release_duration: impl Into<Value<Duration>>, tween: Tween ) -> Result<(), CommandError>
Sets how much time it takes for the volume attenuation to relax once the input volume dips below the threshold.
pub fn set_makeup_gain(
&mut self,
makeup_gain: impl Into<Value<f64>>,
tween: Tween
) -> Result<(), CommandError>
pub fn set_makeup_gain( &mut self, makeup_gain: impl Into<Value<f64>>, tween: Tween ) -> Result<(), CommandError>
Sets the amount to change the volume after processing (in dB).
This can be used to compensate for the decrease in volume resulting from compression. This is only applied to the wet signal, nto the dry signal.
Auto Trait Implementations§
impl RefUnwindSafe for CompressorHandle
impl Send for CompressorHandle
impl Sync for CompressorHandle
impl Unpin for CompressorHandle
impl UnwindSafe for CompressorHandle
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