class library: SynthDef - lazy implementation of removeUGen
[supercollider.git] / HelpSource / Classes / DC.schelp
blobabc18faac783d3de68603fe73f16bdf8cf97eb6c
1 class:: DC
2 summary:: Create a constant amplitude signal
3 related:: Classes/LeakDC
4 categories::  UGens>Generators>Single-value
6 Description::
8 This UGen simply outputs the initial value you give it.
10 classmethods::
12 method::ar, kr
14 argument::in
15 constant value to output, cannot be modulated, set at initialisation time
17 examples::
18 code::
19 //won't work (the output is 0.5*0.0), which is why we need the DC UGen!
20 {0.5}.play
22 //constantly zero
23 {DC.ar(0.0) }.play;
26 //DC offset; will click on start and finish
27 {DC.ar(0.5) + SinOsc.ar(440,0,0.1) }.play;
30 //test - note the transient before LeakDC adapts and suppresses the offset
31 {LeakDC.ar(DC.ar(0.5))}.play;
34 //For these examples, you might want to boot the internal server
35 Server.default =s = Server.internal;
36 s.boot;
37 s.scope