Debian Codegraph @

opcodes/flooper2.xml

raw symbols SCIP
1
2 <refentry id="flooper2">
3 <indexterm id="Indexflooper2"><primary>flooper2</primary></indexterm>
4 <refentryinfo><title>Signal Generators:Sample Playback</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>flooper2</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>flooper2</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 implements a crossfading looper with variable loop parameters and three
20 looping modes, optionally using a table for its crossfade shape. It accepts
21 non-power-of-two tables for its source sounds, 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>flooper2</command> kamp, kpitch, kloopstart, kloopend, kcrossfade, ifn \
29 [, istart, imode, ifenv, iskip]</synopsis>
30 </refsect1>
31
32 <refsect1>
33 <title>Initialization</title>
34 <para>
35 <emphasis>ifn </emphasis> -- sound source function table number, generally created using GEN01
36 </para>
37 <para>
38 <emphasis>istart </emphasis> -- playback start pos in seconds
39 </para>
40 <para>
41 <emphasis>imode </emphasis> -- loop modes: 0 forward, 1 backward, 2 back-and-forth [def: 0]
42 </para>
43 <para>
44 <emphasis>ifenv </emphasis> -- if non-zero, crossfade envelope shape table number. The default, 0, sets
45 the crossfade to linear.
46 </para>
47 <para>
48 <emphasis>iskip </emphasis> -- if 1, the opcode initialisation is skipped, for tied notes, performance
49 continues from the position in the loop where the previous note stopped. The default, 0, does not skip
50 initialisation
51 </para>
52
53 </refsect1>
54
55 <refsect1>
56 <title>Performance</title>
57 <para>
58 <emphasis>asig1[, asig2]</emphasis> -- output sig (mono or stereo).
59 </para>
60 <para>
61 <emphasis>kamp</emphasis> -- amplitude control </para>
62 <para>
63 <emphasis>kpitch</emphasis> -- pitch control (transposition ratio); negative values are not allowed.
64 </para>
65 <para>
66 <emphasis>kloopstart</emphasis> -- loop start point (secs). Note that although k-rate, loop parameters
67 such as this are only updated once per loop cycle.
68 </para>
69 <para>
70 <emphasis>kloopend</emphasis> -- loop end point (secs), updated once per loop cycle.
71 </para>
72 <para>
73 <emphasis>kcrossfade </emphasis> -- crossfade length (secs), updated once per loop cycle and limited to
74 loop length.</para>
75 <para>
76 Mode 1 for <emphasis>imode </emphasis> will only loop backwards from the end point to the start point.
77 </para>
78 </refsect1>
79
80 <refsect1>
81 <title>Examples</title>
82 <para>
83 <example>
84 <programlisting>
85 aout <emphasis role="opc">flooper2</emphasis> 16000, 1, 1, 5, 0.05, 1 <emphasis role="comment">; loop starts at 1 sec, for 4 secs, 0.05 crossfade</emphasis>
86 <emphasis role="opc">out</emphasis> aout</programlisting>
87 </example>
88 </para>
89
90 <para>
91 The example above shows the basic operation of <emphasis>flooper2</emphasis>. Pitch can
92 be controlled at the k-rate, as well as amplitude and loop parameters.
93 The example assumes
94 table 1 to contain at least 5.05 seconds of audio (4 secs loop duration,
95 starting 1 sec into the table, using 0.05 secs after the loop end for the
96 crossfade). Looping is in mode 0 (normal forward loop).
97 </para>
98
99 <para>
100 Here is another example of the flooper2 opcode. It uses the file <ulink url="examples/flooper2.csd"><citetitle>flooper2.csd</citetitle></ulink> and <ulink url="examples/fox.wav"><citetitle>fox.wav</citetitle></ulink>.
101 <example>
102
103 <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>
104 <xi:include href="examples-xml/flooper2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
105 </example>
106 </para>
107 </refsect1>
108
109 <refsect1>
110 <title>See also</title>
111 <para><link linkend="SiggenSample"><citetitle>Sample Playback</citetitle></link></para>
112 </refsect1>
113
114 <refsect1>
115 <title>Credits</title>
116 <para>
117 <simplelist>
118 <member>Author: &namevictor;</member>
119 <member>July 2006 </member>
120 </simplelist>
121 </para>
122
123 <para>New plugin in version 5</para>
124 <para>July 2006.</para>
125 </refsect1>
126 </refentry>