Function synfx_dsp::crossfade_clip
source · [−]pub fn crossfade_clip<F: Flt>(v1: F, v2: F, mix: F) -> F
Expand description
Linear crossfade with clipping the v2
result.
This crossfade actually does clip the v2
signal to the -1.0 to 1.0
range. This is useful for Dry/Wet of plugins that might go beyond the
normal signal range.
v1
- signal 1, range -1.0 to 1.0v2
- signal 2, range -1.0 to 1.0mix
- mix position, range 0.0 to 1.0, mid is at 0.5