Debian Codegraph @

opcodes/oscils.xml

raw symbols SCIP
1
2 <refentry id="oscils">
3 <indexterm id="IndexOscils"><primary>oscils</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Basic Oscillators</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>oscils</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>oscils</refname>
13 <refpurpose>
14 A simple, fast sine oscillator
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Simple, fast sine oscillator, that uses only one multiply, and two add operations to generate one sample of output, and does not require a function table.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>ares <command>oscils</command> iamp, icps, iphs [, iflg]</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>iamp</emphasis> -- output amplitude.
34 </para>
35
36 <para>
37 <emphasis>icps</emphasis> -- frequency in Hz (may be zero or negative, however the absolute value must be less than <emphasis>sr/</emphasis>2).
38 </para>
39
40 <para>
41 <emphasis>iphs</emphasis> -- start phase between 0 and 1.
42 </para>
43
44 <para>
45 <emphasis>iflg</emphasis> -- sum of the following values:
46 <itemizedlist>
47 <listitem>
48 <para>
49 <emphasis>2</emphasis>: use double precision even if Csound was compiled to use floats. This improves quality (especially in the case of long performance time), but may be up to twice as slow.
50 </para>
51 </listitem>
52
53 <listitem>
54 <para>
55 <emphasis>1</emphasis>: skip initialization.
56 </para>
57 </listitem>
58 </itemizedlist>
59 </para>
60 </refsect1>
61
62 <refsect1>
63 <title>Performance</title>
64 <para>
65 <emphasis>ares</emphasis> -- audio output
66 </para>
67 </refsect1>
68
69 <refsect1>
70 <title>Examples</title>
71 <para>
72 Here is an example of the oscils opcode. It uses the file <ulink url="examples/oscils.csd"><citetitle>oscils.csd</citetitle></ulink>.
73
74 <example>
75 <title>Example of the oscils opcode.</title>
76
77
78
79 <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>
80 <xi:include href="examples-xml/oscils.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
81 </example>
82 </para>
83 </refsect1>
84
85 <refsect1>
86 <title>See also</title>
87 <para><link linkend="SiggenBasic"><citetitle>Basic Oscillators</citetitle></link></para>
88 </refsect1>
89
90 <refsect1>
91 <title>Credits</title>
92 <para>
93 <simplelist>
94 <member>Author: &nameistvan;</member>
95 <member>January 2002</member>
96 </simplelist>
97 </para>
98 <para>New in version 4.18</para>
99 </refsect1>
100 </refentry>