Skip to main content

soft_clip

Function soft_clip 

Source
fn soft_clip(sample: f32) -> f32
Expand description

Soft-clip a sample to [-1.0, 1.0] using tanh. Smooth — no hard clip artifacts when both inputs sum past the rail.