summaryrefslogtreecommitdiff
path: root/opcodes/readk.xml
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/readk.xml')
-rw-r--r--opcodes/readk.xml26
1 files changed, 25 insertions, 1 deletions
diff --git a/opcodes/readk.xml b/opcodes/readk.xml
index b84e3f1..ff7278c 100644
--- a/opcodes/readk.xml
+++ b/opcodes/readk.xml
@@ -91,13 +91,37 @@
<refsect1>
<title>Examples</title>
<para>
- Here is an example of the readk opcode. It uses the file <ulink url="examples/readk.csd"><citetitle>dumpk.csd</citetitle></ulink>.
+ Here is an example of the readk opcode. It uses the file <ulink url="examples/readk.csd"><citetitle>readk.csd</citetitle></ulink>.
<example>
<title>Example of the readk 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/readk.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
</example>
</para>
+ <para>
+ Here is another example of the readk opcode. It uses the file <ulink url="examples/readk-2.csd"><citetitle>readk-2.csd</citetitle></ulink>.
+ <example>
+ <title>Example 2 of the readk opcode.</title>
+ <xi:include href="examples-xml/readk-2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
+ </example>
+ Its output should include lines like this:
+ <screen>
+WARNING: Seeding from current time 683384022
+
+ i 1 time 1.00033: 463.64510
+ i 1 time 2.00000: 463.64510
+ i 1 time 3.00000: 483.14200
+ i 1 time 4.00000: 567.55973
+ i 1 time 5.00000: 576.37060
+ i 1 time 6.00000: 460.66550
+
+ i 2 time 6.00033: 463.64510
+ i 2 time 7.00000: 463.64510
+ i 2 time 8.00000: 483.14200
+ i 2 time 9.00000: 567.55970
+ i 2 time 10.00000: 576.37060
+ i 2 time 11.00000: 460.66550</screen>
+ </para>
</refsect1>
<!-- <refsect1>
<title>Examples</title>