linux: shared memory interface - link with librt
[supercollider.git] / HelpSource / Classes / LinSelectX.schelp
bloba92af4755c792ad8e19d3c5f4b676000ec46e210
1 class:: LinSelectX
2 summary:: Mix one output from many sources
3 categories:: UGens>Multichannel>Select
4 related:: Classes/SelectXFocus, Classes/Select, Classes/SelectX
6 description::
7 The output is mixed from an array of inputs, linearly interpolating from two adjacent channels.
9 classmethods::
10 method:: ar, kr
12 argument:: which
13 argument:: array
15 examples::
16 code::
19         var a;
20         a = [
21                         SinOsc.ar,
22                         Saw.ar(300),
23                         Pulse.ar(230)
24                 ];
26         LinSelectX.ar(MouseX.kr(0, 1) * a.size, a) * 0.2
27 }.play;
32         var a;
33         a = [
34                         SinOsc.kr(0.25),
35                         LFSaw.kr(10),
36                         LFPulse.kr(0.3)
37                 ];
39         SinOsc.ar(LinSelectX.kr(MouseX.kr(0, 1) * a.size, a) * 300 + 400) * 0.2
40 }.play;
44 note::
45 all the ugens are continously running. This may not be the most efficient way if each input is  cpu-expensive. The array is fixed at the time of writing the SynthDef, and the whole array is embedded in the SynthDef file itself.  For small arrays this is more efficient than reading from a buffer.
48 wrap does not work yet.
50 (by adc)