Merge pull request #506 from andrewcsmith/patch-2
[supercollider.git] / HelpSource / Classes / LPF.schelp
blobf6600a92b941aa46c5a10a4d16c179a29e0fb908
1 class:: LPF
2 summary:: 2nd order Butterworth lowpass filter
3 related:: Classes/BPF, Classes/BRF, Classes/HPF
4 categories::  UGens>Filters>Linear
7 Description::
9 A second order low pass filter.
12 classmethods::
14 method::ar, kr
16 argument::in
18 The input signal.
21 argument::freq
23 Cutoff frequency in Hertz.
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::
39 { LPF.ar(Saw.ar(200,0.1), SinOsc.kr(XLine.kr(0.7,300,20),0,3600,4000)) }.play;
41 // kr:
43 { var ctl = LPF.kr(LFPulse.kr(8), SinOsc.kr(XLine.kr(1, 30, 5)) + 2);
44         SinOsc.ar(ctl * 200 + 400)
45 }.play;
49 { var ctl = LPF.kr(LFPulse.kr(8), MouseX.kr(2, 50, 1));
50         SinOsc.ar(ctl * 200 + 400)
51 }.play;