2 summary:: Randomly select one of several inputs
3 categories:: UGens>Triggers, UGens>Random
4 related:: Classes/TChoose
7 An output is selected randomly on recieving a trigger from an array of inputs.
9 the code::weights:: of this choice are determined from the weights array.
11 If code::normalize:: is set to 1 the weights are continuously normalized (this is an extra overhead) when using fixed values the code::normalizeSum:: method can be used to normalize the values.
13 TWChoose is a composite of link::Classes/TWindex:: and link::Classes/Select::.
33 TWChoose.ar(Dust.ar(MouseX.kr(1, 1000, 1)), a, [0.99, 0.05, 0.05].normalizeSum) * 0.2
39 note:: all the ugens are continously running. This may not be the most efficient way if each input is cpu-expensive.::