Debian Codegraph @

opcodes/oversample.xml

raw symbols SCIP
1
2 <refentry id="oversample">
3 <indexterm id="IndexOversample"><primary>oversample</primary></indexterm>
4 <refentryinfo><title>Signal I/O:Software Bus</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>oversample</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>oversample</refname>
11 <refpurpose>
12 Sets a higher local sampling rate based on an oversampling factor.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Sets the local sampling rate value in a user-defined opcode block.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis><command>oversample</command> ifactor[,icvt_in, icvt_out] </synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Initialization</title>
30 <para>
31 <emphasis>ifactor</emphasis> -- sets the oversampling factor. It
32 needs to be a positive integer &gt; 1. A factor of 1 is a non-op,
33 zero or negative factors are illegal. The local sampling rate is
34 set as ifactor * sr. The value of the sr variable is then
35 changed locally. Local kr is also changed accordingly, local
36 ksmps remains unchanged.
37 </para>
38 <para>
39 <emphasis>icvt_in</emphasis> -- converter used for input: if Secret
40 Rabbit Code is used, then 0 - best quality sync (default); 1 - medium
41 quality sync; 2 - fast sync; 3 - zero-order hold; and 4 -
42 linear.
43 </para>
44 <para>
45 <emphasis>icvt_out</emphasis> -- converter used for output,
46 defaults to the input converter, but can be different.
47 </para>
48
49 <note>
50 <title>Note</title>
51 <para>
52 Higher-quality sync converters add a small amount of latency to
53 the signal (0, 1, 2, increasing with quality). Converters 3 and 4 are latency-free.
54 </para>
55 <para>
56 Calling this opcode in the same UDO as setksmps is not
57 allowed. The opcode can only be used in UDOs. Audio or control rate array arguments
58 are not allowed. Global variables or bus channels should not
59 be used.
60 </para>
61 </note>
62 </refsect1>
63
64 <refsect1>
65 <title>See Also</title>
66 <para>
67 <link linkend="OrchUDO"><citetitle>User Defined Opcodes (UDO)</citetitle></link>
68 </para>
69 </refsect1>
70
71 <refsect1>
72 <title>Credits</title>
73 <para>Author: Victor Lazzarini</para>
74 <para>New in version 7.0</para>
75 </refsect1>
76 </refentry>