Debian Codegraph @

opcodes/syncloop.xml

raw symbols SCIP
1 <refentry id="syncloop">
2 <indexterm id="IndexSyncloop"><primary>syncloop</primary></indexterm>
3 <refentryinfo><title>Signal Generators:Granular Synthesis</title></refentryinfo>
4 <refmeta>
5 <refentrytitle>syncloop</refentrytitle>
6 </refmeta>
7
8
9
10 <refnamediv>
11 <refname>syncloop</refname>
12 <refpurpose>
13 Synchronous granular synthesis.
14 </refpurpose>
15 </refnamediv>
16
17 <refsect1>
18 <title>Description</title>
19 <para>
20 <emphasis>syncloop</emphasis> is a variation on <emphasis>syncgrain</emphasis>,
21 which implements synchronous granular synthesis.
22 <emphasis>syncloop</emphasis> adds loop start and end points and an optional start position. Loop start
23 and end control grain start positions, so the actual grains can go beyond the loop
24 points (if the loop points are not at the extremes of the table), enabling
25 seamless crossfading. For more information on the granular synthesis process,
26 check the <link linkend="syncgrain"><citetitle>syncgrain</citetitle></link> manual page.
27
28 </para>
29 </refsect1>
30
31 <refsect1>
32 <title>Syntax</title>
33 <synopsis>asig <command>syncloop</command> kamp, kfreq, kpitch, kgrsize, kprate, klstart, \
34 klend, ifun1, ifun2, iolaps[,istart, iskip]</synopsis>
35 </refsect1>
36
37 <refsect1>
38 <title>Initialization</title>
39 <para>
40 <emphasis>ifun1</emphasis> -- source signal function table. Deferred-allocation tables (see
41 <link linkend="GEN01"><citetitle>GEN01</citetitle></link>)
42 are accepted, but the opcode expects a mono source.
43 </para>
44 <para>
45 <emphasis>ifun2</emphasis> -- grain envelope function table.
46 </para>
47 <para>
48 <emphasis>iolaps</emphasis> -- maximum number of overlaps,
49 max(<emphasis>kfreq</emphasis>)*max(<emphasis>kgrsize</emphasis>). Estimating
50 a large value should not affect performance, but execeeding this value will probably have disastrous
51 consequences.
52 </para>
53 <para>
54 <emphasis>istart</emphasis> -- starting point of synthesis in secs (defaults to 0).
55 </para>
56
57 <para>
58 <emphasis>iskip </emphasis> -- if 1, the opcode initialisation is skipped, for tied notes, performance
59 continues from the position in the loop where the previous note stopped. The default, 0, does not skip
60 initialisation
61 </para>
62 </refsect1>
63
64 <refsect1>
65 <title>Performance</title>
66 <para>
67 <emphasis>kamp</emphasis> -- amplitude scaling
68 </para>
69 <para>
70 <emphasis>kfreq</emphasis> -- frequency of grain generation, or density, in grains/sec.
71 </para>
72
73 <para>
74 <emphasis>kpitch</emphasis> -- grain pitch scaling (1=normal pitch, &lt; 1 lower, > 1 higher; negative, backwards)
75 </para>
76
77 <para>
78 <emphasis>kgrsize</emphasis> -- grain size in secs.
79 </para>
80 <para>
81 <emphasis>kprate</emphasis> -- readout pointer rate, in grains. The value of 1 will advance
82 the reading pointer 1 grain ahead in the source table. Larger values
83 will time-compress and smaller values will time-expand the source signal.
84 Negative values will cause the pointer to run backwards and zero will
85 freeze it.
86 </para>
87 <para>
88 <emphasis>klstart</emphasis> -- loop start in secs.
89 </para>
90 <para>
91 <emphasis>klend</emphasis> -- loop end in secs.
92 </para>
93 </refsect1>
94
95 <refsect1>
96 <title>Examples</title>
97 <para>
98 Here is an example of the syncloop opcode. It uses the file <ulink url="examples/syncloop.csd"><citetitle>syncloop.csd</citetitle></ulink>.
99 <example>
100 <title>Example of the syncloop opcode.</title>
101 <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>
102 <xi:include href="examples-xml/syncloop.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
103 </example>
104 </para>
105 </refsect1>
106
107 <refsect1>
108 <title>See Also</title>
109 <para>
110 <link linkend="SiggenGranular"><citetitle>Granular Synthesis</citetitle></link>
111 </para>
112 </refsect1>
113
114 <refsect1>
115 <title>Credits</title>
116 <para>
117 <simplelist>
118 <member>Author: &namevictor;</member>
119 <member>January 2005</member>
120 </simplelist>
121 </para>
122
123 <para>New plugin in version 5</para>
124 <para>January 2005.</para>
125 </refsect1>
126 </refentry>