Debian Codegraph @

opcodes/flooper.xml

raw symbols SCIP
1
2 <refentry id="flooper">
3 <indexterm id="Indexflooper"><primary>flooper</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Sample Playback</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>flooper</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>flooper</refname>
11 <refpurpose>
12 Function-table-based crossfading looper.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 This opcode reads audio from a function table and plays it back in a loop with user-defined
20 start time, duration and crossfade time. It also allows the pitch of the loop to be controlled,
21 including reversed playback. It accepts non-power-of-two tables, such as deferred-allocation
22 GEN01 tables, with one or two channels.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis>asig1[, asig2] <command>flooper</command> kamp, kpitch, istart, idur, ifad, ifn</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis>istart </emphasis> -- loop start pos in seconds
35 </para>
36 <para>
37 <emphasis>idur </emphasis> -- loop duration in seconds
38 </para>
39 <para>
40 <emphasis>ifad </emphasis> -- crossfade duration in seconds
41 </para>
42 <para>
43 <emphasis>ifn </emphasis> -- function table number, generally created using GEN01
44 </para>
45
46 </refsect1>
47
48 <refsect1>
49 <title>Performance</title>
50 <para>
51 <emphasis>asig[,asig2]</emphasis> -- output sig (mono or stereo)
52 </para>
53 <para>
54 <emphasis>kamp</emphasis> -- amplitude control </para>
55 <para>
56 <emphasis>kpitch</emphasis> -- pitch control (transposition ratio); negative values play the loop back in reverse
57 </para>
58 </refsect1>
59
60 <refsect1>
61 <title>Examples</title>
62 <para>
63 <example>
64 <programlisting>
65 aout <emphasis role="opc">flooper</emphasis> 16000, 1, 1, 4, 0.05, 1 <emphasis role="comment">; loop starts at 1 sec, for 4 secs, 0.05 crossfade</emphasis>
66 <emphasis role="opc">out</emphasis> aout</programlisting>
67 </example>
68 </para>
69
70 <para>
71 The example above shows the basic operation of <emphasis>flooper</emphasis>. Pitch can
72 be controlled at the k-rate, as well as amplitude. The example assumes
73 table 1 to contain at least 5.05 seconds of audio (4 secs loop duration,
74 starting 1 sec into the table, using 0.05 secs after the loop end for the
75 crossfade).
76 </para>
77
78 <para>
79 Here is another example of the flooper opcode. It uses the file <ulink url="examples/flooper.csd"><citetitle>flooper.csd</citetitle></ulink> and <ulink url="examples/fox.wav"><citetitle>fox.wav</citetitle></ulink>.
80 <example>
81
82 <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>
83 <xi:include href="examples-xml/flooper.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
84 </example>
85 </para>
86 </refsect1>
87
88 <refsect1>
89 <title>See also</title>
90 <para><link linkend="SiggenSample"><citetitle>Sample Playback</citetitle></link></para>
91 </refsect1>
92
93 <refsect1>
94 <title>Credits</title>
95 <para>
96 <simplelist>
97 <member>Author: &namevictor;</member>
98 <member>April 2005 </member>
99 </simplelist>
100 </para>
101
102 <para>New plugin in version 5</para>
103 <para>April 2005.</para>
104 </refsect1>
105 </refentry>