rsc3/doc-schelp/HelpSource/Classes/LFCub.schelp

57 lines
1.3 KiB
Text

class:: LFCub
summary:: A sine like shape made of two cubic pieces
related:: Classes/LFPar, Classes/LFPulse, Classes/LFSaw, Classes/LFTri
categories:: UGens>Generators>Deterministic
Description::
A sine like shape made of two cubic pieces. Smoother than
link::Classes/LFPar:: .
classmethods::
method::ar, kr
argument::freq
Frequency in Hertz.
argument::iphase
Initial phase offset.
argument::mul
Output will be multiplied by this value.
argument::add
This value will be added to the output.
Examples::
code::
{ LFCub.ar(LFCub.kr(LFCub.kr(0.2,0,8,10),0, 400,800),0,0.1) }.play
{ LFCub.ar(LFCub.kr(0.2, 0, 400,800),0,0.1) }.play
{ LFCub.ar(800,0,0.1) }.play
{ LFCub.ar(XLine.kr(100,8000,30),0,0.1) }.play
//compare:
{ LFPar.ar(LFPar.kr(LFPar.kr(0.2,0,8,10),0, 400,800),0,0.1) }.play
{ LFPar.ar(LFPar.kr(0.2, 0, 400,800),0,0.1) }.play
{ LFPar.ar(800,0,0.1) }.play
{ LFPar.ar(XLine.kr(100,8000,30),0,0.1) }.play
{ SinOsc.ar(SinOsc.kr(SinOsc.kr(0.2,0,8,10),0, 400,800),0,0.1) }.play
{ SinOsc.ar(SinOsc.kr(0.2, 0, 400,800),0,0.1) }.play
{ SinOsc.ar(800,0,0.1) }.play
{ SinOsc.ar(XLine.kr(100,8000,30),0,0.1) }.play
{ LFTri.ar(LFTri.kr(LFTri.kr(0.2,0,8,10),0, 400,800),0,0.1) }.play
{ LFTri.ar(LFTri.kr(0.2, 0, 400,800),0,0.1) }.play
{ LFTri.ar(800,0,0.1) }.play
{ LFTri.ar(XLine.kr(100,8000,30),0,0.1) }.play
::