Debian Codegraph @

opcodes/vdelayx.xml

raw symbols SCIP
1
2 <refentry id="vdelayx">
3 <indexterm id="IndexVdelayx"><primary>vdelayx</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Delay</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>vdelayx</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>vdelayx</refname>
11 <refpurpose>
12 A variable delay opcode with high quality interpolation.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 A variable delay opcode with high quality interpolation.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>aout <command>vdelayx</command> ain, 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>aout</emphasis> -- output audio signal
47 </para>
48
49 <para>
50 <emphasis>ain</emphasis> -- input audio signal
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 <note>
62 <title>Notes</title>
63 <para>
64 <itemizedlist>
65 <listitem><para>Delay time is measured in seconds (unlike in vdelay and vdelay3), and must be a-rate.</para></listitem>
66 <listitem><para>The minimum allowed delay is iws/2 samples.</para></listitem>
67 <listitem><para>Using the same variables as input and output is allowed in these opcodes.</para></listitem>
68 <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>
69 <listitem><para>These opcodes are best used in the double-precision version of Csound.</para></listitem>
70 </itemizedlist>
71 </para>
72 </note>
73 </refsect1>
74
75 <refsect1>
76 <title>Examples</title>
77 <para>
78 Here is an example of the use of the <emphasis>vdelayx</emphasis> opcode. It uses the file <ulink url="examples/vdelayx.csd"><citetitle>vdelayx.csd</citetitle></ulink>.
79 <example>
80 <title>Example of the <emphasis>vdelayx</emphasis> opcode.</title>
81 <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>
82 <xi:include href="examples-xml/vdelayx.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
83 </example>
84 </para>
85 </refsect1>
86
87 <refsect1>
88 <title>See also</title>
89 <para><link linkend="SigmodDelay"><citetitle>Delay</citetitle></link></para>
90 </refsect1>
91
92 </refentry>