linux: shared memory interface - link with librt
[supercollider.git] / HelpSource / Classes / Pulse.schelp
blob9193747a931b856042b4489288499cce0e0c5cf2
1 class:: Pulse
2 summary:: Band limited pulse wave.
3 related:: Classes/LFPulse
4 categories::  UGens>Generators>Deterministic
7 Description::
9 Band limited pulse wave generator with pulse width modulation.
12 classmethods::
14 method::ar
16 argument::freq
18 Frequency in Hertz.
21 argument::width
23 Pulse width ratio from zero to one. 0.5 makes a square wave.
26 argument::mul
28 Output will be multiplied by this value.
31 argument::add
33 This value will be added to the output.
36 Examples::
38 code::
40 // modulate frequency
41 { Pulse.ar(XLine.kr(40,4000,6),0.1, 0.2) }.play;
43 // modulate pulse width
44 { Pulse.ar(200, Line.kr(0.01,0.99,8), 0.2) }.play;
46 // two band limited square waves thru a resonant low pass filter
47 { RLPF.ar(Pulse.ar([100,250],0.5,0.1), XLine.kr(8000,400,5), 0.05) }.play;