class library: SynthDef - lazy implementation of removeUGen
[supercollider.git] / HelpSource / Classes / LFPar.schelp
blob19b86cd696ecdb01818fb61e4a277420a25efd3d
1 class:: LFPar
2 summary:: Parabolic oscillator
3 related:: Classes/LFCub, Classes/LFPulse, Classes/LFSaw, Classes/LFTri
4 categories::  UGens>Generators>Deterministic
7 Description::
9 A sine-like shape made of two parabolas.  It has audible odd harmonics and is non-band-limited.
10 Output ranges from -1 to +1.
12 classmethods::
14 method::ar, kr
16 argument::freq
17 Frequency in Hertz.
19 argument::iphase
21 Initial phase in cycles ( 0..1 ).
24 argument::mul
25 Output will be multiplied by this value.
27 argument::add
28 This value will be added to the output.
30 Examples::
32 code::
33 // a plot
34 { LFPar.ar(Line.kr(100, 800, 0.1)) }.plot(0.1);
36 // 440 Hz wave
37 { LFPar.ar(440) * 0.1 }.play;
39 // modulating frequency:
40 { LFPar.ar(XLine.kr(100, 2000, 10)) * 0.1 }.play;
42 // amplitude modulation:
43 { LFPar.kr(XLine.kr(1, 200, 10)) * SinOsc.ar(440) * 0.1 }.play;
45 // used as both Oscillator and LFO:
46 { LFPar.ar(LFPar.kr(3, 0.3, 200, 400)) * 0.1 }.play;
49 // more examples:
51 { LFPar.ar(LFPar.kr(LFPar.kr(0.2,0,8,10), 0, 400,800),0,0.1) }.play
52 { LFPar.ar(LFPar.kr(0.2, 0, 400,800),0,0.1) }.play
53 { LFPar.ar(800,0,0.1) }.play
54 { LFPar.ar(XLine.kr(100,8000,30),0,0.1) }.play
57 // compare:
59 { LFCub.ar(LFCub.kr(LFCub.kr(0.2,0,8,10),0, 400,800),0,0.1) }.play
60 { LFCub.ar(LFCub.kr(0.2, 0, 400,800),0,0.1) }.play
61 { LFCub.ar(800,0,0.1) }.play
62 { LFCub.ar(XLine.kr(100,8000,30),0,0.1) }.play
64 { SinOsc.ar(SinOsc.kr(SinOsc.kr(0.2,0,8,10),0, 400,800),0,0.1) }.play
65 { SinOsc.ar(SinOsc.kr(0.2, 0, 400,800),0,0.1) }.play
66 { SinOsc.ar(800,0,0.1) }.play
67 { SinOsc.ar(XLine.kr(100,8000,30),0,0.1) }.play
69 { LFTri.ar(LFTri.kr(LFTri.kr(0.2,0,8,10),0, 400,800),0,0.1) }.play
70 { LFTri.ar(LFTri.kr(0.2, 0, 400,800),0,0.1) }.play
71 { LFTri.ar(800,0,0.1) }.play
72 { LFTri.ar(XLine.kr(100,8000,30),0,0.1) }.play