Debian Codegraph @

opcodes/oscilikt.xml

raw symbols SCIP
1
2 <refentry id="oscilikt">
3 <indexterm id="IndexOscilikt"><primary>oscilikt</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Basic Oscillators</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>oscilikt</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>oscilikt</refname>
11 <refpurpose>
12 A linearly interpolated oscillator that allows changing the table number at k-rate.
13 </refpurpose>
14 </refnamediv>
15 <refsect1>
16 <title>Description</title>
17 <para>
18 <emphasis>oscilikt</emphasis> is very similar to <link linkend="oscili"><citetitle>oscili</citetitle></link>, but allows changing the table number at k-rate. It is slightly slower than <emphasis>oscili</emphasis> (especially with high control rate), although also more accurate as it uses a 31-bit phase accumulator, as opposed to the 24-bit one used by <emphasis>oscili</emphasis>.
19 </para>
20 </refsect1>
21
22 <refsect1>
23 <title>Syntax</title>
24 <synopsis>ares <command>oscilikt</command> xamp, xcps, kfn [, iphs] [, istor]</synopsis>
25
26 <synopsis>kres <command>oscilikt</command> kamp, kcps, kfn [, iphs] [, istor]</synopsis>
27 </refsect1>
28
29 <refsect1>
30 <title>Initialization</title>
31 <para>
32 <emphasis>iphs</emphasis> (optional, defaults to 0) -- initial phase in the range 0 to 1. Other values are wrapped to the allowed range.
33 </para>
34
35 <para>
36 <emphasis>istor</emphasis> (optional, defaults to 0) -- skip initialization.
37 </para>
38 </refsect1>
39
40 <refsect1>
41 <title>Performance</title>
42
43 <para>
44 <emphasis>kamp</emphasis>, <emphasis>xamp</emphasis> -- amplitude.
45 </para>
46
47 <para>
48 <emphasis>kcps</emphasis>, <emphasis>xcps</emphasis> -- frequency in Hz. Zero and negative values are allowed. However, the absolute value must be less than <link linkend="sr"><citetitle>sr</citetitle></link> (and recommended to be less than <emphasis>sr/</emphasis>2).
49 </para>
50
51 <para>
52 <emphasis>kfn</emphasis> -- function table number. Can be varied at control rate (useful to <quote>morph</quote> waveforms, or select from a set of band-limited tables generated by <link linkend="GEN30"><citetitle>GEN30</citetitle></link>).
53 </para>
54 </refsect1>
55
56 <refsect1>
57 <title>Examples</title>
58 <para>
59 Here is an example of the oscilikt opcode. It uses the file <ulink url="examples/oscilikt.csd"><citetitle>oscilikt.csd</citetitle></ulink>.
60
61 <example>
62 <title>Example of the oscilikt opcode.</title>
63 <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>
64 <xi:include href="examples-xml/oscilikt.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
65 </example>
66 </para>
67 </refsect1>
68
69 <refsect1>
70 <title>See also</title>
71 <para><link linkend="SiggenBasic"><citetitle>Basic Oscillators</citetitle></link></para>
72 </refsect1>
73
74 <refsect1>
75 <title>Credits</title>
76 <para>Author: &nameistvan;</para>
77 <para>Example written by &namekevin;.</para>
78 <para>New in version 4.22</para>
79 </refsect1>
80 </refentry>