xfade~ Reference

Crossfade between multiple inputs

xfade~

Examples

Arguments

inputs [number]

Optional

The number of input channels

Fixed Attributes

These attributes must be set in the object box and determine the behavior of the object at runtime.

boundmode [enum] (default: clip)

Bound the output of the crossfade. The default value clip will prevent input signals from bleeding over the edges, whereas wrap will circularly crossfade between all other floating-point steps beyond 0. - 1. and ignore will allow the input to move outside of the boundary associated with outputs.

Possible values:

0 = 'wrap'
1 = 'clip'
2 = 'ignore'

fademode [enum] (default: eqpower)

Select between different fading interpolations. The default fade eqpower implements an equal power (log) fade, lin implements a linear fade, and cos implements a cosine fade.

Possible values:

0 = 'lin'
1 = 'eqpower'
2 = 'cos'

inputs [number] (default: 2)

The number of input channels

positionmode [enum] (default: phase)

Select between different fade position modes. The default mode phase normalizes the output position across all channels from 0. to 1., while channel mode positions a range based on the total number of input channels.

Possible values:

0 = 'phase'
1 = 'channel'

See Also

Name Description
xfade Crossfade between multiple inputs
mix Linear crossfading between two inputs
mix~ Linear crossfading between two inputs
pan Crossfade between multiple inputs to multiple outputs
pan~ Crossfade between multiple inputs to multiple outputs
smoothstep~ Smoothed fade of inputs