Debian Codegraph @

opcodes/undersample.xml

raw symbols SCIP
1
2 <refentry id="undersample">
3 <indexterm id="IndexUndersample"><primary>undersample</primary></indexterm>
4 <refentryinfo><title>Signal I/O:Software Bus</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>undersample</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>undersample</refname>
11 <refpurpose>
12 Sets a lower local sampling rate based on an undersampling 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>undersample</command> ifactor[,icvt_in, icvt_out] </synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Initialization</title>
30 <para>
31 <emphasis>ifactor</emphasis> -- sets the undersampling 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 (1/ifactor) * sr. The value of the sr variable is then
35 changed locally. Local ksmps is also changed accordingly.
36 </para>
37 <para>
38 <emphasis>icvt_in</emphasis> -- converter used for input: if Secret
39 Rabbit Code is used, then 0 - best quality sync (default); 1 - medium
40 quality sync; 2 - fast sync; 3 - zero-order hold; and 4 -
41 linear.
42 </para>
43 <para>
44 <emphasis>icvt_out</emphasis> -- converter used for output,
45 defaults to the input converter, but can be different.
46 </para>
47
48 <note>
49 <title>Note</title>
50 <para>
51 Higher-quality sync converters add a small amount of latency to
52 the signal (0, 1, 2, increasing with quality). Converters 3 and 4 are latency-free.
53 </para>
54 <para>
55 Calling this opcode in the same UDO as setksmps is not
56 allowed.
57 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 be used.
59 </para>
60 </note>
61 </refsect1>
62
63 <refsect1>
64 <title>See Also</title>
65 <para>
66 <link linkend="OrchUDO"><citetitle>User Defined Opcodes (UDO)</citetitle></link>
67 </para>
68 </refsect1>
69
70 <refsect1>
71 <title>Credits</title>
72 <para>Author: Victor Lazzarini</para>
73 <para>New in version 7.0</para>
74 </refsect1>
75 </refentry>