2 summary:: Select output from an array of inputs.
3 categories:: UGens>Multichannel>Select
4 related:: Classes/SelectX, Classes/SelectXFocus, Classes/LinSelectX
7 The output is selected from an array of inputs.
9 note:: All the UGens are continously running. This may not be the most efficient
10 way if each input is CPU-expensive. ::
12 Note that the array is fixed at the time of writing the SynthDef, and the
13 whole array is embedded in the SynthDef file itself. For small arrays
14 this is more efficient than reading from a buffer.
28 Input array of signals
35 SynthDef("help-Select",{ arg out=0;
45 Select.ar(LFSaw.kr(1.0,0.0,cycle,cycle),a) * 0.2
51 //Here used as a sequencer:
53 SynthDef("help-Select-2",{ arg out=0;
56 a = Array.fill(32,{ rrand(30,80) }).midicps;
62 LFSaw.kr(1.0,0.0,cycle,cycle),