Debian Codegraph @

opcodes/lfo.xml

raw symbols SCIP
1
2 <refentry id="lfo">
3 <indexterm id="Indexlfo"><primary>lfo</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Basic Oscillators</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>lfo</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>lfo</refname>
13 <refpurpose>
14 A low frequency oscillator of various shapes.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 A low frequency oscillator of various shapes.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>kres <command>lfo</command> kamp, kcps [, itype]</synopsis>
28
29 <synopsis>ares <command>lfo</command> kamp, kcps [, itype]</synopsis>
30 </refsect1>
31
32 <refsect1>
33 <title>Initialization</title>
34 <para>
35 <emphasis>itype</emphasis> (optional, default=0) -- determine the waveform of the oscillator. Default is 0.
36 <itemizedlist>
37 <listitem>
38 <para><emphasis>itype</emphasis> = 0 - sine</para>
39 </listitem>
40
41 <listitem>
42 <para><emphasis>itype</emphasis> = 1 - triangles</para>
43 </listitem>
44
45 <listitem>
46 <para><emphasis>itype</emphasis> = 2 - square (bipolar)</para>
47 </listitem>
48
49 <listitem>
50 <para><emphasis>itype</emphasis> = 3 - square (unipolar)</para>
51 </listitem>
52
53 <listitem>
54 <para><emphasis>itype</emphasis> = 4 - saw-tooth (unipolar - up)</para>
55 </listitem>
56
57 <listitem>
58 <para><emphasis>itype</emphasis> = 5 - saw-tooth (unipolar - down)</para>
59 </listitem>
60 </itemizedlist>
61 </para>
62
63 <para>
64 The sine wave is implemented as a 4096 table and linear interpolation. The others are calculated.
65 </para>
66 </refsect1>
67
68 <refsect1>
69 <title>Performance</title>
70 <para>
71 <emphasis>kamp</emphasis> -- amplitude of output
72 </para>
73
74 <para>
75 <emphasis>kcps</emphasis> -- frequency of oscillator
76 </para>
77 </refsect1>
78
79 <refsect1>
80 <title>Examples</title>
81 <para>
82 Here is an example of the lfo opcode. It uses the file <ulink url="examples/lfo.csd"><citetitle>lfo.csd</citetitle></ulink>.
83
84 <example>
85 <title>Example of the lfo opcode.</title>
86 <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
87 <xi:include href="examples-xml/lfo.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
88 </example>
89 </para>
90 </refsect1>
91
92 <refsect1>
93 <para>
94 Here is another example of the lfo opcode. It uses the file <ulink url="examples/lfo-advanced.csd"><citetitle>lfo-advanced.csd</citetitle></ulink>.
95 <example>
96 <title>Advanced example of the lfo opcode.</title>
97 <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
98 <xi:include href="examples-xml/lfo-advanced.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
99 </example>
100 </para>
101 </refsect1>
102
103 <refsect1>
104 <title>See also</title>
105 <para><link linkend="SiggenBasic"><citetitle>Basic Oscillators</citetitle></link></para>
106 </refsect1>
107
108 <refsect1>
109 <title>Credits</title>
110 <para>
111 <simplelist>
112 <member>Author: &namejohn;</member>
113 <member>University of Bath/Codemist Ltd.</member>
114 <member>Bath, UK</member>
115 <member>November 1998</member>
116 </simplelist>
117 </para>
118
119 <para>New in Csound version 3.491</para>
120 </refsect1>
121 </refentry>