Debian Codegraph @

opcodes/vdelayxs.xml

raw symbols SCIP
1
2 <refentry id="vdelayxs">
3 <indexterm id="IndexVdelayxs"><primary>vdelayxs</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Delay</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>vdelayxs</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>vdelayxs</refname>
11 <refpurpose>
12 A stereo variable delay opcode with high quality interpolation.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 A stereo variable delay opcode with high quality interpolation.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>aout1, aout2 <command>vdelayxs</command> ain1, ain2, 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</emphasis> -- output audio signals
47 </para>
48
49 <para>
50 <emphasis>ain1, ain2</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 use of the <emphasis>vdelayxs</emphasis> opcode. It uses the file <ulink url="examples/vdelayxs.csd"><citetitle>vdelayxs.csd</citetitle></ulink>.
83 <example>
84 <title>Example of the <emphasis>vdelayxs</emphasis> 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/vdelayxs.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
87 </example>
88 </para>
89 </refsect1>
90
91 <refsect1>
92 <title>See also</title>
93 <para><link linkend="SigmodDelay"><citetitle>Delay</citetitle></link></para>
94 </refsect1>
95
96 </refentry>