Merge pull request #506 from andrewcsmith/patch-2
[supercollider.git] / HelpSource / Classes / AudioIn.schelp
blob7fc417f45e3f4729fc864a779b5bde31921ddfd8
1 class:: AudioIn
2 summary:: Read audio input.
3 related:: Classes/In, Classes/SoundIn
4 categories::  UGens>InOut
7 Description::
9 Reads audio from the sound input hardware.
11 note::
12 This is provided for backwards compatibility with SC2 code. For normal use link::Classes/SoundIn::, which has bus numbers beginning at 0, as AudioIn may be deprecated and removed at some point in the future.
15 classmethods::
17 method::ar
19 argument::channel
21 Input channel number to read. Channel numbers begin at 1.
23 argument::mul
25 argument::add
27 Examples::
28 Patching input to output
29 code::
30 // patching input to output
32 // watch the feedback
35 SynthDef("help-AudioIn",{ arg out=0;
36         Out.ar(out,
37                 AudioIn.ar(1)
38         )
39 }).play;
43 Stereo through patching from input to output
44 code::
45 // stereo through patching from input to output
47 // watch the feedback
50 SynthDef("help-AudioIn",{ arg out=0;
51         Out.ar(out,
52                 AudioIn.ar([1,2])
53         )
54 }).play;