Debian Codegraph @

opcodes/poscil3.xml

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