Explicitly include a boost "windows" folder even on linux
[supercollider.git] / HelpSource / Classes / NumChannels.schelp
blobcaa1269db5323f47aaba403c30258cc246e43cd3
1 class:: NumChannels
2 summary:: Ensures the number of output channels
3 categories:: UGens>Multichannel
5 Description::
6 Ensures the output has the stated number of channels, regardless of the number of input channels.
8 classmethods::
10 method:: ar
11 argument:: input
12 the audio signal
13 argument:: numChannels
14 an integer
15 argument:: mixdown
16 true/false, whether you want to mixdown or just use the first channel
18 discussion::
19 Mono input is copied.
20 Multi-channels clumped and if code::mixdown:: is true mixed down, else the first channel used.
22 Examples::
23 code::
26         NumChannels.ar(
27                 SinOsc.ar(100,0,0.2), // 1 becomes 2
28                 2)
29 }.play
34         NumChannels.ar(
35                 SinOsc.ar([100,200,300],0,0.2), // 3 becomes 2
36                 2)
37 }.play
42         NumChannels.ar(
43                 SinOsc.ar([100,200,300,100],0,0.2), // 4 becomes 2
45                 2)
46 }.play