summaryrefslogtreecommitdiff
path: root/opcodes/syncloop.xml
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/syncloop.xml')
-rw-r--r--opcodes/syncloop.xml23
1 files changed, 5 insertions, 18 deletions
diff --git a/opcodes/syncloop.xml b/opcodes/syncloop.xml
index ed572f7..c4f5e03 100644
--- a/opcodes/syncloop.xml
+++ b/opcodes/syncloop.xml
@@ -91,32 +91,19 @@ freeze it.
<emphasis>klend</emphasis> -- loop end in secs.
</para>
</refsect1>
+
<refsect1>
<title>Examples</title>
<para>
+ Here is an example of the syncloop opcode. It uses the file <ulink url="examples/syncloop.csd"><citetitle>syncloop.csd</citetitle></ulink>.
<example>
- <title>Example</title>
- <programlisting>
-
-iolaps <emphasis role="op">=</emphasis> 2
-igrsize <emphasis role="op">=</emphasis> 0.04
-ifreq <emphasis role="op">=</emphasis> iolaps<emphasis role="op">/</emphasis>igrsize
-ips <emphasis role="op">=</emphasis> 1<emphasis role="op">/</emphasis>iolaps
-
-istr <emphasis role="op">=</emphasis> .5 <emphasis role="comment">/* timescale */</emphasis>
-ipitch <emphasis role="op">=</emphasis> 1 <emphasis role="comment">/* pitchscale */</emphasis>
-
-a1 <emphasis role="opc">syncloop</emphasis> 16000, ifreq, ipitch, igrsize, ips*istr, 1, 2, 1, 2, iolaps
- <emphasis role="opc">out</emphasis> a1</programlisting>
+ <title>Example of the syncloop opcode.</title>
+ <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>
+ <xi:include href="examples-xml/syncloop.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
</example>
-
</para>
-
-
</refsect1>
-
-
<refsect1>
<title>Credits</title>
<para>