Debian Codegraph @

opcodes/fold.xml

raw symbols SCIP
1
2 <refentry id="fold">
3 <indexterm id="IndexFold"><primary>fold</primary></indexterm>
4 <refentryinfo><title>Signal Modifiers:Sample Level Operators</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>fold</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>fold</refname>
13 <refpurpose>
14 Adds artificial foldover to an audio signal.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Adds artificial foldover to an audio signal.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>ares <command>fold</command> asig, kincr</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Performance</title>
32 <para>
33 <emphasis>asig</emphasis> -- input signal
34 </para>
35
36 <para>
37 <emphasis>kincr</emphasis> -- amount of foldover expressed in multiple of sampling rate. Must be &gt;= 1
38 </para>
39
40 <para>
41 <emphasis>fold</emphasis> is an opcode which creates artificial foldover. For example, when <emphasis>kincr</emphasis> is equal to 1 with sr=44100, no foldover is added. When <emphasis>kincr</emphasis> is set to 2, the foldover is equivalent to a downsampling to 22050, when it is set to 4, to 11025 etc. Fractional values of <emphasis>kincr</emphasis> are possible, allowing a continuous variation of foldover amount. This can be used for a wide range of special effects.
42 </para>
43 </refsect1>
44
45 <refsect1>
46 <title>Examples</title>
47 <para>
48 Here is an example of the fold opcode. It uses the file <ulink url="examples/fold.csd"><citetitle>fold.csd</citetitle></ulink>.
49
50 <example>
51 <title>Example of the fold opcode.</title>
52
53
54
55 <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>
56 <xi:include href="examples-xml/fold.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
57 </example>
58 </para>
59 </refsect1>
60
61 <refsect1>
62 <title>See also</title>
63 <para><link linkend="SigmodSample"><citetitle>Sample Level Operators</citetitle></link></para>
64 </refsect1>
65
66 <refsect1>
67 <title>Credits</title>
68 <para>
69 <simplelist>
70 <member>Author: &namegabriel;</member>
71 <member>Italy</member>
72 <member>1999</member>
73 </simplelist>
74 </para>
75
76 <para>New in Csound version 3.56</para>
77 </refsect1>
78 </refentry>