Switch (Audio/Control) Node

The Switch (Audio/Control) Node is a simple signal switcher. That is, it enables switching between its various inputs (either by hand, or driven by a control signal), then outputting the selected signal.

For example, you can connect an LFO Node to periodically shuffle between multiple inputs.

Inputs

This node has a configurable number of audio (or control) inputs, which is 2 by default. See the Number of Inputs setting below.

Audio/Control Input 1 to 16

Various inputs to switch between. Each input supports an audio or control signal, and you can mix types across different inputs.

Switch-Control Input

A control signal to control which input to forward to the Audio/Control Output. This input is disabled by default, and can be enabled from node properties, or by connecting to it.

The control signal’s value starts at 0 and then corresponds to the input number minus one:

  • a signal of 0 will use the 1st input (Audio/Control Input 1),
  • a signal of 1 will use the 2nd input (Audio/Control Input 2),
  • a signal of 2 will use the 3rd input (Audio/Control Input 3),
  • and so on…

Signals containing non-integer values, such as 1.5, will result in a linear, gain-wise crossfade between the 2 neighboring inputs. For example, a signal of 1.5 will result in a 50-50 mix of the 2nd and 3rd inputs.

The minimum value supported by this input is 0. The maximum is determined by the Number of Inputs setting, minus one. If the signal contains values outside of this range, the Node automatically clamps it.

Settings

Number of Inputs

The number of inputs to create on the Node. If set to a number lower than the current number of connections, superfluous connections are automatically cut.

Active Input

Controls the input to forward to the Audio/Control Output. Set it to Controlled to enable the Switch-Control Input, and control this setting from the connected control signal.

Outputs

Audio/Control Output

An audio (or control) signal, based on the selected input. If the result happens to fall on an input without a connection, it’s the same as if that input had a silent signal connected.

Similar Nodes

  • The Crossfader Node behaves similarly to this Node when you control it using a control signal, except it only supports 2 inputs. Additionally, the Crossfader Node supports a filter-based crossfade.
  • The Switch (Melody) Node is similar to this Node, but for melody connections instead of audio/control signals.