pan
Crossfade between multiple inputs to multiple outputs
Description
Crossfade between two or more inputs to multiple outputs. Fading can be further modularized by setting different bound modes, position modes, and fade curves.
Arguments
outputs [number]
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 will prevent input values from bleeding over the edges, whereas will circularly crossfade between all other floating-point steps beyond 0. - 1. and 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 implements an equal power (log) fade, implements a linear fade, and 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 normalizes the output position across all channels from 0. to 1., while 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 |