Debian Codegraph @

opcodes/vco2ft.xml

raw symbols SCIP
1
2 <refentry id="vco2ft">
3 <indexterm id="IndexVco2ft"><primary>vco2ft</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Dynamic Spectrum Oscillators</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>vco2ft</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>vco2ft</refname>
13 <refpurpose>
14 Returns a table number at k-time for a given oscillator frequency and wavform.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 <emphasis>vco2ft</emphasis> returns the function table number to be used for generating the specified waveform at a given frequency. This function table number can be used by any Csound opcode that generates a signal by reading function tables (like <link linkend="oscilikt"><citetitle>oscilikt</citetitle></link>). The tables must be calculated by <link linkend="vco2init"><citetitle>vco2init</citetitle></link> before <emphasis>vco2ft</emphasis> is called and shared as Csound ftables (<emphasis>ibasfn</emphasis>).
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>kfn <command>vco2ft</command> kcps, iwave [, inyx]</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>iwave</emphasis> -- the waveform for which table number is to be selected. Allowed values are:
34 <itemizedlist>
35 <listitem><para>0: sawtooth</para></listitem>
36 <listitem><para>1: 4 * x * (1 - x) (integrated sawtooth)</para></listitem>
37 <listitem><para>2: pulse (not normalized)</para></listitem>
38 <listitem><para>3: square wave</para></listitem>
39 <listitem><para>4: triangle</para></listitem>
40 </itemizedlist>
41 </para>
42
43 <para>
44 Additionally, negative <emphasis>iwave</emphasis> values select user defined waveforms (see also <link linkend="vco2init"><citetitle>vco2init</citetitle></link>).
45 </para>
46
47 <para>
48 <emphasis>inyx</emphasis> (optional, default=0.5) -- bandwidth of the generated waveform, as percentage (0 to 1) of the sample rate. The expected range is 0 to 0.5 (i.e. up to <link linkend="sr"><citetitle>sr</citetitle></link>/2), other values are limited to the allowed range.
49 </para>
50
51 <para>
52 Setting <emphasis>inyx</emphasis> to 0.25 (<emphasis>sr</emphasis>/4), or 0.3333 (<emphasis>sr</emphasis>/3) can produce a <quote>fatter</quote> sound in some cases, although it is more likely to reduce quality.
53 </para>
54 </refsect1>
55
56 <refsect1>
57 <title>Performance</title>
58 <para>
59 <emphasis>kfn</emphasis> -- the ftable number, returned at k-rate.
60 </para>
61
62 <para>
63 <emphasis>kcps</emphasis> -- frequency in Hz, returned at k-rate. Zero and negative values are allowed. However, if the absolute value exceeds <emphasis>sr</emphasis>/2 (or <emphasis>sr</emphasis> * <emphasis>inyx</emphasis>), the selected table will contain silence.
64 </para>
65 </refsect1>
66
67 <refsect1>
68 <title>Examples</title>
69 <para>
70 See the example for the <link linkend="vco2"><citetitle>vco2</citetitle></link> opcode.
71 </para>
72 </refsect1>
73
74 <refsect1>
75 <title>See Also</title>
76 <para>
77 <link linkend="SiggenDynamic"><citetitle>Dynamic Spectrum Oscillators</citetitle></link>
78 </para>
79 </refsect1>
80
81 <refsect1>
82 <title>Credits</title>
83 <para>Author: &nameistvan;</para>
84 <para>New in version 4.22</para>
85 </refsect1>
86 </refentry>