1class:: LFPar
2summary:: Parabolic oscillator
3related:: Classes/LFCub, Classes/LFPulse, Classes/LFSaw, Classes/LFTri
4categories::  UGens>Generators>Deterministic
5
6
7Description::
8
9A sine-like shape made of two parabolas and the integral of a triangular wave.  It has audible odd harmonics and is non-band-limited.
10Output ranges from -1 to +1.
11
12classmethods::
13
14method::ar, kr
15
16argument::freq
17Frequency in Hertz.
18
19argument::iphase
20
21Initial phase in cycles ( 0..1 ).
22
23
24argument::mul
25Output will be multiplied by this value.
26
27argument::add
28This value will be added to the output.
29
30Examples::
31
32code::
33// a plot
34{ LFPar.ar(Line.kr(100, 800, 0.1)) }.plot(0.1);
35
36// 440 Hz wave
37{ LFPar.ar(440) * 0.1 }.play;
38
39// modulating frequency:
40{ LFPar.ar(XLine.kr(100, 2000, 10)) * 0.1 }.play;
41
42// amplitude modulation:
43{ LFPar.kr(XLine.kr(1, 200, 10)) * SinOsc.ar(440) * 0.1 }.play;
44
45// used as both Oscillator and LFO:
46{ LFPar.ar(LFPar.kr(3, 0.3, 200, 400)) * 0.1 }.play;
47
48// used as phase modulator (behaves like a triangular modulator in FM):
49// Compare:
50{SinOsc.ar(440, LFPar.ar(1, 2, mul: 8pi))}.play
51{SinOsc.ar(440 + LFTri.ar(1, mul: 8pi))}.play
52
53
54// more examples:
55
56{ LFPar.ar(LFPar.kr(LFPar.kr(0.2,0,8,10), 0, 400,800),0,0.1) }.play
57{ LFPar.ar(LFPar.kr(0.2, 0, 400,800),0,0.1) }.play
58{ LFPar.ar(800,0,0.1) }.play
59{ LFPar.ar(XLine.kr(100,8000,30),0,0.1) }.play
60
61
62// compare:
63
64{ LFCub.ar(LFCub.kr(LFCub.kr(0.2,0,8,10),0, 400,800),0,0.1) }.play
65{ LFCub.ar(LFCub.kr(0.2, 0, 400,800),0,0.1) }.play
66{ LFCub.ar(800,0,0.1) }.play
67{ LFCub.ar(XLine.kr(100,8000,30),0,0.1) }.play
68
69{ SinOsc.ar(SinOsc.kr(SinOsc.kr(0.2,0,8,10),0, 400,800),0,0.1) }.play
70{ SinOsc.ar(SinOsc.kr(0.2, 0, 400,800),0,0.1) }.play
71{ SinOsc.ar(800,0,0.1) }.play
72{ SinOsc.ar(XLine.kr(100,8000,30),0,0.1) }.play
73
74{ LFTri.ar(LFTri.kr(LFTri.kr(0.2,0,8,10),0, 400,800),0,0.1) }.play
75{ LFTri.ar(LFTri.kr(0.2, 0, 400,800),0,0.1) }.play
76{ LFTri.ar(800,0,0.1) }.play
77{ LFTri.ar(XLine.kr(100,8000,30),0,0.1) }.play
78::
79
80