Debian Codegraph @

opcodes/poscil.xml

raw symbols SCIP
1
2 <refentry id="poscil">
3 <indexterm id="Indexposcil"><primary>poscil</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Basic Oscillators</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>poscil</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>poscil</refname>
11 <refpurpose>
12 High precision oscillator.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 High precision oscillator.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>ares <command>poscil</command> aamp, acps [, ifn, iphs]</synopsis>
26
27 <synopsis>ares <command>poscil</command> aamp, kcps [, ifn, iphs]</synopsis>
28
29 <synopsis>ares <command>poscil</command> kamp, acps [, ifn, iphs]</synopsis>
30
31 <synopsis>ares <command>poscil</command> kamp, kcps [, ifn, iphs]</synopsis>
32
33 <synopsis>ires <command>poscil</command> kamp, kcps [, ifn, iphs]</synopsis>
34
35 <synopsis>kres <command>poscil</command> kamp, kcps [, ifn, iphs]</synopsis>
36 </refsect1>
37
38 <refsect1>
39 <title>Initialization</title>
40 <para>
41 <emphasis>ifn</emphasis> -- (optional) function table number. This
42 defaults to -1 which indicates a sinewave.
43 </para>
44
45 <para>
46 <emphasis>iphs</emphasis> (optional, default=0) -- initial phase
47 (normalized table index 0-1). If a negative value is given
48 initialisation of the phase is skipped.
49 </para>
50 </refsect1>
51
52 <refsect1>
53 <title>Performance</title>
54 <para>
55 <emphasis>ares</emphasis> -- output signal
56 </para>
57 <para>
58 <emphasis>kamp</emphasis>, <emphasis>aamp</emphasis> -- the
59 amplitude of the output signal.
60 </para>
61 <para>
62 <emphasis>kcps</emphasis>, <emphasis>acps</emphasis> -- the
63 frequency of the output signal in cycles per second.
64 </para>
65 <para>
66 <emphasis>poscil</emphasis> (precise oscillator) is the same as
67 <link linkend="oscili"><citetitle>oscili</citetitle></link>, but
68 always employs floating-point table indexing, instead of integer math, like
69 <emphasis>oscil</emphasis> and <emphasis>oscili</emphasis>
70 (which can use either alternatively, depending on the table size). It
71 is only a bit slower than <emphasis>oscili</emphasis> when
72 reading power-two size tables.
73 </para>
74 <para>The opcode <link
75 linkend="poscil3"><citetitle>poscil3</citetitle></link> is the
76 same as <emphasis>poscil</emphasis>, but uses cubic
77 interpolation.</para>
78 </refsect1>
79
80 <refsect1>
81 <title>Examples</title>
82 <para>
83 Here is an example of the poscil opcode. It uses the file <ulink
84 url="examples/poscil.csd"><citetitle>poscil.csd</citetitle></ulink>.
85 <example>
86 <title>Example of the poscil opcode.</title>
87 <para>See the sections <link
88 linkend="UsingRealTime"><citetitle>Real-time
89 Audio</citetitle></link> and <link
90 linkend="CommandFlags"><citetitle>Command Line
91 Flags</citetitle></link> for more information on using command
92 line flags.</para>
93 <xi:include href="examples-xml/poscil.csd.xml"
94 xmlns:xi="http://www.w3.org/2001/XInclude"/>
95 </example>
96 </para>
97 </refsect1>
98
99 <refsect1>
100 <title>See also</title>
101 <para><link linkend="SiggenBasic"><citetitle>Basic Oscillators</citetitle></link></para>
102 </refsect1>
103
104 <refsect1>
105 <title>Credits</title>
106 <para>
107 <simplelist>
108 <member>Author: &namegabriel;</member>
109 <member>Italy</member>
110 <member>1998</member>
111 </simplelist>
112 </para>
113 <para>November 2002. Added a note about the changes to Csound
114 version 4.22, thanks to &namerasmus;.</para>
115 <para>New in Csound version 3.52</para>
116 <para>Function table optional in Csound version 6.00</para>
117 <para>Skip of initialisation new in version 6.06</para>
118 </refsect1>
119 </refentry>