Debian Codegraph @

opcodes/vdelayxq.xml

raw symbols SCIP
1
2 <refentry id="vdelayxq">
3 <indexterm id="IndexVdelayxq"><primary>vdelayxq</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Delay</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>vdelayxq</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>vdelayxq</refname>
11 <refpurpose>
12 A 4-channel variable delay opcode with high quality interpolation.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 A 4-channel variable delay opcode with high quality interpolation.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>aout1, aout2, aout3, aout4 <command>vdelayxq</command> ain1, ain2, ain3, ain4, adl, imd, iws [, ist]</synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Initialization</title>
30 <para>
31 <emphasis>imd</emphasis> -- max. delay time (seconds)
32 </para>
33
34 <para>
35 <emphasis>iws</emphasis> -- interpolation window size (see below)
36 </para>
37
38 <para>
39 <emphasis>ist</emphasis> (optional) -- skip initialization if not zero
40 </para>
41 </refsect1>
42
43 <refsect1>
44 <title>Performance</title>
45 <para>
46 <emphasis>aout1, aout2, aout3, aout4</emphasis> -- output audio signals.
47 </para>
48
49 <para>
50 <emphasis>ain1, ain2, ain3, ain4</emphasis> -- input audio signals.
51 </para>
52
53 <para>
54 <emphasis>adl</emphasis> -- delay time in seconds
55 </para>
56
57 <para>
58 This opcode uses high quality (and slow) interpolation, that is much more accurate than the currently available linear and cubic interpolation. The <emphasis>iws</emphasis> parameter sets the number of input samples used for calculating one output sample (allowed values are any integer multiply of 4 in the range 4 - 1024); higher values mean better quality and slower speed.
59 </para>
60
61 <para>
62 The multichannel opcodes (eg. <emphasis>vdelayxq</emphasis>) allow delaying 2 or 4 variables at once (stereo or quad signals); this is much more efficient than using separate opcodes for each channel.
63 </para>
64
65 <note>
66 <title>Notes</title>
67 <para>
68 <itemizedlist>
69 <listitem><para>Delay time is measured in seconds (unlike in vdelay and vdelay3), and must be a-rate.</para></listitem>
70 <listitem><para>The minimum allowed delay is iws/2 samples.</para></listitem>
71 <listitem><para>Using the same variables as input and output is allowed in these opcodes.</para></listitem>
72 <listitem><para>In vdelayxw*, changing the delay time has some effects on output volume: <literallayout>a = 1 / (1 + dt)</literallayout> where a is the output gain, and dt is the change of delay time per seconds.</para></listitem>
73 <listitem><para>These opcodes are best used in the double-precision version of Csound.</para></listitem>
74 </itemizedlist>
75 </para>
76 </note>
77 </refsect1>
78
79 <refsect1>
80 <title>Examples</title>
81 <para>
82 Here is an example of the vdelayxq opcode. It uses the file <ulink url="examples/vdelayxq.csd"><citetitle>vdelayxq.csd</citetitle></ulink>.
83 <example>
84 <title>Example of the vdelayxq opcode.</title>
85 <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>
86 <xi:include href="examples-xml/vdelayxq.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
87 </example>
88 Two important points here. First, the delay time must be always positive. And second, even though the delay time can be controlled in k-rate, it is not advised to do so, since sudden time changes will create clicks.
89 </para>
90 </refsect1>
91
92 <refsect1>
93 <title>See also</title>
94 <para><link linkend="SigmodDelay"><citetitle>Delay</citetitle></link></para>
95 </refsect1>
96
97 </refentry>