Nodes

  1. Home
  2. Docs
  3. Nodes
  4. Audio Effects
  5. Crossfader Node

Crossfader Node

Standard linear crossfader with two inputs, used to mix between 2 audio (or control) signals with an adjustable transition.

Inputs

A Audio/Control line to use when Alpha is towards 0.
B Audio/Control line to use when Alpha is towards 1.
Alpha-control Control input to automate the Alpha setting, from 0 to 1.
This input can be toggled from the Node settings panel.

Settings

Alpha Sets the crossfader “position”.
Values towards 0 put more of A into the mix, values towards 1 more of B.
Fade mode Sets the crossfade effect to use.

Gain crossfade Use gain-wise linear crossfade between A and B.
Filter crossfade Use low-pass filter on A and high-pass filter on B with the same frequency.

Outputs

Mix The mixed inputs.

Technical details

When Fade mode is gain, this node performs a per sample linear interpolation: A * (1 - alpha) + B * alpha.

When Fade mode is filter, a center frequency between 10 Hz and 22 kHz, based on the alpha setting is determined. A low-pass filter with this frequency is used on A, and a high-pass filter with the same frequency on B.

Note: Audio and Control lines (visualized with blue and purple, respectively) are both analogous to an analog signal. They can be used interchangeably, and, for example, an Audio output (blue) can be connected to a Control input (purple), or vice-versa.

Was this article helpful to you? Yes No