Controllable Switch 2 Out is a control-selected audio switch that routes a single audio input to one of two outputs. A Channel control input chooses which output receives the signal, so the routing can be automated from any control source. An output-gain parameter (-60dB..+30dB) trims the level and a two-option Mode selector exposes states 1 and 2; toggles for Mute, Stereo ganged and Activate all (which sends the input to every output at once) round out the controls, with gain applied per output and ganged across the pair in stereo.
Per frame it reads the Channel control value, clamps it to the available outputs, and writes the input scaled by each output's gain — the selected output at full gain and the others silent unless Activate all is on. The switch is evaluated one sample-frame at a time, as WaveWarp's sample-per-sample engine advances.