Crossfade

Blend two signals with one balance control: 0 plays A, 1 plays B.

  • Utility
  • Since 0.1.0
  • blend
  • crossfade
  • balance
  • mix

Open in TuneToys

Crossfade as the Patch draws it, at default values: inlets on the left, outlets on the right.

Crossfade blends two audio signals with a single balance control.

What it does#

The node has two inputs, A and B, and one output. Balance 0 passes input A, balance 1 passes input B, and values between blend them. It is useful for dry/wet-style blends and for switching between two sources smoothly. An input that is not connected is silent.

When to use it#

Use it to pick between two sources or two processing chains with one knob. To add several signals together at independent levels, use Mixer.

Ports#

PortDirectionSignalLanes
aInputAudioInferred from the cable
bInputAudioInferred from the cable
audioOutputAudioInferred from the cable

Parameters#

ParameterLabelRangeDefaultUnitScaleNotes
balanceBalance0 to 10.5linearBlend between inputs A and B. 0 selects A; 1 selects B.

Balance (balance)#

Blend between input A and input B, from 0 to 1. 0 selects A and 1 selects B. The center position blends both.

Tips#

  • Feed the same source into A and a processed copy into B to build your own dry/wet control.
  • Both inputs must have matching channel counts unless an adaptation policy is set. See Multichannel audio.

See also#

Mixer (the channel-strip summing node), Gain.

Help patches

Each help patch is an ordinary Toy that teaches one idea. The diagram shows the Patch; the preview shows its Frame. Open it in TuneToys to play and edit it.

1. Blend two sources with balance

beginner Teaches: balance

Crossfade between a sine and a saw wave.

Patch: Oscillator “sine” audio output connected to Crossfade a input. Oscillator “buzz” audio output connected to Crossfade b input. Crossfade audio output connected to Patch outputs audio input.
Connections as text
  • Oscillator “sine” audio output connected to Crossfade a input
  • Oscillator “buzz” audio output connected to Crossfade b input
  • Crossfade audio output connected to Patch outputs audio input
  • Balance 0 is all input A (the sine). Balance 1 is all input B (the saw).
Frame preview: Blend two sources with balanceFrame “Blend two sources with balance” with 2 elements: knob Balance, text heading.0.5BalanceBLEND TWO SOURCES WITH BALANCE
Frame preview (static). Controls show their default values.

Open in TuneToys

  • Mixer Sum up to 32 channels, each with gain, pan, mute and solo, into one mix with a master level. Plug a cable in to add a channel.
  • Gain A clean stereo gain stage.

Edit this page on GitHub

esc

↑ ↓ move↩ open⌘↩ new tabesc close