xfade()

xfade(a, b, mix)

Category

Math / Other - Signal Mixer

Description

Crossfade function. It blends between the first two signals using the third argument, normally 0.0 to 1.0.

Arguments

Typical Values

Use moderate values first, then increase modulation depth while listening for clipping, aliasing, or excessive filter resonance.

Example

xfade(saw(X), squa(X), 0.35+0.3*param(2))

Notes

xfade() is a mathematical signal mixer, not an envelope or oscillator. Its inputs can be audio signals, control expressions, or both.