lfoSignal Generators:Basic Oscillatorslfolfo
A low frequency oscillator of various shapes.
Description
A low frequency oscillator of various shapes.
Syntaxkres lfo kamp, kcps [, itype]ares lfo kamp, kcps [, itype]Initializationitype (optional, default=0) -- determine the waveform of the oscillator. Default is 0.
itype = 0 - sineitype = 1 - trianglesitype = 2 - square (bipolar)itype = 3 - square (unipolar)itype = 4 - saw-tooth (unipolar - up)itype = 5 - saw-tooth (unipolar - down)
The sine wave is implemented as a 4096 table and linear interpolation. The others are calculated.
Performancekamp -- amplitude of output
kcps -- frequency of oscillator
Examples
Here is an example of the lfo opcode. It uses the file lfo.csd.
Example of the lfo opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
Here is another example of the lfo opcode. It uses the file lfo-advanced.csd.
Advanced example of the lfo opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoBasic OscillatorsCreditsAuthor: &namejohn;University of Bath/Codemist Ltd.Bath, UKNovember 1998New in Csound version 3.491