pan~ Reference

Crossfade between multiple inputs to multiple outputs

pan~

Examples

Arguments

outputs [number]

Optional

The number of output channels.

Fixed Attributes

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

boundmode [enum] (default: ignore)

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: 1)

The number of input channels.

outputs [number] (default: 2)

The number of output 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'

Dynamic Attributes

These attributes can be modified in the code during execution using the set object

spread [number] (default: 0.5)

Spread the distance between each input, where the total width of the inputs is equal to spread multiplied by the number inputs.

See Also

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