Merge pull request #506 from andrewcsmith/patch-2
[supercollider.git] / HelpSource / Classes / LFCub.schelp
blobe7767557f57ad0a35f81d671e16740ab3e064b14
1 class:: LFCub
2 summary:: A sine like shape made of two cubic pieces
3 related:: Classes/LFPar, Classes/LFPulse, Classes/LFSaw, Classes/LFTri
4 categories::  UGens>Generators>Deterministic
7 Description::
9 A sine like shape made of two cubic pieces. Smoother than
10 link::Classes/LFPar:: .
13 classmethods::
15 method::ar, kr
17 argument::freq
18 Frequency in Hertz.
20 argument::iphase
22 Initial phase offset.
25 argument::mul
26 Output will be multiplied by this value.
28 argument::add
29 This value will be added to the output.
31 Examples::
33 code::
34 { LFCub.ar(LFCub.kr(LFCub.kr(0.2,0,8,10),0, 400,800),0,0.1) }.play
35 { LFCub.ar(LFCub.kr(0.2, 0, 400,800),0,0.1) }.play
36 { LFCub.ar(800,0,0.1) }.play
37 { LFCub.ar(XLine.kr(100,8000,30),0,0.1) }.play
39 //compare:
41 { LFPar.ar(LFPar.kr(LFPar.kr(0.2,0,8,10),0, 400,800),0,0.1) }.play
42 { LFPar.ar(LFPar.kr(0.2, 0, 400,800),0,0.1) }.play
43 { LFPar.ar(800,0,0.1) }.play
44 { LFPar.ar(XLine.kr(100,8000,30),0,0.1) }.play
47 { SinOsc.ar(SinOsc.kr(SinOsc.kr(0.2,0,8,10),0, 400,800),0,0.1) }.play
48 { SinOsc.ar(SinOsc.kr(0.2, 0, 400,800),0,0.1) }.play
49 { SinOsc.ar(800,0,0.1) }.play
50 { SinOsc.ar(XLine.kr(100,8000,30),0,0.1) }.play
52 { LFTri.ar(LFTri.kr(LFTri.kr(0.2,0,8,10),0, 400,800),0,0.1) }.play
53 { LFTri.ar(LFTri.kr(0.2, 0, 400,800),0,0.1) }.play
54 { LFTri.ar(800,0,0.1) }.play
55 { LFTri.ar(XLine.kr(100,8000,30),0,0.1) }.play