pub struct Limiter;Implementations§
Source§impl Limiter
impl Limiter
Sourcepub fn tanh_soft_clip(sample: f32) -> f32
pub fn tanh_soft_clip(sample: f32) -> f32
Saturasi Hyperbolic Tangent (Tanh): y = tanh(x)
Sourcepub fn cubic_soft_clip(sample: f32) -> f32
pub fn cubic_soft_clip(sample: f32) -> f32
Polynomial Soft Clipper (Cubic Saturation)
Sourcepub fn hard_clamp(sample: f32) -> f32
pub fn hard_clamp(sample: f32) -> f32
Hard Clamp pengaman [-1.0, 1.0]
Sourcepub fn process_tanh_buffer(buffer: &mut [f32])
pub fn process_tanh_buffer(buffer: &mut [f32])
Memproses buffer dengan Soft-Clip Tanh in-place
Auto Trait Implementations§
impl Freeze for Limiter
impl RefUnwindSafe for Limiter
impl Send for Limiter
impl Sync for Limiter
impl Unpin for Limiter
impl UnsafeUnpin for Limiter
impl UnwindSafe for Limiter
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